/* Custom CSS for Care Center Portal */

:root {
    /* CareCenter.app Brand Colors */
    --primary-bg: #0B1224;
    --accent-blue: #007BFF;
    --logo-blue: #468EF9;
    --white-text: #F1F5F9;
    --muted-text: #A6B1C3;
    --illustration-bg: #EAF1FA;
    --graph-blue: #3A84F9;
    
    /* Legacy color mappings */
    --primary-color: #007bff;
    --secondary-color: #A6B1C3;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #468EF9;
    --light-blue: #EAF1FA;
    --light-green: #e8f5e8;
    --light-orange: #fff3e0;
    --light-purple: #f3e5f5;
    --sidebar-width: 260px;
    --sidebar-bg: #ffffff;
    --main-bg: #f8f9fa;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-color: #e9ecef;
    --primary-dark: #0056b3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--main-bg);
    margin: 0;
    padding: 0;
}

/* Main Content Wrapper */
.main-content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--main-bg);
    padding-top: 70px; /* Add top padding to prevent overlap with toggle button */
}
body.sidebar-collapsed .main-content-wrapper { margin-left: 80px; }

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .main-content-wrapper {
        margin-left: 0;
        padding-top: 60px; /* Smaller top padding on mobile */
    }
}

/* Hide the original navbar for the dashboard */
.dhealt-dashboard .navbar {
    display: none;
}

/* Top Banner */

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    /* Hardware acceleration for smoother animations */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Optimize rendering performance */
    contain: layout style paint;
}

/* Mobile hidden state */
.sidebar.mobile-hidden {
    transform: translateX(-100%) translateZ(0);
    box-shadow: none;
    /* Reduce rendering when hidden */
    visibility: hidden;
}

/* Mobile open state */
.sidebar.mobile-open {
    transform: translateX(0) translateZ(0);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
    visibility: visible;
}

/* Shadcn-Style Sidebar Toggle Button */
.shadcn-sidebar-toggle {
    position: fixed;
    z-index: 1001;
    background: white;
    color: #3c4043;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    display: none; /* hidden by default (desktop) */
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .shadcn-sidebar-toggle { display: flex; }
}

.shadcn-sidebar-toggle:hover {
    background: #f8f9fa;
    border-color: #667eea;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.shadcn-sidebar-toggle:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.shadcn-sidebar-toggle.sidebar-open {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.shadcn-sidebar-toggle.sidebar-open:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.toggle-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.toggle-icon-wrapper i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: inherit;
}

/* Legacy support for old class name */
.sidebar-toggle-btn {
    position: fixed;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.sidebar-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Show toggle button when sidebar is hidden */
.sidebar.mobile-hidden + .sidebar-toggle-btn,
.sidebar.mobile-hidden ~ .sidebar-toggle-btn {
    display: flex;
    /* Enhanced visibility when sidebar is hidden */
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Pulsing glow animation for better visibility */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
    }
}

