/* Enhanced Chatbot Styles - Patient-Focused Design */

/* ===== CHAT BUTTON ===== */
.chat-button {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #23939e, #87aa44);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(35, 147, 158, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(35, 147, 158, 0.6);
}

.chat-button-content {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 24px;
}

.chat-button-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(35, 147, 158, 0.3);
    animation: pulse 2s infinite;
}

.chat-button-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-button:hover .chat-button-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ===== CHAT CONTAINER ===== */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-container.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== CHAT HEADER ===== */
.chat-header {
    padding: 14px;
    background: linear-gradient(135deg, #23939e 0%, #87aa44 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.chat-info h3 {
    font-weight: 600;
    color: white;
    margin: 0;
    font-size: 16px;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 2px 0 0 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #10b981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ===== MESSAGES CONTAINER ===== */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #0f172a;
}

/* Welcome Message */
.welcome-message {
    /* background: linear-gradient(135deg, #23939e 0%, #87aa44 100%); */
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.welcome-header h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.welcome-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.action-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
}

.action-icon.emergency {
    background: rgba(239, 68, 68, 0.8);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.action-text h5 {
    color: white;
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.action-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 12px;
}

/* Suggested Questions */
.suggested-questions {
    margin-top: 20px;
}

.suggested-questions h5 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
}

.question-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.question-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ===== MESSAGE STYLES ===== */
.message {
    display: flex;
    gap: 12px;
    max-width: 100%;
    animation: messageSlide 0.3s ease;
}

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

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 14px;
}

.message.bot .message-avatar {
    background: linear-gradient(135deg, #23939e, #87aa44);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #87aa44, #23939e);
}

.message-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
    word-wrap: break-word;
}

.message.user .message-content {
    background: linear-gradient(135deg, #23939e, #87aa44);
    color: white;
    border: none;
}

.message-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    text-align: right;
}

/* ===== FOLLOW-UP QUESTIONS ===== */
.follow-up-questions {
    margin-top: 12px;
}

.follow-up-question {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e2e8f0;
    font-size: 13px;
}

.follow-up-question:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #23939e;
    transform: translateX(4px);
}

.follow-up-question i {
    margin-right: 8px;
    color: #23939e;
}

/* ===== DOCTOR CARDS ===== */
.doctor-card1 {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 16px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.doctor-card1:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #23939e;
}

.doctor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.doctor-avatar1 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #23939e, #87aa44);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.doctor-info h4 {
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
    font-size: 16px;
}

.doctor-specialty1 {
    color: #60a5fa;
    font-size: 14px;
    font-weight: 500;
}

.doctor-details {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.doctor-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.doctor-detail i {
    font-size: 12px;
    color: #23939e;
}

.book-btn {
    background: linear-gradient(135deg, #23939e, #87aa44);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(35, 147, 158, 0.4);
}

/* ===== ENHANCED DOCTOR CARDS ===== */
.doctor-card1.enhanced-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 20px;
    margin-top: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.doctor-card1.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #23939e, #87aa44, #00ffff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card1.enhanced-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #23939e;
}

.doctor-card1.enhanced-card:hover::before {
    opacity: 1;
}

/* Enhanced Header */
.doctor-card1.enhanced-card .doctor-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    flex-wrap: wrap;
    min-height: auto;
}

.doctor-card1.enhanced-card .doctor-avatar1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #23939e, #87aa44);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.doctor-card1.enhanced-card .doctor-avatar1 img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #1e293b;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.doctor-card1.enhanced-card .doctor-info {
    flex: 1;
    min-width: 0;
}

.doctor-card1.enhanced-card .doctor-name {
    font-weight: 700;
    color: white;
    margin: 0 0 6px 0;
    font-size: 18px;
    line-height: 1.2;
}

