﻿:root {
    /* Elapha Brand Colors */
    --primary-yellow: #FFD700;
    --secondary-yellow: #E0C000;
    --primary-black: #000000;
    --text-color-dark: var(--primary-black);
    --text-color-medium: #646464;
    --text-color-light: #FFFFFF;

    /* Backgrounds and Borders */
    --page-bg: #F0F0F0;
    --card-bg: #FFFFFF;
    --border-light: #E8E8E8;
    --border-medium: #D8D8D8;

    /* Sidebar specific colors */
    --sidebar-dark-bg: #1E2832;
    --sidebar-text-active: var(--primary-yellow);
    --sidebar-text-inactive: var(--text-color-light);

    /* Status colors */
    --green-online: #34C759;
    --red-offline: #FF3B30;
    --orange-pending: #FF9500;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--page-bg);
    margin: 0;
    color: var(--text-color-dark);
    display: flex;
}

/* --- Sidebar Styles --- */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-dark-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    width: 150px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--sidebar-text-inactive);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu a:hover {
    background-color: #374755;
}

.sidebar-menu a.active {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 600;
}

.sidebar-menu i {
    margin-right: 15px;
    font-size: 1.2em;
}
}

/* Mobile sidebar hidden by default */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        width: 260px;
        background: var(--card-bg);
        z-index: 1000;
        transition: left 0.3s ease-in-out;
    }

    .sidebar.open {
        left: 0;
    }

    .hamburger {
        display: block;
        font-size: 1.6rem;
        cursor: pointer;
        margin-left: 1rem;
    }

    .main-container {
        margin-left: 0 !important;
    }
}

/* Desktop hamburger hidden */
.hamburger {
    display: none;
}


/* --- Shared Layout and Components --- */
.main-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card h3 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.main-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.left-column {
    width: 30%;
}

.center-column {
    flex-grow: 1;
}

.right-column {
    width: 30%;
}

/* --- Appointments List --- */
.appointments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
}

.appointment-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.appointment-info h4,
.appointment-info p {
    margin: 0;
}

.appointment-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.approve-btn {
    background-color: var(--green-online);
    color: var(--text-color-light);
}

.approve-btn:hover {
    background-color: #219641;
}

.cancel-btn {
    background-color: var(--red-offline);
    color: var(--text-color-light);
}

.cancel-btn:hover {
    background-color: #d13227;
}

/* --- Footer --- */
.footer {
    padding: 20px;
    text-align: center;
    color: var(--text-color-medium);
    border-top: 1px solid var(--border-light);
    margin-top: auto; /* Pushes the footer to the bottom */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color-medium);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-black);
}

/* --- Social Media Page Styles --- */
.social-media-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.headerfixed {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logoletter {
    height: auto;
}

.header .icon-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.header .icon-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color-medium);
    transition: color 0.2s;
}

.header .icon-bar a:hover,
.header .icon-bar a.active {
    color: var(--primary-yellow);
}

.header .icon-bar i {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.header .icon-bar p {
    margin: 0;
    font-size: 0.8em;
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

#searching {
    flex-grow: 1;
    max-width: 600px;
}

#search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 1em;
}

/* Three-column layout */
.columns-container {
    display: flex;
    gap: 20px;
}

.left-column, .right-column {
    flex-basis: 25%;
    max-width: 25%;
    flex-shrink: 0;
}

.center-column {
    flex-grow: 1;
    flex-basis: 50%;
    max-width: 50%;
}

/* Form and post styles */
.create-post-card {
    padding: 20px;
}

#create-post-form {
    display: flex;
    flex-direction: column;
}

#post-content {
    width: 100%;
    height: 100px; /* Adjust height for a larger text box */
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#create-post-form button {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

#create-post-form button:hover {
    background-color: var(--secondary-yellow);
}

.posts-list .post-card {
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
}

.posts-list .post-card h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.posts-list .post-card .post-meta {
    font-size: 0.9em;
    color: var(--text-color-medium);
    margin-bottom: 10px;
}