/* Responsive positioning for toggle button - now handled by JavaScript */
@media (min-width: 769px) {
    .sidebar-toggle-btn {
        top: 25px;
        left: 25px;
        min-width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Show toggle button on mobile - now handled by JavaScript */
@media (max-width: 768px) {
    .sidebar-toggle-btn {
        display: flex;
        top: 20px;
        left: 20px;
        min-width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

body.sidebar-collapsed .sidebar { width: 80px; }

body.sidebar-collapsed .sidebar .logo-text,
body.sidebar-collapsed .sidebar .nav-block-text,
body.sidebar-collapsed .sidebar .search-section,
body.sidebar-collapsed .sidebar .find-care-section,
body.sidebar-collapsed .sidebar .additional-items-section,
body.sidebar-collapsed .sidebar .profile-details {
    display: none;
}
/* Sidebar close button styling - Shadcn style */
.sidebar-close-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* Hidden by default on desktop */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.sidebar-close-btn:hover {
    background: #f1f5f9;
    color: #475569;
    opacity: 1;
}

.sidebar-close-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

/* Show close button on mobile/zoomed views */
@media (max-width: 768px) {
    .sidebar-close-btn {
        display: flex;
    }
}

/* Also show when user zoom is detected */
@media (min-resolution: 1.5dppx) {
    .sidebar-close-btn {
        display: flex;
    }
}

/* Hide header actions (bell icon) when collapsed */
body.sidebar-collapsed .sidebar .header-actions { display: none; }
body.sidebar-collapsed .sidebar .header-menu-btn { display: none; }

body.sidebar-collapsed .sidebar .main-nav-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 10px;
}

body.sidebar-collapsed .sidebar .nav-block {
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

body.sidebar-collapsed .sidebar .nav-block-link {
    padding: 8px;
    min-height: auto;
}

body.sidebar-collapsed .sidebar .nav-block-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    min-height: 80px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.header-notification-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.header-notification-btn:hover {
    background: #f8f9fa;
    color: #2196f3;
}

/* Main Navigation Grid */
.main-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
}

.nav-block {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
}

.nav-block:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.nav-block.active {
    background: var(--illustration-bg);
    border-color: var(--accent-blue);
}

.nav-block-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    padding: 16px 8px;
    width: 100%;
    height: 100%;
    text-align: center;
}

.nav-block.active .nav-block-link {
    color: var(--accent-blue);
}

.nav-block-link:hover {
    text-decoration: none;
    color: var(--logo-blue);
}

.nav-block.active .nav-block-link:hover {
    color: var(--accent-blue);
}

.nav-block-icon {
    width: 32px;
    height: 32px;
    background: var(--logo-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-text);
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.nav-block.active .nav-block-icon {
    background: var(--accent-blue);
}

.nav-block-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
}

/* Search Section */
.search-section {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 14px;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #2196f3;
    background: white;
}

.search-input::placeholder {
    color: #999;
}

/* Find Care Section */
.find-care-section {
    padding: 0;
    position: relative;
}

.find-care-toggle {
    width: 100%;
    background: #e3f2fd;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.find-care-toggle:hover {
    background: #bbdefb;
}

.find-care-toggle.active {
    background: #e3f2fd;
    color: #2196f3;
}

.find-care-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-dot {
    width: 8px;
    height: 8px;
    background: #17a2b8;
    border-radius: 50%;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1976d2;
    text-transform: none;
    letter-spacing: 0;
}

/* Fix for Find Care font size in e-visits flow - ensure consistent font size */
.teleconsult-content .section-title {
    font-size: 14px !important;
}

.teleconsult-sidebar .section-title {
    font-size: 14px !important;
}

/* More specific fix for Find Care section in sidebar */
.find-care-section .section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Ensure consistent font size for all sidebar elements in e-visits */
.teleconsult-main-card .find-care-section .section-title,
.teleconsult-main-card .find-care-section .find-care-toggle,
.teleconsult-main-card .find-care-section .find-care-toggle .section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Ensure consistent font size when Find Care is active/expanded */
.find-care-toggle.active .section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.find-care-dropdown.open + .find-care-toggle .section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Additional rules to ensure font size consistency in all states */
.find-care-section:hover .section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.find-care-toggle:focus .section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.toggle-arrow {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.find-care-dropdown {
    max-height: 0;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.find-care-dropdown::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        #e0e0e0 0px,
        #e0e0e0 2px,
        transparent 2px,
        transparent 4px
    );
    z-index: 1;
}

.find-care-dropdown.open {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure font size consistency when dropdown is open */
.find-care-dropdown.open + .find-care-toggle .section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.find-care-section:has(.find-care-dropdown.open) .section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.find-care-item {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
}

.find-care-item:hover {
    text-decoration: none;
    color: #2196f3;
    background: #f8f9fa;
}

.find-care-icon {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 2;
}

.find-care-item:hover .find-care-icon {
    color: #2196f3;
}

.find-care-text {
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/* Additional Items Section */
.additional-items-section {
    padding: 20px 0;
    border-top: 1px solid #f1f3f4;
}

.additional-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
}

.additional-item:hover {
    text-decoration: none;
    color: #2196f3;
    background: #f8f9fa;
}

.additional-icon {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 14px;
}

.additional-text {
    font-size: 14px;
}

/* Sidebar logout button styled like profile logout */
.sidebar-logout {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f65 100%);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
}
.sidebar-logout:hover {
    color: #fff;
    filter: brightness(0.98);
    text-decoration: none;
}

/* Notifications Section */
.notifications-section {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #f1f3f4;
}

/* Minimalist Notification Styles */
.notification-count-badge {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.notification-item-minimal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item-minimal:last-child {
    border-bottom: none;
}

.notification-item-minimal:hover {
    background: #f8fafc;
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
}

.notification-item-minimal.unread {
    background: #fef3c7;
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 400;
    color: #374151;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-message {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}

.notification-indicator {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.no-notifications-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: #9ca3af;
    font-size: 14px;
}

.no-notifications-minimal i {
    font-size: 16px;
}

.notifications-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

/* Notification Popup Styles */
.notification-item-popup {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item-popup:last-child {
    border-bottom: none;
}

.notification-item-popup:hover {
    background: #f8fafc;
}

.notification-item-popup.unread {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
}

.notification-indicator-popup {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

.no-notifications-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: #9ca3af;
    font-size: 14px;
}

.no-notifications-popup i {
    font-size: 16px;
}

/* Minimal Notification Popup Styles */
.notification-item-minimal-popup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item-minimal-popup:last-child {
    border-bottom: none;
}

.notification-item-minimal-popup:hover {
    background: #f8fafc;
}

.notification-item-minimal-popup.unread {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
}

.notification-content-minimal {
    flex: 1;
    min-width: 0;
}

.notification-title-minimal {
    font-weight: 400;
    color: #374151;
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1.3;
}

.notification-time-minimal {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 8px;
}

.no-notifications-minimal-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Notifications Page Styles */
.notification-card.unread {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
}

.notification-card.unread .notification-title {
    font-weight: 400;
    color: #374151;
}

.unread-badge {
    background: #3b82f6;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-actions .mark-read {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    margin-right: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-actions .mark-read:hover {
    background: #059669;
}

.notification-actions .mark-read i {
    font-size: 12px;
}

.notification-actions .toggle-btn {
    background: none;
    color: #3b82f6;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.notification-actions .toggle-btn:hover {
    color: #1d4ed8;
}

.notification-actions .toggle-btn i {
    font-size: 16px;
}

.notification-message {
    display: none; /* Start collapsed */
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    margin-top: 8px;
}

.teleconsult-details {
    margin-top: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.teleconsult-details h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.detail-row strong {
    min-width: 120px;
    color: #6b7280;
    margin-right: 8px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-scheduled {
    background: #dbeafe;
    color: #1e40af;
}

.status-awaiting_payment {
    background: #fef3c7;
    color: #d97706;
}

.status-paid {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Notification Preview Styles */
.notification-message-preview {
    color: #6b7280;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.4;
}

.notification-details-preview {
    margin: 12px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    min-width: 60px;
    color: #6b7280;
    margin-right: 8px;
    font-weight: 600;
}

.notification-actions .view-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-actions .view-btn:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

.notification-actions .view-btn i {
    font-size: 12px;
}

.notification-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    color: #666;
}

.notification-toggle:hover {
    background: #f8f9fa;
    color: #2196f3;
}

.notification-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.notification-text {
    font-size: 14px;
    flex: 1;
}

.notification-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    display: none;
}

/* Notifications Popup */
.notifications-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.notifications-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.notifications-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.close-notifications {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-notifications:hover {
    background: #e9ecef;
    color: #495057;
}

.notifications-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon-small {
    width: 32px;
    height: 32px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-details {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 400;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: #999;
    font-size: 0.75rem;
}

.notifications-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.view-all-notifications {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #e9ecef;
}

.view-all-notifications:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

/* Notifications Page Styles */
.notifications-page-container {
    max-width: none;
    margin: 0;
    padding: 0 20px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.header-content h1 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
}

.header-content p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid #e9ecef;
}

.notification-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.notification-card.urgent {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.notification-card.high {
    border-left-color: #fd7e14;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.notification-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
}

.notification-icon {
    width: 48px;
    height: 48px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-card.urgent .notification-icon {
    background: #ffebee;
    color: #d32f2f;
}

.notification-card.high .notification-icon {
    background: #fff3e0;
    color: #f57c00;
}

.notification-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-title {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 400;
}

.notification-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.notification-type {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.notification-time {
    color: #6c757d;
    font-size: 0.85rem;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.priority-badge.urgent {
    background: #dc3545;
    color: white;
}

.priority-badge.high {
    background: #fd7e14;
    color: white;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}


.notification-message {
    color: #495057;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.notification-link {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.no-notifications {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-notifications-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-notifications h3 {
    margin: 0 0 1rem 0;
    color: #495057;
}

.no-notifications p {
    margin: 0;
    font-size: 1.1rem;
}

/* Mobile Responsive for Notifications */
@media (max-width: 768px) {
    .notifications-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) translateY(-10px);
        width: 90%;
        max-width: 400px;
        max-height: 70vh;
    }
    
    .notifications-popup.active {
        transform: translate(-50%, -50%) translateY(0);
    }
    
    /* Notifications Page Mobile Styles */
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .notifications-list {
        gap: 0.75rem;
    }
    
    .notification-header {
        padding: 1rem 1.5rem;
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        align-self: flex-start;
    }
    
    .notification-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .notification-details-preview {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .notification-title {
        font-size: 1rem;
    }
}

/* Desktop styles for better space utilization */
@media (min-width: 1024px) {
    .notifications-page-container {
        padding: 0 40px;
    }
    
    .notification-header {
        padding: 2rem 3rem;
        gap: 2rem;
    }
    
    .notification-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    
    .notification-title {
        font-size: 1.25rem;
        font-weight: 500;
    }
    
    .notification-message-preview {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .notification-details-preview {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
        padding: 20px;
    }
    
    .notification-meta-info {
        gap: 1.5rem;
    }
    
    .notification-actions {
        gap: 0.75rem;
    }
    
    .action-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .notification-type,
    .priority-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .notification-content {
        padding: 0 1rem 1rem 1rem;
        margin-top: 0.25rem;
        padding-top: 1rem;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
}

/* User Profile Section */
.user-profile-section {
    margin-top: auto;
    border-top: 1px solid #f1f3f4;
    padding: 15px 10px;
    background: #f8f9fa;
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin-left: -2px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-actions {
    margin-left: auto;
}

.profile-name {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 10px;
    color: #666;
}

.profile-expand {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
}

.profile-expand:hover {
    color: #2196f3;
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    animation: slideDown 0.3s ease;
    display: none;
    z-index: 1000;
}

.profile-dropdown.show {
    display: block;
}

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

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    font-size: 14px;
}

.profile-dropdown-item:hover {
    background: #f8f9fa;
    color: #2196f3;
    text-decoration: none;
}

.profile-dropdown-item.logout-item:hover {
    background: #fff5f5;
    color: #dc3545;
}

.profile-dropdown-icon {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.profile-dropdown-text {
    font-weight: 500;
}

.profile-dropdown-divider {
    margin: 0;
    border-color: #e9ecef;
}

.profile-expand {
    transition: transform 0.3s ease;
}

.profile-expand i {
    transition: transform 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 770px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .header-notification-btn {
        padding: 6px;
        font-size: 14px;
    }
    
    .header-notification-badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    .header-menu-btn {
        padding: 6px;
        font-size: 14px;
    }
}


/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Drawer overlay and toggle button */
.sidebar-edge-toggle {
    position: fixed;
    top: 20px;
    left: calc(var(--sidebar-width) + 30px);
    z-index: 1001;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: block;
    transform: translateX(-100%);
    transition: left 0.3s ease, transform 0.3s ease;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Hardware acceleration */
    will-change: opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.sidebar-overlay.active,
.drawer-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Button follows sidebar width automatically */
body.sidebar-collapsed .sidebar-edge-toggle { left: 110px; }

@media (max-width: 768px) {
    .main-content-wrapper { margin-left: 0; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .drawer-open .sidebar { transform: translateX(0); }
    .sidebar-edge-toggle { left: 12px; transform: none; }
    .drawer-open .sidebar-edge-toggle { left: calc(var(--sidebar-width) + 30px); transform: translateX(-100%); }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--main-bg);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.card-title h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.card-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.card-action {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-action:hover {
    color: #0056b3;
    text-decoration: none;
}

.expand-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.expand-btn:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.card-content {
    padding: 1.25rem;
}

/* Care Team Header Card */
.care-team-header-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.care-team-header-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Care Team Card - Modern Horizontal Style */
.care-team-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: #f7fafd;
    border-radius: 18px;
    box-shadow: none;
    align-items: stretch;
}
.care-team-horizontal::-webkit-scrollbar {
    display: none;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    text-align: center;
}
.team-member-card:last-child {
    margin-right: 0;
}
.team-member-card:hover {
    box-shadow: 0 6px 24px 0 rgba(0,0,0,0.10);
    transform: translateY(-2px) scale(1.03);
}
.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid #e3f2fd;
    background: #f7fafd;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
    flex-shrink: 0;
}
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-info {
    flex: 1;
    min-width: 0;
    text-align: center;
    margin-bottom: 1rem;
}
.member-name {
    font-weight: 700;
    color: #222b45;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    word-wrap: break-word;
}
.member-specialty {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.2;
    word-wrap: break-word;
}
.member-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.action-btn {
    width: 38px;
    height: 38px;
    border: 1.5px solid #e3eafc;
    background: #f7fafd;
    color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    box-shadow: none;
}
.action-btn:hover {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #b6d0f7;
    transform: scale(1.08);
}
.no-doctors-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}
@media (max-width: 900px) {
    .care-team-header-card {
        margin-bottom: 1.5rem;
    }
    .care-team-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    .team-member-card {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    .member-avatar {
        width: 56px;
        height: 56px;
        margin-bottom: 0.75rem;
    }
    .member-info {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    .member-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .care-team-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    .team-member-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    .member-avatar {
        width: 48px;
        height: 48px;
        margin-bottom: 0.75rem;
    }
    .member-info {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    .member-actions {
        justify-content: center;
    }
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .care-team-horizontal {
        padding: 0.75rem;
    }
    .team-member-card {
        padding: 0.75rem;
    }
    .member-avatar {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
    }
    .member-name {
        font-size: 0.9rem;
    }
    .member-specialty {
        font-size: 0.8rem;
    }
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Balance Card */
.balance-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.balance-icon {
    color: var(--primary-color);
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 1rem 0;
}

/* Appointment Card */
.appointment-header {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.appointment-icon {
    color: var(--warning-color);
}

.appointment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.appointment-date {
    flex-shrink: 0;
}

.date-box {
    background: var(--warning-color);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.date-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.date-day {
    font-size: 1.2rem;
    font-weight: 700;
}

.appointment-details {
    flex: 1;
}

.appointment-doctor {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.appointment-time {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.appointment-location {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Questionnaire Card */
.questionnaire-header {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.questionnaire-icon {
    color: var(--info-color);
}

/* Newsletter Card */
.newsletter-header {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.newsletter-icon {
    color: var(--danger-color);
}

/* Message and Newsletter Items */
.message-item,
.newsletter-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.message-avatar,
.newsletter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img,
.newsletter-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content,
.newsletter-content {
    flex: 1;
}

.message-sender,
.newsletter-sender {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.newsletter-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.new-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-content-wrapper {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-edge-toggle { display: block; }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .care-team-grid {
        grid-template-columns: 1fr;
    }
}

/* Legacy styles for backward compatibility */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.appointment-card.upcoming {
    border-left-color: var(--success-color);
}

.appointment-card.past {
    border-left-color: var(--secondary-color);
}

.appointment-card.cancelled {
    border-left-color: var(--danger-color);
}

.result-card {
    border-radius: 10px;
    margin-bottom: 1rem;
}

.result-normal {
    border-left: 4px solid var(--success-color);
}

.result-abnormal {
    border-left: 4px solid var(--warning-color);
}

.result-critical {
    border-left: 4px solid var(--danger-color);
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.footer {
    margin-top: auto;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Calendar styles */
.calendar-day {
    min-height: 100px;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}

.calendar-day.today {
    background-color: rgba(13, 110, 253, 0.1);
}

.calendar-event {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

/* Doctor Directory Styles */
.doctor-directory-container {
    max-width: 1200px;
    margin: 0 auto;
}

.directory-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.directory-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.directory-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.search-filter-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-filter-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.filter-box {
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.clear-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.results-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.results-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.results-summary {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.doctor-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem auto;
    border: 3px solid #e3f2fd;
    background: #f7fafd;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    text-align: center;
    margin-bottom: 1.5rem;
    flex: 1;
}

.doctor-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.doctor-specialty {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

.doctor-bio {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.doctor-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.action-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.action-btn.secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.no-results-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-results h3 {
    margin: 0 0 1rem 0;
    color: #495057;
}

.no-results p {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

/* Mobile Responsive for Doctor Directory */
@media (max-width: 768px) {
    .directory-header {
        padding: 2rem 1rem;
    }
    
    .directory-title {
        font-size: 2rem;
    }
    
    .search-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box,
    .filter-box {
        min-width: auto;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-card {
        padding: 1.25rem;
    }
    
    .doctor-actions {
        flex-direction: column;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* === Modern Animated Login Page Styles === */
.login-animated-bg {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    background: linear-gradient(120deg, #e3f2fd 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}
.login-floating-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}
.login-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(2px);
    animation: login-shape-float 12s infinite alternate ease-in-out;
}
.login-shape.shape1 { width: 220px; height: 220px; background: #2196f3; top: 5%; left: 8%; animation-delay: 0s; }
.login-shape.shape2 { width: 160px; height: 160px; background: #0dcaf0; top: 60%; left: 10%; animation-delay: 2s; }
.login-shape.shape3 { width: 120px; height: 120px; background: #ffc107; top: 20%; right: 12%; animation-delay: 4s; }
.login-shape.shape4 { width: 180px; height: 180px; background: #dc3545; bottom: 10%; right: 8%; animation-delay: 1s; }
.login-shape.shape5 { width: 90px; height: 90px; background: #198754; bottom: 18%; left: 40%; animation-delay: 3s; }
@keyframes login-shape-float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.08); }
}
.login-glass-card {
    position: relative;
    z-index: 2;
    min-width: 340px;
    max-width: 370px;
    margin: 40px auto;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(200,200,255,0.18);
    transition: box-shadow 0.3s;
}
.login-glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(31,38,135,0.22);
}
.login-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2196f3 60%, #0dcaf0 100%);
    color: #fff;
    font-size: 2.2rem;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(33,150,243,0.12);
}
.login-card-header h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0.5rem 0 0.2rem 0;
    color: #1976d2;
    letter-spacing: 0.5px;
}
.login-welcome {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}
.login-form {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.login-form-group {
    width: 100%;
}
.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(245, 245, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(33,150,243,0.04);
    transition: box-shadow 0.2s;
}
.login-input-wrapper:focus-within {
    box-shadow: 0 2px 12px rgba(33,150,243,0.10);
}
.login-input-icon {
    color: #2196f3;
    font-size: 1.1rem;
    margin-left: 0.9rem;
    margin-right: 0.5rem;
    opacity: 0.8;
}
.login-input-wrapper input[type="text"],
.login-input-wrapper input[type="password"] {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    padding: 0.85rem 0.85rem 0.85rem 0.2rem;
    width: 100%;
    color: #222b45;
    border-radius: 12px;
    box-shadow: none;
    transition: background 0.2s;
}
.login-input-wrapper input[type="text"]:focus,
.login-input-wrapper input[type="password"]:focus {
    background: rgba(255,255,255,0.95);
}
.login-password-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    margin-right: 0.9rem;
    margin-left: 0.5rem;
    cursor: pointer;
    outline: none;
    transition: color 0.2s;
}
.login-password-toggle:hover {
    color: #2196f3;
}
.login-error {
    color: #dc3545;
    font-size: 0.93rem;
    margin-top: 0.3rem;
    margin-left: 0.2rem;
}
.login-error-nonfield {
    margin-bottom: 0.5rem;
}
.login-btn {
    width: 100%;
    background: linear-gradient(90deg, #2196f3 60%, #0dcaf0 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 0;
    margin-top: 0.2rem;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, box-shadow 0.2s;
}
.login-btn:hover, .login-btn:focus {
    background: linear-gradient(90deg, #1976d2 60%, #0dcaf0 100%);
    box-shadow: 0 4px 16px rgba(33,150,243,0.18);
}
.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.login-btn-text { display: inline; }
.login-btn-icon { display: inline; }
.login-btn-loader { display: none; }
.login-spinner {
    width: 1.2em;
    height: 1.2em;
    border: 2.5px solid #fff;
    border-top: 2.5px solid #2196f3;
    border-radius: 50%;
    display: inline-block;
    animation: login-spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes login-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
}
.login-signup-link {
    color: #2196f3;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.login-signup-link:hover {
    color: #1976d2;
}
.login-success-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(33,150,243,0.12);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.login-success-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.login-success-content {
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(33,150,243,0.18);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: login-success-pop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes login-success-pop {
    0% { transform: scale(0.7); opacity: 0; }
    80% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}
.login-success-icon {
    font-size: 2.8rem;
    color: #198754;
    margin-bottom: 1rem;
    background: #e8f5e9;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(25,135,84,0.10);
}
@media (max-width: 600px) {
    .login-glass-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .login-success-content {
        padding: 1.5rem 0.5rem 1.2rem 0.5rem;
    }
}

/* Teleconsultation Flow Styles */
.teleconsult-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Modern Horizontal Stepper */
.progress-tracker {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.progress-header {
    margin-bottom: 40px;
}

.progress-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.progress-header p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

/* Progress Steps Container */
.progress-steps-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 20px 0;
}

.progress-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.step {
    display: flex !important;
    align-items: center !important;
    position: relative;
    z-index: 2;
    flex-direction: row !important;
}

.step-content {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step.completed .step-content {
    background: white;
    color: #3b82f6;
    border-color: #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.step.current .step-content {
    background: white;
    color: #3b82f6;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.step.pending .step-content {
    background: white;
    color: #9ca3af;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    flex-shrink: 0;
    background: #f3f4f6;
    color: #9ca3af;
}

.step.completed .step-circle {
    background: #3b82f6;
    color: white;
}

.step.current .step-circle {
    background: #3b82f6;
    color: white;
}

.step-icon {
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.8;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Checkmark for completed steps */
.step.completed .step-number {
    display: none;
}

.step.completed .step-circle::before {
    content: '✓';
    font-size: 14px;
    font-weight: bold;
}

/* Arrow separators */
.step:not(:last-child)::after {
    content: '>';
    color: #d1d5db;
    font-size: 16px;
    font-weight: 600;
    margin: 0 16px;
    z-index: 1;
}

.step.completed:not(:last-child)::after {
    color: #3b82f6;
}

.step.current:not(:last-child)::after {
    color: #3b82f6;
}

.current-step-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.current-step-info h4 {
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
}

.main-layout {
    max-width: 800px;
    margin: 0 auto;
}

.left-content {
    min-height: 500px;
}

.step-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-number {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.btn-option {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.btn-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.2);
    color: #333;
    text-decoration: none;
}

.btn-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.btn-option.selected:hover {
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #5a6268;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.medication-item, .allergy-item, .symptom-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.medication-item:hover, .allergy-item:hover, .symptom-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.medication-item.selected, .allergy-item.selected, .symptom-item.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-info {
    background: #e7f3ff;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Doctor Dashboard - Minimalist Button Styles */
.doctor-dashboard .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 400;
    border-width: 1px;
    transition: all 0.2s ease;
}

.doctor-dashboard .btn-warning {
    background-color: transparent;
    border-color: #ffc107;
    color: #856404;
}

.doctor-dashboard .btn-warning:hover {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    transform: none;
    box-shadow: none;
}

.doctor-dashboard .btn-outline-danger {
    background-color: transparent;
    border-color: #dc3545;
    color: #dc3545;
}

.doctor-dashboard .btn-outline-danger:hover {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    transform: none;
    box-shadow: none;
}

.doctor-dashboard .btn-outline-secondary {
    background-color: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

.doctor-dashboard .btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #6c757d;
    color: #495057;
    transform: none;
    box-shadow: none;
}

.doctor-dashboard .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
    border-radius: 3px;
    font-weight: 400;
}

.doctor-dashboard .badge.bg-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7;
}

/* Teleconsultation Flow Layout */
.teleconsult-main-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.teleconsult-progress-header {
    margin-bottom: 40px;
}

.teleconsult-progress-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.teleconsult-progress-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

.teleconsult-steps-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 20px 0;
    margin-bottom: 40px;
}

.teleconsult-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
}

.teleconsult-step {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.teleconsult-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.teleconsult-step-circle.completed {
    background: #3b82f6;
    color: white;
}

.teleconsult-step-circle.current {
    background: #3b82f6;
    color: white;
}

.teleconsult-step-circle.pending {
    background: #f3f4f6;
    color: #9ca3af;
}

.teleconsult-step-label {
    font-size: 14px;
    font-weight: 500;
}

.teleconsult-step-label.completed {
    color: #3b82f6;
}

.teleconsult-step-label.current {
    color: #3b82f6;
    font-weight: 600;
}

.teleconsult-step-label.pending {
    color: #9ca3af;
}

.teleconsult-layout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    margin-top: 0;
}

.teleconsult-content {
    padding: 30px;
    background: #f8f9fa;
}

.teleconsult-step-title {
    color: #2c3e50;
    font-weight: 700;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}

.teleconsult-sidebar {
    background: white;
    border-left: 1px solid #e9ecef;
    border-radius: 0;
    padding: 24px;
    position: static;
    width: 400px;
    flex-shrink: 0;
}

.teleconsult-summary-header {
    margin-bottom: 20px;
}

.teleconsult-summary-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.teleconsult-summary-icon {
    color: #28a745;
    margin-right: 8px;
}

.teleconsult-summary-subtitle {
    color: #6c757d;
    margin: 5px 0 0 0;
    font-size: 14px;
}

.teleconsult-summary-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.teleconsult-summary-section:last-child {
    border-bottom: none;
}

.teleconsult-summary-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.teleconsult-summary-icon-small {
    color: #667eea;
    margin-right: 8px;
    font-size: 16px;
}

.teleconsult-summary-label {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.teleconsult-summary-value {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
    margin-left: 24px;
}

.teleconsult-summary-description {
    color: #6c757d;
    margin: 5px 0 0 24px;
    font-size: 13px;
    font-style: italic;
}

.teleconsult-summary-details {
    margin-left: 24px;
}

.teleconsult-summary-detail-item {
    color: #6c757d;
    font-size: 14px;
}

.teleconsult-summary-separator {
    color: #dee2e6;
    margin: 0 8px;
}

.teleconsult-next-steps {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.teleconsult-next-steps-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.teleconsult-next-steps-icon {
    color: #0056b3;
    margin-right: 8px;
    font-size: 16px;
}

.teleconsult-next-steps-title {
    color: #0056b3;
    font-size: 14px;
    font-weight: 600;
}

.teleconsult-next-steps-text {
    color: #0056b3;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    margin-left: 24px;
}

/* Multiple Conditions Summary */
.teleconsult-summary-conditions {
    margin-left: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.teleconsult-condition-tag {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    line-height: 1.2;
}

.teleconsult-condition-tag:last-child {
    background: #6c757d;
    font-style: italic;
}

/* Process Steps for Step 1 Sidebar */
.teleconsult-process-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.teleconsult-process-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.teleconsult-process-step:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.teleconsult-process-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.teleconsult-process-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.teleconsult-process-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Responsive for Teleconsultation */
@media (max-width: 900px) {
    .teleconsult-container {
        padding: 10px;
    }
    
    .teleconsult-main-card {
        padding: 20px;
    }
    
    .teleconsult-steps {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px 10px 10px;
        gap: 8px;
    }
    
    .teleconsult-step {
        flex-shrink: 0;
    }
    
    .teleconsult-step-circle {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 6px;
    }
    
    .teleconsult-step-label {
        font-size: 12px;
    }
    
    .teleconsult-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .teleconsult-sidebar {
        position: static;
        margin-top: 20px;
        width: 100%;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons > div {
        width: 100%;
        text-align: center;
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    transition: all 0.2s ease;
}

.logo-link:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo-link:hover .logo-text {
    color: #2196f3;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-notification-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.header-notification-btn:hover {
    background: #f8f9fa;
    color: #2196f3;
}

.header-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    display: none;
}

/* Clinic Assignment Badge Styles */
.clinic-assignment {
    margin-top: 8px;
}

.clinic-assignment .badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Force notification titles to be friendly and not bold - Updated 2025-10-06 */
.notification-item-minimal .notification-title,
.notification-item-minimal-popup .notification-title-minimal,
.notification-item .notification-title {
    font-weight: 400 !important;
    color: #374151 !important;
}

/* Notification message styling for popup */
.notification-message-minimal {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    margin: 2px 0;
}

@media (min-width: 769px) {
  /* Force sidebar open on desktop */
  .sidebar { transform: translateX(0) !important; visibility: visible !important; }
  .sidebar.mobile-hidden { transform: translateX(0) !important; visibility: visible !important; }
  /* Hide overlay and toggle on desktop */
  .sidebar-overlay { display: none !important; }
  .shadcn-sidebar-toggle { display: none !important; }
}