* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #50cada 0%, #00a3bb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    max-height: 900px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #50cada 0%, #00a3bb 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #00a3bb;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.btn-danger:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8f9fa;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.message {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.5;
}

.user-message .message-content {
    max-width: 85%;
    background: linear-gradient(135deg, #50cada 0%, #00a3bb 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    max-width: 85%;
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message-content .message-text {
    margin: 0;
    line-height: 1.6;
}

.message-content .message-text strong {
    font-weight: 600;
    color: inherit;
}

.message-content .message-text em {
    font-style: italic;
}

.message-content .message-text ol,
.message-content .message-text ul {
    margin: 8px 0;
    padding-left: 24px;
}

.message-content .message-text li {
    margin: 4px 0;
}

.message-content .message-text .chat-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.message-timestamp {
    font-size: 11px;
    margin-top: 6px;
    opacity: 0.7;
    line-height: 1.4;
}

.user-message .message-timestamp {
    color: rgba(255, 255, 255, 0.85);
}

.bot-message .message-timestamp {
    color: #666;
}

/* Agent Chips */
.agent-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}
  
.agent-chip {
    border: 1px solid #00a3bb;
    background: #fff;
    color: #00a3bb;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
  
.agent-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 163, 187, 0.18);
}

.agent-chip-link {
    text-decoration: none;
    display: inline-block;
}

.agent-chip-link:hover {
    text-decoration: none;
}

/* Message link styles - for markdown links in message text */
.message-link {
    color: #00a3bb;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.message-link:hover {
    color: #008fa3;
    text-decoration: underline;
}

/* Doctor Cards Styles */
.doctor-cards-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.doctor-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px; /* Ensure consistent minimum height */
    height: 100%; /* Take full height of container */
}

.doctor-card:hover {
    border-color: #00a3bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.doctor-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.doctor-card .doctor-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.doctor-card .doctor-email {
    color: #555;
    margin-top: 10px;
}

.doctor-card button {
    margin-top: 15px;
    padding: 8px 15px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
  
.doctor-card button:hover {
    background-color: #0056b3;
}

.doctor-card-image,
.doctor-card-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.doctor-card-image-placeholder {
    background: linear-gradient(135deg, #50cada 0%, #00a3bb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.doctor-card-name-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doctor-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.doctor-card-verified {
    font-size: 12px;
    color: #27ae60;
    font-weight: 500;
}

.doctor-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #666;
    flex: 1; /* Take up available space, pushing action button to bottom */
    min-height: 0; /* Allow flex shrinking */
}

.doctor-card-specialty {
    font-weight: 600;
    color: #00a3bb;
}

.doctor-card-experience,
.doctor-card-languages {
    color: #666;
}

.doctor-card-rating {
    color: #f39c12;
    font-weight: 500;
}

.doctor-card-fees {
    color: #333;
    font-weight: 500;
    margin-top: 4px;
}

.doctor-card-about {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
}

.doctor-card-action {
    margin-top: auto; /* Push to bottom of flex container */
    padding: 10px 16px;
    background: linear-gradient(135deg, #50cada 0%, #00a3bb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.doctor-card-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.show {
    display: block;
}
  
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 24px;
    border: 1px solid #888;
    width: 80%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-content p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-buttons .btn {
    min-width: 80px;
}

/* Doctor Profile Modal - Minimalistic with internal scroll */
.doctor-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.doctor-profile-modal.show {
    display: flex;
}

.doctor-profile-modal-container {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.doctor-profile-modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px;
    flex: 1;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #00a3bb #f0f0f0;
}

.doctor-profile-modal-content::-webkit-scrollbar {
    width: 8px;
}

.doctor-profile-modal-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.doctor-profile-modal-content::-webkit-scrollbar-thumb {
    background: #00a3bb;
    border-radius: 4px;
}

.doctor-profile-modal-content::-webkit-scrollbar-thumb:hover {
    background: #008a9e;
}

.doctor-profile-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.doctor-profile-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Responsive doctor cards */
@media (max-width: 768px) {
    .doctor-cards-container {
        grid-template-columns: 1fr;
    }
}

.message-content .typing-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00a3bb;
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.3;
    }
}

.chat-input-container {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s ease;
}

#messageInput:focus {
    outline: none;
    border-color: #00a3bb;
}

#messageInput:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.send-icon {
    font-size: 18px;
}

.status-indicator {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    min-height: 16px;
    display: flex;
    align-items: center;
}

.status-indicator.error {
    color: #e74c3c;
}

.status-indicator.success {
    color: #27ae60;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #00a3bb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main page styles */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

.main-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-header h1 {
    font-size: 36px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.chats-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

#newChatBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    padding: 12px 24px;
}

#newChatBtn span {
    font-size: 20px;
    font-weight: bold;
}

.chats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.chat-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-card:hover {
    border-color: #00a3bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.chat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.chat-card-title-container {
    flex: 1;
    min-width: 0;
    position: relative;
}