.post-actions button {
    background-color: transparent;
    border: none;
    color: var(--text-color-medium);
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.post-actions button i {
    font-size: 1.1em;
}

.post-actions .like-btn:hover {
    color: var(--primary-yellow);
}

.post-actions .like-btn.liked {
    color: var(--primary-yellow);
}

.comment-section {
    border-top: 1px solid var(--border-light);
    margin-top: 15px;
    padding-top: 15px;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
    margin-right: 10px;
}

.comment-date {
    font-size: 0.8em;
    color: var(--text-color-medium);
}

.comment-input {
    display: flex;
    margin-top: 10px;
    gap: 10px;
}

.comment-input textarea {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.comment-input button {
    padding: 8px 12px;
    border: none;
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 8px;
    cursor: pointer;
}

/* --- Patient Dashboard Styles --- */
.patient-admin-layout {
    display: flex;
    width: 100%;
}

.hero-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: var(--text-color-light);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.hero-card h2 {
    font-size: 2em;
    margin: 0 0 10px 0;
}

.hero-card p {
    font-size: 1.1em;
    margin: 0 0 20px 0;
}

.hero-card .cta-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.hero-card .cta-btn:hover {
    background-color: var(--secondary-yellow);
}

/* --- Doctor Card Styles (Society Page) --- */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.doctor-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.doctor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.doctor-card h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.doctor-card .doctor-specialty {
    color: var(--text-color-medium);
    margin-bottom: 15px;
}

.connect-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.connect-btn:hover {
    background-color: var(--secondary-yellow);
}

/* --- Reports Page Styles --- */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.report-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.report-card i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.report-card h4 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.report-card p {
    color: var(--text-color-medium);
    font-size: 0.9rem;
}

/* --- Landing Page Styles (added from landing-page.css) --- */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    background-color: var(--page-bg);
}

.landing-logo img {
    width: 200px;
    margin-bottom: 20px;
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.landing-tagline {
    font-size: 1.1rem;
    color: var(--text-color-medium);
    margin-bottom: 40px;
}

.user-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    width: 100%;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .user-options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.user-option-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.user-option-card i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.user-option-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.user-option-card p {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    margin-bottom: 20px;
}

.cta-button {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--secondary-yellow);
}

.login-prompt {
    margin-top: 20px;
}

.login-prompt p {
    color: var(--text-color-medium);
}

.login-link {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-link:hover {
    color: var(--secondary-yellow);
}

.footer {
    width: 100%;
    border-top: none;
    margin-top: 50px;
    color: var(--text-color-medium);
}
/* === IMPROVED VIDEO CALL SECTION STYLING === */
.video-call-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #FFD700;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.video-call-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700, #E0C000);
    border-radius: 0 8px 0 60px;
    opacity: 0.08;
}

.video-call-section h3 {
    color: #2c5530;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
}

.video-call-section h3 i {
    color: #FFD700;
    font-size: 1.4rem;
}

.video-call-actions {
    margin-bottom: 20px;
}

.call-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.call-btn-primary {
    padding: 16px 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFD700, #E0C000);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    width: 100%;
}

.call-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.call-btn-secondary {
    padding: 16px 20px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.call-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.call-status-info {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c5530;
    font-size: 1.1rem;
}

.call-status-info small {
    color: #666;
    font-size: 0.9rem;
}

/* Quick Access Styles */
.quick-access {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.quick-access h4 {
    margin: 0 0 18px 0;
    font-size: 1.1rem;
    color: #2c5530;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-access h4::before {
    content: '⚡';
    font-size: 1.2rem;
}

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

.quick-btn {
    padding: 14px 16px;
    background: white;
    color: #333;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
}

.quick-btn:hover {
    background: #f8f9fa;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.quick-btn i {
    color: #FFD700;
    width: 18px;
    font-size: 1.1rem;
}

/* === FIXED MODAL STYLES (No Layout Shift) === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: auto;
    border-radius: 16px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* === IMPROVED VIDEO CALL MODAL === */
.video-call-container {
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.video-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #2d2d2d;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}

.caller-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.caller-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #E0C000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
}

.caller-details h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.caller-details p {
    margin: 4px 0 0 0;
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: 500;
}

.call-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.call-timer {
    color: #FFD700;
    font-size: 1.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.close-modal {
    background: #444;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #555;
}

/* Video grid layout */
.video-call-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
    flex: 1;
    min-height: 0;
}

.video-card {
    background: #2d2d2d;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #444;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}

.video-label {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-status {
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-frame {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}

.video-placeholder {
    text-align: center;
    color: #666;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    color: #444;
}

.video-placeholder p {
    margin: 0;
    font-size: 1.1rem;
}

/* Call controls panel */
.call-controls-panel {
    background: #2d2d2d;
    padding: 25px 30px;
    border-top: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.control-group {
    display: flex;
    gap: 15px;
}

.control-btn {
    background: #444;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    min-width: 100px;
    justify-content: center;
}

.control-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.control-btn.muted {
    background: #e74c3c;
}

.control-btn.end-call {
    background: #e74c3c;
    min-width: 120px;
}

.control-btn.end-call:hover {
    background: #c0392b;
}

/* === IMPROVED INCOMING CALL MODAL === */
.incoming-call-container {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: none;
}

.incoming-call-header {
    background: linear-gradient(135deg, #FFD700, #E0C000);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.call-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

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

.incoming-call-header h3 {
    margin: 0;
    color: #000;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.incoming-call-body {
    padding: 40px 30px 30px;
}

.caller-display {
    text-align: center;
    margin-bottom: 30px;
}

.caller-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.caller-info-large h4 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: #2c5530;
    font-weight: 700;
}

.call-type {
    color: #666;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.call-time {
    color: #888;
    margin: 0;
    font-weight: 500;
}

.incoming-call-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.call-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    background: #f8f9fa;
    color: #666;
}

.call-action-btn .btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.decline-btn .btn-icon {
    background: #e74c3c;
}

.accept-btn .btn-icon {
    background: #4CAF50;
}

.call-action-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.call-action-btn span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* === FIXED TOAST NOTIFICATIONS (No Layout Shift) === */
.call-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    z-index: 10002;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 320px;
    backdrop-filter: blur(10px);
}

.call-toast.show {
    transform: translateX(0);
}

.call-toast.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(69, 160, 73, 0.95));
    border-left: 4px solid #4CAF50;
}

.call-toast.error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95), rgba(192, 57, 43, 0.95));
    border-left: 4px solid #e74c3c;
}

.call-toast.info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(41, 128, 185, 0.95));
    border-left: 4px solid #3498db;
}

