* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Disclaimer Modal */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 16px;
}

.disclaimer-modal.hidden {
    display: none;
}

.disclaimer-content {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(234, 88, 12, 0.95) 100%);
    border: 2px solid #fb923c;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
}

.disclaimer-content h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.disclaimer-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
}

.disclaimer-text p {
    margin-bottom: 16px;
}

.disclaimer-text strong {
    color: #fef3c7;
}

.accept-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    margin-top: 24px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.accept-btn:hover {
    background: #334155;
    border-color: #475569;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .disclaimer-content {
        padding: 24px 16px;
    }

    .disclaimer-content h2 {
        font-size: 20px;
    }

    .disclaimer-text {
        font-size: 13px;
    }

    .logo-banner {
        height: 40px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-banner {
    width: 100%;
    max-width: 700px;
    display: block;
    margin: 0 auto;
}

/* Header */
.header {
    background: #1e293b;
    padding: 16px 24px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-banner {
    height: 50px;
    width: auto;
    display: block;
}

.admin-link {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.admin-link:hover {
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    overflow: hidden;
}

/* Messages Area */
.messages {
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Message Bubbles */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
}

.message.user {
    background: #334155;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: #1e293b;
    border: 1px solid #334155;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.bot.no-results {
    border-color: #475569;
}

/* GPT Response Styling */
.message.bot.gpt-response {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #1e293b 0%, rgba(124, 58, 237, 0.1) 100%);
}

.gpt-label {
    color: #a78bfa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.gpt-content {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
}

.gpt-disclaimer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
}

/* Bot Message Content */
.bot-intro {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 12px;
}

.result-card {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.result-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-title {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.result-excerpt {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0ea5e9;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
}

.result-link:hover {
    text-decoration: underline;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(14,165,233,0.2);
    color: #7dd3fc;
}

.tag.peptide {
    background: rgba(34,197,94,0.2);
    color: #86efac;
}

.tag.condition {
    background: rgba(249,115,22,0.2);
    color: #fdba74;
}

.tag.score {
    background: rgba(139,92,246,0.2);
    color: #c4b5fd;
}

/* Suggested Topics */
.suggested-topics {
    margin-top: 16px;
}

.suggested-topics p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 12px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    background: #334155;
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.topic-tag:hover {
    background: #475569;
}

/* Contact Info */
.contact-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

.contact-info a {
    color: #0ea5e9;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Loading Indicator */
.message.loading {
    background: #1e293b;
    border: 1px solid #334155;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Input Area */
.input-area {
    padding: 16px 0 24px;
    margin-top: 20px;
    border-top: 1px solid #334155;
    flex-shrink: 0;
}

.input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}

.home-btn {
    padding: 10px 12px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.home-btn:hover {
    background: #475569;
    color: #e2e8f0;
}

.input-wrapper input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    border-color: #0ea5e9;
}

.input-wrapper input::placeholder {
    color: #64748b;
}

.input-wrapper button {
    padding: 14px 24px;
    background: #0ea5e9;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    min-width: 80px;
}

.input-wrapper button:hover {
    background: #0284c7;
}

.input-wrapper button:disabled {
    background: #475569;
    cursor: not-allowed;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 12px 6px;
    color: #94a3b8;
}

.welcome-message h2 {
    color: #e2e8f0;
    font-size: 24px;
    margin-bottom: 3px;
    text-decoration: underline;
}

.welcome-message p {
    font-size: 16px;
    margin-bottom: 6px;
}

/* Info Button */
.info-btn {
    display: inline-block;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #7dd3fc;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.info-btn:hover {
    background: rgba(14, 165, 233, 0.3);
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Facebook Button */
.facebook-btn {
    display: inline-block;
    background-color: #1877F2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 6px;
    transition: background 0.2s;
}

.facebook-btn:hover {
    background-color: #0d65d9;
}

/* Info Page */
.info-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.back-link {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #e2e8f0;
}

.info-content {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    padding: 24px;
}

.info-content h1 {
    color: #38bdf8;
    font-size: 24px;
    margin-bottom: 20px;
}

.info-content p {
    color: #7dd3fc;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content strong {
    color: #38bdf8;
}

.back-btn {
    display: block;
    text-align: center;
    margin-top: 24px;
    padding: 12px 24px;
    background: #334155;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #475569;
}

.example-queries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.example-query {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.example-query:hover {
    background: #334155;
    border-color: #475569;
}

/* Find Peptides Button */
.bottom-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.find-peptides-btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.share-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.share-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.find-peptides-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .header {
        padding: 12px 16px;
    }

    .logo {
        font-size: 18px;
    }

    .message {
        max-width: 90%;
    }

    .input-wrapper {
        gap: 8px;
    }

    .input-wrapper button {
        padding: 14px 16px;
        min-width: auto;
    }
}