.chat-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-card-title-input {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border: 2px solid #00a3bb;
    border-radius: 4px;
    padding: 4px 8px;
    background: white;
    font-family: inherit;
    outline: none;
}

.chat-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.chat-card-edit {
    background: transparent;
    border: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-card-edit:hover {
    background: #e8f4f8;
    color: #00a3bb;
    transform: scale(1.1);
}

.chat-card-edit.saving {
    color: #00a3bb;
    background: #e8f4f8;
}

.chat-card-delete {
    background: transparent;
    border: none;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-card-delete:hover {
    background: #fee;
    color: #e74c3c;
    transform: scale(1.1);
}

.chat-card-preview {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-card-meta {
    font-size: 12px;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    font-size: 18px;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-container {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .chat-header h1 {
        font-size: 20px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .main-container {
        padding: 20px 10px;
    }
    
    .chats-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    #newChatBtn {
        width: 100%;
        justify-content: center;
    }
    
    .chats-list {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 24px;
    flex: 1;
}

.modal-body p {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-warning {
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

.modal-footer .btn {
    min-width: 100px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Doctor Profile Content Styles - Minimalistic */

/* Doctor Profile Hero Section - Minimalistic */
.doctor-profile-hero {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 32px;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 24px;
}

.doctor-profile-hero-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.doctor-profile-hero-left {
    display: flex;
    gap: 16px;
    flex: 1;
    align-items: flex-start;
}

.doctor-profile-img-wrapper {
    position: relative;
    flex-shrink: 0;
}

.doctor-profile-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    box-shadow: none;
}

.doctor-profile-verified-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #00a3bb;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: none;
    border: 2px solid white;
}

.doctor-profile-hero-info {
    flex: 1;
    min-width: 0;
}

.doctor-profile-hero-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.doctor-profile-hero-specialty {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-bottom: 16px;
}

.doctor-profile-hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.doctor-profile-hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-profile-stars {
    color: #f39c12;
    font-size: 18px;
    letter-spacing: 2px;
}

.doctor-profile-rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.doctor-profile-hero-experience {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.doctor-profile-hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.doctor-profile-hero-fees {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-profile-hero-fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.doctor-profile-hero-fee-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.doctor-profile-fee-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.doctor-profile-fee-amount {
    font-size: 18px;
    font-weight: 600;
    color: #00a3bb;
}

.doctor-profile-hero-book-btn {
    background: #00a3bb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.doctor-profile-hero-book-btn:hover:not(:disabled) {
    background: #008a9e;
    transform: none;
    box-shadow: none;
}

.doctor-profile-hero-book-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Doctor Profile Main Content */
.doctor-profile-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doctor-profile-section {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
}

.doctor-profile-section:last-child {
    border-bottom: none;
}

.doctor-profile-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.doctor-profile-section-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-profile-section-subtitle svg {
    color: #666;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.doctor-profile-about-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.doctor-profile-about-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
}

.doctor-profile-about-wrapper {
    position: relative;
}

.doctor-profile-show-more {
    display: inline-block;
    margin-top: 12px;
    color: #00a3bb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

.doctor-profile-show-more:hover {
    color: #00a3bb;
    text-decoration: underline;
}

.doctor-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.doctor-profile-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doctor-profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-profile-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
}

.doctor-profile-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00a3bb;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Responsive Doctor Profile Modal */
@media (max-width: 768px) {
    .doctor-profile-modal {
        padding: 10px;
    }
    
    .doctor-profile-modal-container {
        max-height: 95vh;
    }
    
    .doctor-profile-modal-content {
        padding: 24px;
    }
    
    .doctor-profile-hero {
        padding-bottom: 20px;
        margin-bottom: 24px;
    }
    
    .doctor-profile-hero-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .doctor-profile-hero-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .doctor-profile-img {
        width: 80px;
        height: 80px;
    }
    
    .doctor-profile-hero-name {
        font-size: 20px;
    }
    
    .doctor-profile-hero-meta {
        justify-content: center;
        gap: 16px;
    }
    
    .doctor-profile-hero-right {
        width: 100%;
        min-width: auto;
    }
    
    .doctor-profile-hero-fees {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .doctor-profile-hero-fee-item {
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        padding-right: 12px;
        padding-bottom: 0;
    }
    
    .doctor-profile-hero-fee-item:last-child {
        border-right: none;
    }
    
    .doctor-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-profile-section {
        padding: 16px 0;
    }
}

/* Triage Questions Styles */
.triage-questions-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.triage-questions-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.triage-question-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.triage-question-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.triage-question-input {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: white;
}

.triage-question-input:focus {
    outline: none;
    border-color: #00a3bb;
}

.triage-question-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.triage-submit-btn {
    margin-top: 8px;
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 15px;
}

.triage-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive triage questions */
@media (max-width: 768px) {
    .triage-question-label {
        font-size: 14px;
    }
    
    .triage-question-input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .triage-submit-btn {
        width: 100%;
    }
}