.call-toast.warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.95), rgba(230, 126, 34, 0.95));
    border-left: 4px solid #f39c12;
}

/* === IMPROVED WAITING MODAL === */
.waiting-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    overflow: hidden;
}

.waiting-header {
    padding: 25px;
    border-bottom: 1px solid #e8e8e8;
    background: #f8f9fa;
}

.waiting-header h3 {
    margin: 0;
    color: #2c5530;
    font-size: 1.4rem;
}

.waiting-body {
    padding: 40px 30px 30px;
}

.waiting-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #FFD700;
    border-radius: 50%;
    animation: waiting-pulse 2s infinite;
}

@keyframes waiting-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.waiting-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 2rem;
}

.waiting-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #2c5530;
}

.waiting-info p {
    margin: 4px 0;
    color: #666;
}

.waiting-message {
    margin-top: 15px !important;
    font-style: italic;
}

.cancel-waiting-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 25px auto 0;
    width: 100%;
    max-width: 200px;
}

.cancel-waiting-btn:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* Responsive design */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .video-call-container {
        width: 98%;
        height: 95%;
    }
}

@media (max-width: 768px) {
    .video-call-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .call-controls-panel {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .control-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .incoming-call-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .call-action-btn {
        min-width: auto;
        width: 100%;
    }
    
    .call-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 10px;
    }
    
    .video-card {
        min-height: 250px;
    }
}

/* Prevent layout shifts */
.content-wrapper {
    position: relative;
}

.right-column {
    position: relative;
}
/* === ADMIN DASHBOARD STYLES === */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 0;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-section img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-yellow);
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

.user-profile-header i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    background: linear-gradient(135deg, var(--card-bg), #f8f9fa);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-yellow);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-yellow);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.stat-item p {
    margin: 0.5rem 0;
    color: var(--text-color-medium);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item h4 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color-dark);
}