.doctor-card1.enhanced-card .doctor-specialty1 {
    color: #00ffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.doctor-card1.enhanced-card .clinic-name {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

.rating-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(35, 147, 158, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.rating-stars {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 2px;
}

.rating-number {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* Specialty Tags */
.specialty-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.specialty-tag {
    background: linear-gradient(135deg, #23939e, #87aa44);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Grid */
.doctor-info-grid {
    display: flex    ;
        gap: 12px;
        margin-bottom: 16px;
        flex-direction: column;
}

.info-item1 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(51, 65, 85, 0.3);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.info-item1:hover {
    background: rgba(51, 65, 85, 0.5);
}

.info-item1 i {
    color: #23939e;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.info-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value1 {
    font-size: 12px;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Languages Section */
.languages-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(35, 147, 158, 0.1);
    border-radius: 8px;
    border-left: 3px solid #23939e;
}

.languages-section i {
    color: #23939e;
    font-size: 14px;
}

.languages-text {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.more-languages {
    color: #94a3b8;
    font-size: 11px;
    font-style: italic;
}

/* Bio Section */
.doctor-bio {
    margin-bottom: 16px;
}

.bio-text {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 8px;
}

.read-more-btn {
    background: none;
    border: none;
    color: #23939e;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.read-more-btn:hover {
    color: #00ffff;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.book-btn.primary {
    flex: 2;
    background: linear-gradient(135deg, #23939e, #87aa44);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.book-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 147, 158, 0.4);
}

.view-profile-btn.secondary {
    flex: 1;
    background: rgba(51, 65, 85, 0.5);
    color: white;
    border: 1px solid #334155;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-profile-btn.secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: #23939e;
    transform: translateY(-1px);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #334155;
    margin-top: 16px;
}

.stat-item {
    text-align: center;
    align-items: center;
}

.stat-number1 {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Modal */
.doctor-profile-modal .profile-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #334155;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.profile-header h3 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.close-profile {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-profile:hover {
    background: rgba(51, 65, 85, 0.5);
    color: white;
}

.profile-body {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #23939e, #87aa44);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.profile-details h4 {
    color: #00ffff;
    margin: 0 0 12px 0;
    font-size: 18px;
}

.profile-details p {
    color: #cbd5e1;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.profile-details strong {
    color: white;
}

.profile-actions {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #334155;
}

/* ===== RESPONSIVE DESIGN FOR CHATBOT ===== */

/* Chat Container Responsive */
@media (max-width: 768px) {
    .chat-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        right: 10px;
        bottom: 80px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        width: calc(100vw - 16px);
        height: calc(100vh - 100px);
        right: 8px;
        bottom: 70px;
        border-radius: 12px;
    }
}

/* Enhanced Doctor Cards Responsive */
.doctor-card1.responsive-card {
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Tablet and Small Desktop */
@media (max-width: 1024px) {
    .doctor-card1.responsive-card {
        padding: 18px;
    }
    
    .doctor-card1.responsive-card .doctor-header {
        gap: 14px;
        margin-bottom: 14px;
    }
    
    .doctor-card1.responsive-card .doctor-avatar1 {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .doctor-card1.responsive-card .doctor-name {
        font-size: 12px;
    }
    
    .doctor-card1.responsive-card .doctor-specialty1 {
        font-size: 14px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .doctor-card1.responsive-card {
        padding: 16px;
        margin: 10px 0;
    }
    
    .doctor-card1.responsive-card .doctor-header {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .doctor-card1.responsive-card .doctor-avatar1 {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .doctor-card1.responsive-card .doctor-name {
        font-size: 16px;
    }
    
    .doctor-card1.responsive-card .doctor-specialty1 {
        font-size: 13px;
    }
    
    .doctor-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .info-item1 {
        padding: 6px;
        gap: 6px;
    }
    
    .info-item1 i {
        font-size: 12px;
        width: 14px;
    }
    
    .info-label {
        font-size: 9px;
    }
    
    .info-value1 {
        font-size: 11px;
    }
    
    .specialty-tags {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .specialty-tag {
        padding: 3px 10px;
        font-size: 10px;
    }
    
    .languages-section {
        padding: 6px 10px;
        margin-bottom: 12px;
        gap: 6px;
    }
    
    .languages-section i {
        font-size: 12px;
    }
    
    .languages-text {
        font-size: 11px;
    }
    
    .more-languages {
        font-size: 10px;
    }
    
    .action-buttons {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .book-btn.primary,
    .view-profile-btn.secondary {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
    }
    
    .bio-text {
        font-size: 12px;
    }
    
    .read-more-btn {
        font-size: 11px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .doctor-card1.responsive-card {
        padding: 14px;
        margin: 8px 0;
        border-radius: 16px;
    }
    
    .doctor-card1.responsive-card .doctor-header {
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    
    .doctor-card1.responsive-card .doctor-avatar1 {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .doctor-card1.responsive-card .doctor-info {
        flex: 1;
        min-width: 120px;
    }
    
    .doctor-card1.responsive-card .doctor-name {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .doctor-card1.responsive-card .doctor-specialty1 {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .doctor-card1.responsive-card .clinic-name {
        font-size: 11px;
    }
    
    .rating-badge {
        position: static;
        margin-top: 8px;
        padding: 6px 10px;
        align-self: flex-start;
    }
    
    .rating-stars {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .rating-number {
        font-size: 11px;
    }
    
    .doctor-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .info-item1 {
        padding: 8px;
        gap: 8px;
    }
    
    .info-item1 i {
        font-size: 14px;
        width: 16px;
    }
    
    .info-label {
        font-size: 10px;
    }
    
    .info-value1 {
        font-size: 12px;
    }
    
    .specialty-tags {
        gap: 6px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    
    .specialty-tag {
        padding: 3px 8px;
        font-size: 9px;
    }
    
    .languages-section {
        padding: 8px 10px;
        margin-bottom: 10px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .languages-section i {
        font-size: 12px;
    }
    
    .languages-text {
        font-size: 11px;
    }
    
    .more-languages {
        font-size: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .book-btn.primary,
    .view-profile-btn.secondary {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        gap: 8px;
        justify-content: center;
    }
    
    .doctor-bio {
        margin-bottom: 12px;
    }
    
    .bio-text {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .read-more-btn {
        font-size: 11px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .doctor-card1.responsive-card {
        padding: 10px;
        margin: 4px 0;
        border-radius: 12px;
    }
    
    .doctor-card1.responsive-card .doctor-header {
        gap: 8px;
        margin-bottom: 8px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .doctor-card1.responsive-card .doctor-avatar1 {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .doctor-card1.responsive-card .doctor-info {
        width: 100%;
        text-align: center;
    }
    
    .doctor-card1.responsive-card .doctor-name {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .doctor-card1.responsive-card .doctor-specialty1 {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .doctor-card1.responsive-card .clinic-name {
        font-size: 10px;
    }
    
    .rating-badge {
        position: static;
        margin: 8px auto 0;
        padding: 4px 8px;
        width: fit-content;
    }
    
    .rating-stars {
        font-size: 11px;
    }
    
    .rating-number {
        font-size: 10px;
    }
    
    .info-item1 {
        padding: 6px;
        gap: 6px;
        flex-direction: column;
        text-align: center;
    }
    
    .info-item1 i {
        font-size: 14px;
        width: auto;
        margin-bottom: 2px;
    }
    
    .info-label {
        font-size: 9px;
    }
    
    .info-value1 {
        font-size: 11px;
    }
    
    .specialty-tags {
        justify-content: center;
    }
    
    .specialty-tag {
        padding: 2px 6px;
        font-size: 8px;
    }
    
    .languages-section {
        padding: 6px 8px;
        margin-bottom: 8px;
        justify-content: center;
        text-align: center;
    }
    
    .languages-text {
        font-size: 10px;
    }
    
    .more-languages {
        font-size: 9px;
    }
    
    .book-btn.primary,
    .view-profile-btn.secondary {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
    }
    
    .bio-text {
        font-size: 11px;
        text-align: center;
    }
    
    .read-more-btn {
        font-size: 10px;
    }
}

/* Ultra Small Screens */
@media (max-width: 320px) {
    .doctor-card1.responsive-card {
        padding: 8px;
        margin: 2px 0;
        border-radius: 8px;
    }
    
    .doctor-card1.responsive-card .doctor-header {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .doctor-card1.responsive-card .doctor-avatar1 {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .doctor-card1.responsive-card .doctor-name {
        font-size: 14px;
    }
    
    .doctor-card1.responsive-card .doctor-specialty1 {
        font-size: 11px;
    }
    
    .info-item1 {
        padding: 4px;
        gap: 4px;
    }
    
    .info-item1 i {
        font-size: 12px;
    }
    
    .info-label {
        font-size: 8px;
    }
    
    .info-value1 {
        font-size: 10px;
    }
    
    .specialty-tag {
        padding: 1px 4px;
        font-size: 7px;
    }
    
    .languages-section {
        padding: 4px 6px;
        margin-bottom: 6px;
    }
    
    .languages-text {
        font-size: 9px;
    }
    
    .book-btn.primary,
    .view-profile-btn.secondary {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .bio-text {
        font-size: 10px;
    }
}

/* Profile Modal Responsive */
@media (max-width: 768px) {
    .doctor-profile-modal .profile-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .profile-header h3 {
        font-size: 20px;
    }
    
    .profile-body {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .profile-image {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin: 0 auto;
    }
    
    .profile-details h4 {
        font-size: 16px;
    }
    
    .profile-details p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .doctor-profile-modal .profile-modal-content {
        width: 98%;
        padding: 16px;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .profile-header h3 {
        font-size: 18px;
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .profile-details h4 {
        font-size: 15px;
    }
    
    .profile-details p {
        font-size: 12px;
        margin: 6px 0;
    }
}

/* Messages Container Responsive */
@media (max-width: 768px) {
    .messages-container {
        padding: 12px;
    }
    
    .message {
        margin-bottom: 12px;
    }
    
    .message-content {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .messages-container {
        padding: 10px;
    }
    
    .message {
        margin-bottom: 10px;
    }
    
    .message-content {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .message-time {
        font-size: 10px;
    }
}

/* Welcome Message Responsive */
@media (max-width: 768px) {
    .welcome-message {
        padding: 16px;
    }
    
    .welcome-header h4 {
        font-size: 18px;
    }
    
    .welcome-header p {
        font-size: 14px;
    }
    
    .suggested-questions h5 {
        font-size: 14px;
    }
    
    .question-chip {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .welcome-message {
        padding: 12px;
    }
    
    .welcome-header h4 {
        font-size: 16px;
    }
    
    .welcome-header p {
        font-size: 13px;
    }
    
    .suggested-questions h5 {
        font-size: 13px;
    }
    
    .question-chip {
        padding: 6px 10px;
        font-size: 11px;
        margin: 4px;
    }
}

/* ===== INPUT AREA ===== */
.chat-input-container {
    background: #0f172a;
    border-top: 1px solid #334155;
}

.attachment-preview {
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
}

.remove-attachment {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-attachment:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.chat-input {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: #475569;
    border: none;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 0;
}

.action-btn:hover {
    background: #64748b;
    transform: scale(1.05);
}

.input-field-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 8px 10px;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
    max-width: 100%;
}

.chat-input input:focus {
    border-color: #23939e;
    box-shadow: 0 0 0 3px rgba(35, 147, 158, 0.1);
}

.chat-input input::placeholder {
    color: #64748b;
}

.send-btn {
    background: linear-gradient(135deg, #23939e, #87aa44);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 0;
}



/* ===== LOADING INDICATOR ===== */
.loading-indicator {
    padding: 20px;
    text-align: center;
    background: #0f172a;
    border-top: 1px solid #334155;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: #23939e;
    border-radius: 50%;
    animation: loadingBounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-indicator p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

/* ===== EMERGENCY MODAL ===== */
.emergency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.emergency-content {
    background: #1e293b;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid #334155;
}

.emergency-header {
    margin-bottom: 24px;
}

.emergency-header i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
}

.emergency-header h3 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.emergency-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emergency-btn {
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.emergency-btn.primary {
    background: #ef4444;
    color: white;
}

.emergency-btn.primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.emergency-btn.secondary {
    background: #475569;
    color: white;
}

.emergency-btn.secondary:hover {
    background: #64748b;
    transform: translateY(-2px);
}

/* ===== SCROLLBAR ===== */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .chat-container {
        width: 420px;
        height: 650px;
        right: 32px;
        bottom: 120px;
    }
    
    .chat-button {
        width: 70px;
        height: 70px;
        right: 32px;
        bottom: 32px;
    }
    
    .message-content {
        max-width: 320px;
    }
}

/* Standard Desktop (1366px - 1919px) */
@media (min-width: 1366px) and (max-width: 1919px) {
    .chat-container {
        width: 345px;
        height: 495px;
        right: 24px;
        bottom: 100px;
    }
    
    .chat-button {
        width: 60px;
        height: 60px;
        right: 24px;
        bottom: 24px;

    }
    
    .message-content {
        max-width: 280px;
    }
}

/* Laptop (1024px - 1365px) */
@media (min-width: 1024px) and (max-width: 1365px) {
    .chat-container {
        width: 340px;
        height: calc(100vh - 100px);        
        right: 20px;
        bottom: 90px;
    }
    
    .chat-button {
        width: 56px;
        height: 56px;
        right: 20px;
        bottom: 20px;
    }
    
    .message-content {
        max-width: 260px;
        font-size: 13px;
    }
    
    .quick-actions {
        gap: 10px;
    }
    
    .quick-action-card {
        padding: 14px;
    }
    
    .action-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .action-text h5 {
        font-size: 13px;
    }
    
    .action-text p {
        font-size: 11px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .chat-container {
        width: 320px;
        height: 500px;
        right: 16px;
        bottom: 80px;
    }
    
    .chat-button {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 16px;
    }
    
    .message-content {
        max-width: 240px;
        font-size: 13px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .quick-action-card {
        padding: 12px;
    }
    
    .action-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .action-text h5 {
        font-size: 12px;
    }
    
    .action-text p {
        font-size: 10px;
    }
    
    .question-chips {
        flex-direction: column;
    }
    
    .question-chip {
        justify-content: center;
        padding: 10px 16px;
    }
}

/* Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .chat-container {
        width: calc(100vw - 404px);
        height: calc(100vh - 120px);
        right: 16px;
        bottom: 100px;
        border-radius: 16px;
    }
    
    .chat-button {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .chat-button-tooltip {
        display: none;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 13px;
    }
    
    .doctor-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .chat-header {
        padding: 12px 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input {
        padding: 12px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
    
    .chat-input input {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Small Mobile (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    .chat-container {
        width: calc(100vw - 16px);
        height: calc(100vh - 100px);
        right: 8px;
        bottom: 80px;
        border-radius: 12px;
    }
    
    .chat-button {
        bottom: 12px;
        right: 12px;
        width: 52px;
        height: 52px;
    }
    
    .chat-header {
        padding: 10px 12px;
    }
    
    .chat-info h3 {
        font-size: 14px;
    }
    
    .chat-status {
        font-size: 11px;
    }
    
    .messages-container {
        padding: 12px;
        gap: 12px;
    }
    
    .welcome-message {
        padding: 16px;
    }
    
    .welcome-header h4 {
        font-size: 16px;
    }
    
    .welcome-header p {
        font-size: 13px;
    }
    
    .quick-action-card {
        padding: 12px;
    }
    
    .action-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .action-text h5 {
        font-size: 13px;
    }
    
    .action-text p {
        font-size: 11px;
    }
    
    .question-chip {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .message-content {
        padding: 10px 12px;
        font-size: 12px;
        max-width: 90%;
    }
    
    .doctor-card1 {
        padding: 12px;
    }
    
    .doctor-avatar1 {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .doctor-info h4 {
        font-size: 14px;
    }
    
    .doctor-specialty1 {
        font-size: 12px;
    }
    
    .doctor-details {
        font-size: 11px;
    }
    
    .book-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .chat-input {
        padding: 10px;
        gap: 8px;
    }
    
    .input-actions {
        gap: 6px;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .chat-input input {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .send-btn {
        width: 36px;
        height: 36px;
    }
    
    .follow-up-question {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Extra Small Mobile (320px - 359px) */
@media (max-width: 359px) {
    .chat-container {
        width: calc(100vw - 8px);
        height: calc(100vh - 130px);
        right: 4px;
        bottom: 70px;
    }
    
    .chat-button {
        bottom: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
    }
    
    .message-content {
        max-width: 95%;
        font-size: 11px;
    }
    
    .quick-actions {
        gap: 8px;
    }
    
    .quick-action-card {
        padding: 10px;
    }
    
    .action-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .action-text h5 {
        font-size: 11px;
    }
    
    .action-text p {
        font-size: 10px;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .chat-container {
        height: calc(100vh - 60px);
        bottom: 60px;
    }
    
    .welcome-message {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin: 12px 0;
    }
    
    .quick-action-card {
        padding: 8px;
    }
    
    .action-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .action-text h5 {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .action-text p {
        font-size: 10px;
    }
    
    .suggested-questions {
        margin-top: 12px;
    }
    
    .suggested-questions h5 {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .question-chips {
        gap: 6px;
    }
    
    .question-chip {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .chat-container {
        border-width: 0.5px;
    }
    
    .chat-button {
        border-width: 0.5px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .chat-container,
    .chat-button,
    .quick-action-card,
    .question-chip,
    .message,
    .doctor-card1,
    .follow-up-question {
        animation: none;
        transition: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .chat-container {
        background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    }
    
    .message-content {
        background: #1e293b;
    }
}
