* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

/* ============ HEADER ============ */
.chat-header {
    background: linear-gradient(135deg, #1a5490, #2a7bb8);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.chat-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.chat-header p {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.5;
}

/* ============ CHAT BOX ============ */
.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    margin: 0;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- BOT MESSAGE ---- */
.bot-message {
    justify-content: flex-start;
}

.bot-message-content {
    background: #e8f0f7;
    color: #1a5490;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.6;
    border-left: 4px solid #1a5490;
}

.bot-message strong {
    color: #1a5490;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.bot-message-content {
    font-size: 16px;
}

/* ---- USER MESSAGE ---- */
.user-message {
    justify-content: flex-end;
}

.user-message-content {
    background: #1a5490;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.6;
    border-right: 4px solid #0f3d6b;
}

.user-message strong {
    color: white;
    display: none;
}

.user-message-content {
    font-size: 14px;
}

/* ============ INPUT AREA ============ */
.input-area {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

#userInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

#userInput::placeholder {
    color: #999;
}

#userInput:focus {
    outline: none;
    border-color: #1a5490;
    box-shadow: 0 0 8px rgba(26, 84, 144, 0.2);
}

/* ---- BUTTON TRIMITE ---- */
#sendBtn {
    background: linear-gradient(135deg, #1a5490, #2a7bb8);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 84, 144, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#sendBtn:hover {
    background: linear-gradient(135deg, #0f3d6b, #1a5490);
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.5);
    transform: translateY(-2px);
}

#sendBtn:active {
    transform: translateY(0);
}

#sendBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============ EXAMPLES SECTION ============ */
.examples {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.examples strong {
    display: block;
    margin-bottom: 12px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.example-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.example-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.example-btn:hover {
    border-color: #1a5490;
    color: #1a5490;
    box-shadow: 0 2px 6px rgba(26, 84, 144, 0.2);
    transform: translateY(-2px);
}

.example-btn:active {
    transform: translateY(0);
}

/* ============ SCROLLBAR ============ */
.chat-box::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #1a5490;
    border-radius: 4px;
    opacity: 0.7;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: #0f3d6b;
    opacity: 1;
}

/* ============ RESPONSIVE - MOBILE ============ */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
        max-height: 100vh;
    }

    .chat-header {
        padding: 15px;
        border-radius: 0;
    }

    .chat-header h1 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .chat-header p {
        font-size: 12px;
    }

    .chat-box {
        padding: 15px;
    }

    .message {
        font-size: 13px;
    }

    .bot-message-content,
    .user-message-content {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 15px;
    }

    .input-area {
        padding: 12px 15px;
        gap: 8px;
    }

    #userInput {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }

    #sendBtn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 6px;
    }

    .examples {
        padding: 12px 15px;
    }

    .example-buttons {
        gap: 8px;
    }

    .example-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ============ SMALL PHONES ============ */
@media (max-width: 480px) {
    .chat-header h1 {
        font-size: 16px;
    }

    .chat-header p {
        font-size: 11px;
    }

    .chat-box {
        padding: 12px;
        gap: 10px;
    }

    .bot-message-content,
    .user-message-content {
        max-width: 95%;
        padding: 10px 12px;
        font-size: 14px;
    }

    #sendBtn {
        padding: 10px 16px;
        font-size: 12px;
    }
}