/* Pending Doctors Card Special Styling */
#pending-doctors-card {
    cursor: pointer;
    border: 2px solid var(--orange-pending);
}

#pending-doctors-card:hover {
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, #fffbf0, #f8f9fa);
}

.stat-item-link {
    text-decoration: none;
    color: inherit;
}

/* Application Items */
.application-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.application-item:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.application-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--orange-pending);
    border-radius: 10px 0 0 10px;
}

.application-item h4 {
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

.application-item p {
    margin: 0.3rem 0;
    color: var(--text-color-medium);
    font-size: 0.9rem;
}

.application-item strong {
    color: var(--text-color-dark);
}

/* Application Actions */
.application-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.application-item button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.application-item button:first-child {
    background: var(--green-online);
    color: white;
}

.application-item button:first-child:hover {
    background: #219641;
    transform: translateY(-2px);
}

.application-item button:last-child {
    background: var(--red-offline);
    color: white;
}

.application-item button:last-child:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Admin List Styles */
.admin-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.admin-item:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.admin-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

.admin-info p {
    margin: 0;
    color: var(--text-color-medium);
    font-size: 0.85rem;
}

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

.admin-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.admin-actions .edit-btn {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.admin-actions .edit-btn:hover {
    background: var(--secondary-yellow);
}

.admin-actions .delete-btn {
    background: var(--red-offline);
    color: white;
}

.admin-actions .delete-btn:hover {
    background: #d32f2f;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: var(--orange-pending);
    border: 1px solid var(--orange-pending);
}

.status-approved {
    background: rgba(52, 199, 89, 0.1);
    color: var(--green-online);
    border: 1px solid var(--green-online);
}

.status-rejected {
    background: rgba(255, 59, 48, 0.1);
    color: var(--red-offline);
    border: 1px solid var(--red-offline);
}

/* Chief Admin Specific Styles */
.chief-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: 'Loading...';
    display: block;
    text-align: center;
    color: var(--text-color-medium);
    font-style: italic;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-color-medium);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-medium);
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color-medium);
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .application-actions {
        flex-direction: column;
    }
    
    .application-item button {
        width: 100%;
    }
    
    .admin-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-actions {
        justify-content: center;
    }
}

/* Animation for real-time updates */
@keyframes highlightUpdate {
    0% { background-color: rgba(255, 215, 0, 0.3); }
    100% { background-color: transparent; }
}

.highlight-update {
    animation: highlightUpdate 2s ease-in-out;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red-offline);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Modal Styles for Admin Actions */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.admin-modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.admin-modal h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color-dark);
}

.admin-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.admin-modal-actions button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-modal-actions .confirm-btn {
    background: var(--green-online);
    color: white;
}

.admin-modal-actions .cancel-btn {
    background: var(--border-light);
    color: var(--text-color-medium);
}

.admin-modal-actions .confirm-btn:hover {
    background: #219641;
}

.admin-modal-actions .cancel-btn:hover {
    background: var(--border-medium);
}
/* === DOCTOR VERIFICATION SYSTEM STYLES === */

/* Doctor Application Details */
.doctor-detail-modal {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.doctor-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.doctor-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.doctor-basic-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-color-dark);
}

.doctor-basic-info p {
    margin: 0.3rem 0;
    color: var(--text-color-medium);
}

/* Doctor Details Grid */
.doctor-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: var(--page-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color-dark);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.detail-item {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-label {
    font-weight: 600;
    color: var(--text-color-medium);
    min-width: 120px;
}

.detail-value {
    color: var(--text-color-dark);
    flex: 1;
    text-align: right;
}

/* Verification Actions */
.verification-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.verify-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.approve-btn {
    background: var(--green-online);
    color: white;
}

.approve-btn:hover {
    background: #219641;
    transform: translateY(-2px);
}

.reject-btn {
    background: var(--red-offline);
    color: white;
}

.reject-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.request-info-btn {
    background: var(--orange-pending);
    color: white;
}

.request-info-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
}

