body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, #e3f0ff 0%, #ffe0e6 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3a4a;
}

/* Subtle noise/texture overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    opacity: 0.06;
    background: url('https://www.transparenttextures.com/patterns/symphony.png');
    z-index: 0;
}

input, button, textarea {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.clinic-tagline {
    font-size: 1.1rem;
    color: #5bb3b1;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.03em;
}

.typing-indicator {
    margin: 12px 0 0 0;
    color: #888;
    font-size: 1.04rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 6px;
    opacity: 0.9;
    animation: fadeInMsg 0.5s;
}
.typing-indicator .fa-comment-dots {
    color: #219ebc;
    font-size: 1.2rem;
    animation: typingBounce 1.2s infinite;
}
@keyframes typingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}


html, body {
    height: 100%;
    width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .container {
        flex-direction: row;
    }
}

.chat-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 0 16px 0;
    border: none;
}

@media (max-width: 700px) {
    .chat-container {
        max-width: 100vw;
        min-width: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.chat-body {
    flex: 1;
    padding: 24px 16px 8px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #f8fafc;
    border-radius: 10px 10px 0 0;
}

.message-content {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    font-size: 1rem;
    line-height: 1.6;
}

.bot-message .message-content {
    background-color: #e6e6fa;
    color: #2d3a4a;
    border-bottom-left-radius: 6px;
}

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #add8e6 0%, #87ceeb 100%);
    color: #fff;
    border-radius: 22px 22px 8px 22px;
    margin: 14px 0 14px 48px;
    padding: 16px 24px;
    max-width: 66%;
    font-size: 1.18rem;
    word-break: break-word;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
    animation: fadeInMsg 0.4s;
    display: inline-block;
    writing-mode: initial !important;
    flex-direction: row !important;
    letter-spacing: normal;
}

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

.input-group {
    display: flex;
    gap: 10px;
    margin: 0 8px;
}

.form-control {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #5c6bc0;
    background: #f8faff;
}

.btn-primary.send-btn {
    background: linear-gradient(135deg, #219ebc 0%, #8ecae6 100%);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    transition: background 0.18s, box-shadow 0.18s;
    cursor: pointer;
}
.send-btn:hover {
    background: linear-gradient(135deg, #126782 0%, #219ebc 100%);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
}

.mic-btn {
    background: linear-gradient(135deg, #fff 0%, #b3e5fc 100%);
    border: none;
    color: #219ebc;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    cursor: pointer;
}
.mic-btn:hover, .mic-btn.listening {
    background: linear-gradient(135deg, #219ebc 0%, #8ecae6 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
}

.features {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 992px) {
    .features {
        width: 300px;
    }
}

.feature-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.feature-card h4 {
    color: #5c6bc0;
    margin-top: 0;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile img {
    width: 40px;
    height: 40px;
}

.profile h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.profile p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.input-group {
    display: flex;
    gap: 10px;
}

.form-control {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #5c6bc0;
}

.btn-primary {
    background-color: #5c6bc0;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #3f51b5;
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bot-message .message-content {
    background-color: #f1f3f4;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background-color: #5c6bc0;
    color: #fff;
    border-bottom-right-radius: 5px;
}

.message-text p {
    margin: 0 0 8px 0;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.typing-indicator {
    display: none;
    padding: 15px;
    justify-content: flex-start;
}

.dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    animation: wave 1.3s linear infinite;
}

.dot:nth-child(2) {
    animation-delay: -1.1s;
}

.dot:nth-child(3) {
    animation-delay: -0.9s;
}

@keyframes wave {
    0%, 60%, 100% {
        transform: initial;
    }
    30% {
        transform: translateY(-5px);
    }
}