/* Application Item Enhancements */
.application-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.application-item:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.application-item.pending {
    border-left: 4px solid var(--orange-pending);
}

.application-item.approved {
    border-left: 4px solid var(--green-online);
}

.application-item.rejected {
    border-left: 4px solid var(--red-offline);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.application-main-info {
    flex: 1;
}

.application-main-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color-dark);
}

.application-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.application-meta span {
    color: var(--text-color-medium);
    font-size: 0.9rem;
}

.application-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: var(--orange-pending);
}

.status-approved {
    background: rgba(52, 199, 89, 0.1);
    color: var(--green-online);
}

.status-rejected {
    background: rgba(255, 59, 48, 0.1);
    color: var(--red-offline);
}

.application-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Full Width Card */
.full-width-card {
    width: 100%;
    margin-bottom: 2rem;
}

/* Data Table Styles */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--page-bg);
    font-weight: 600;
    color: var(--text-color-dark);
}

.data-table tr:hover {
    background: var(--page-bg);
}

/* Action Buttons in Table */
.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.view-btn {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.view-btn:hover {
    background: var(--secondary-yellow);
}

.approve-btn {
    background: var(--green-online);
    color: white;
}

.reject-btn {
    background: var(--red-offline);
    color: white;
}

.deactivate-btn {
    background: var(--text-color-medium);
    color: white;
}

/* Search Bar */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    color: var(--text-color-medium);
}

/* Loading and Empty States */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-color-medium);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-color-medium);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctor-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-details-grid {
        grid-template-columns: 1fr;
    }
    
    .verification-actions {
        flex-direction: column;
    }
    
    .verify-btn {
        width: 100%;
        justify-content: center;
    }
    
    .application-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .application-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
// Add this to your CSS
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

// Update your submit button text
submitBtn.innerHTML = '<div class="loading-spinner"></div> Creating Account...';
.form-group label::after {
  content: " *";
  color: #FF3B30;
}
/* Doctor Details Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-black);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-black);
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 2rem;
}

.doctor-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.doctor-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-black);
    border: 4px solid var(--primary-yellow);
}

.doctor-basic-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: var(--text-color-dark);
}

.doctor-basic-info p {
    margin: 0.3rem 0;
    color: var(--text-color-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doctor-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: var(--page-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color-dark);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    font-weight: 600;
    color: var(--text-color-medium);
    flex: 1;
}

.detail-value {
    color: var(--text-color-dark);
    flex: 1;
    text-align: right;
}

.verification-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.verify-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .doctor-details-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .verification-actions {
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .detail-value {
        text-align: left;
    }
}
/* Makes the page scale properly on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive grid */
.dashboard-content {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

/* Make cards responsive */
.card, .form-card {
    width: 100%;
    max-width: 100%;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}
a, button, table, td, th {
    word-wrap: break-word;
    white-space: normal !important;
}
/* ===== ADMIN MOBILE RESPONSIVENESS ===== */

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color-dark);
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--card-bg);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--sidebar-dark-bg);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--sidebar-dark-bg);
}

.mobile-sidebar-logo img {
    height: 40px;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--sidebar-text-inactive);
}

.mobile-sidebar-close:hover {
    color: var(--sidebar-text-active);
}

.mobile-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--sidebar-text-inactive);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-sidebar-menu a:hover,
.mobile-sidebar-menu a.active {
    background-color: rgba(255, 215, 0, 0.15);
    color: var(--sidebar-text-active);
}

.mobile-sidebar-menu i {
    width: 20px;
    text-align: center;
}

/* Bottom Navigation for Mobile */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--sidebar-dark-bg);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-bottom-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--sidebar-text-inactive);
    font-size: 0.7rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-bottom-nav-links a.active {
    color: var(--sidebar-text-active);
}

.mobile-bottom-nav-links i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

/* Mobile Responsive Layout */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-sidebar {
        display: block;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
    
    .main-content, .main-container {
        margin-left: 0 !important;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    /* Dashboard Header */
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .user-profile-header, .profile-section {
        align-self: flex-end;
    }
    
    /* Dashboard Tabs */
    .dashboard-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }
    
    .dashboard-tab {
        padding: 12px 15px;
        justify-content: flex-start;
        border-bottom: 1px solid var(--border-light);
        border-left: 3px solid transparent;
        background: var(--card-bg);
        margin-bottom: 5px;
        border-radius: 8px;
    }
    
    .dashboard-tab.active {
        border-left-color: var(--primary-yellow);
        border-bottom-color: var(--border-light);
        background: rgba(255, 215, 0, 0.1);
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
        background: linear-gradient(135deg, var(--card-bg), #f8f9fa);
        border: 1px solid var(--border-light);
    }
    
    .stat-item:hover {
        border-color: var(--primary-yellow);
    }
    
    /* Quick Actions */
    .quick-actions-bar {
        flex-direction: column;
    }
    
    .quick-action-btn {
        justify-content: center;
        background: var(--primary-yellow);
        color: var(--primary-black);
    }
    
    .quick-action-btn:hover {
        background: var(--secondary-yellow);
    }
    
    /* Filter Tabs */
    .filter-tabs, .user-filters {
        flex-direction: column;
    }
    
    .filter-tab, .user-filter {
        text-align: center;
        background: var(--card-bg);
        border: 1px solid var(--border-light);
    }
    
    .filter-tab.active,
    .filter-tab:hover,
    .user-filter.active,
    .user-filter:hover {
        background: var(--primary-yellow);
        color: var(--primary-black);
        border-color: var(--primary-yellow);
    }
    
    /* Application Items */
    .application-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .application-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .application-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
        margin-bottom: 5px;
    }
    
    /* User Search */
    .user-search-bar {
        flex-direction: column;
    }
    
    /* Modal Adjustments */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        background: var(--card-bg);
    }
    
    .doctor-details-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Admin Items */
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        background: var(--card-bg);
        border: 1px solid var(--border-light);
    }
    
    .admin-info {
        width: 100%;
    }
    
    /* Bottom Navigation */
    .mobile-bottom-nav {
        display: block;
    }
    
    .dashboard-content, .main-container {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-content {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
        background: var(--card-bg);
        border: 1px solid var(--border-light);
    }
    
    .application-item, .admin-item {
        padding: 15px;
        background: var(--card-bg);
        border: 1px solid var(--border-light);
    }
    
    .application-item:hover, .admin-item:hover {
        border-color: var(--primary-yellow);
    }
    
    .action-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .view-btn {
        background: var(--primary-yellow);
        color: var(--primary-black);
    }
    
    .view-btn:hover {
        background: var(--secondary-yellow);
    }
    
    .approve-btn {
        background: var(--green-online);
        color: white;
    }
    
    .approve-btn:hover {
        background: #219641;
    }
    
    .reject-btn {
        background: var(--red-offline);
        color: white;
    }
    
    .reject-btn:hover {
        background: #d32f2f;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links a {
        color: var(--text-color-medium);
    }
    
    .footer-links a:hover {
        color: var(--primary-yellow);
    }
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color-dark);
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-search-toggle {
        display: block;
    }
    
    #searching {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 15px;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 998;
    }
    
    #searching.active {
        display: block;
    }
    
    #search {
        background: var(--card-bg);
        border: 1px solid var(--border-light);
        color: var(--text-color-dark);
    }
}

/* Ensure all mobile elements use your color variables */
@media (max-width: 768px) {
    body {
        background: var(--page-bg);
    }
    
    .card h3 {
        color: var(--text-color-dark);
        border-bottom-color: var(--border-light);
    }
    
    .loading-state {
        color: var(--text-color-medium);
    }
    
    .empty-state {
        color: var(--text-color-medium);
    }
    
    .empty-state i {
        color: var(--border-medium);
    }
    
    .application-status {
        background: rgba(255, 152, 0, 0.1);
        color: var(--orange-pending);
    }
    
    .status-pending {
        background: rgba(255, 152, 0, 0.1);
        color: var(--orange-pending);
    }
    
    .status-approved {
        background: rgba(52, 199, 89, 0.1);
        color: var(--green-online);
    }
    
    .status-rejected {
        background: rgba(255, 59, 48, 0.1);
        color: var(--red-offline);
    }
}