/* Dental Appointment System Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d8735;
    --primary-dark: #1e5c24;
    --primary-light: #e6f4e8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-color: #f1f5f9;
    --dark-color: #0f172a;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Layout with sidebar */
.layout-with-sidebar {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Admin Sidebar Styles */
.admin-sidebar {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-right: none;
}

.admin-sidebar .sidebar-header {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
}

.admin-sidebar .sidebar-header h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.admin-sidebar .sidebar-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

.admin-user-info {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.admin-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}

.admin-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.admin-sidebar .menu-item {
    margin: 0.25rem 1rem;
}

.admin-sidebar .menu-item a {
    color: rgba(255, 255, 255, 0.85);
    border-right: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.admin-sidebar .menu-item:hover a,
.admin-sidebar .menu-item.active a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-right: none;
}

.admin-sidebar .menu-item.logout:hover a {
    background: rgba(220, 38, 38, 0.2);
    color: #fecaca;
    border-right: none;
}

.admin-sidebar .sidebar-footer {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-sidebar .clinic-hours h4 {
    color: var(--white);
    font-size: 0.9rem;
}

.admin-sidebar .clinic-hours p {
    color: rgba(255, 255, 255, 0.7);
}

/* Admin Sidebar Dropdown Menu Styles */
.admin-sidebar .menu-dropdown {
    position: relative;
    margin: 0.25rem 1rem;
}

.admin-sidebar .dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.admin-sidebar .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.admin-sidebar .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.admin-sidebar .menu-dropdown.active .dropdown-arrow,
.admin-sidebar .menu-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.9);
}

.admin-sidebar .dropdown-menu {
    display: none;
    list-style: none;
    padding: 0.25rem 0;
    margin: 0;
    margin-top: 0.25rem;
    border-radius: 8px;
    overflow: hidden;
}

.admin-sidebar .menu-dropdown.active .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

.admin-sidebar .dropdown-menu li {
    margin: 0.1rem 0;
}

.admin-sidebar .dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem 0.6rem 3rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-radius: 8px;
    margin: 0;
}

.admin-sidebar .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding-left: 3.25rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-header {
    padding: 2rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item {
    margin: 0 1rem;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 0.75rem;
    border-radius: 8px;
}

.menu-item:hover a,
.menu-item.active a {
    background: var(--primary-light);
    color: var(--primary-color);
    border-right: none;
}

.menu-item.logout {
    margin-top: auto;
}

.menu-item.logout a {
    color: var(--danger-color);
}

.menu-item.logout:hover a {
    background: #fef2f2;
    color: var(--danger-color);
    border-right: none;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.menu-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.menu-text {
    flex: 1;
    font-size: 0.95rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.clinic-hours h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 700;
}

.clinic-hours p {
    margin: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--light-color);
    transform: translateY(-1px);
}

.sidebar-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    line-height: 1.5;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.15), 0 4px 6px -2px rgba(37, 99, 235, 0.1);
}

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

.btn-secondary:hover {
    background: #475569;
}

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

.btn-outline:hover {
    background: var(--primary-light);
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Form Sections */
.form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Radio Groups */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: var(--page-bg);
}

.radio-option:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.radio-custom {
    margin-top: 0.2rem;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
}

.auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 10%;
    background: var(--white);
}

.auth-form h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-image {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--white);
}

.auth-image-content {
    max-width: 480px;
}

.auth-image-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(to right, var(--white), #f8fafc);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.welcome-section h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.welcome-section .subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.stat-content p {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0.1rem 0 0.25rem 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-card.large {
    grid-column: span 2;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

/* Quick Actions Grid in Dashboard */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--light-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
    gap: 0.75rem;
}

.quick-action:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-action .action-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    color: var(--primary-color);
}

.quick-action span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tables */
.appointments-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

td {
    padding: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

/* Appointment Items */
.appointment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.appointment-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    background: #f8fafc;
}

.appointment-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 10px;
    min-width: 60px;
}

.appointment-date .day {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.appointment-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.appointment-info {
    flex: 1;
}

.appointment-info h4 {
    margin: 0;
    font-weight: 700;
    color: var(--text-color);
}

.appointment-info p {
    margin: 0.1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.appointment-status .status {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-scheduled,
.status-pending {
    background: #e0f2fe;
    color: #0284c7;
}

.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card.large {
        grid-column: span 1;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4.5rem;
        /* Space for the toggle button */
    }

    .sidebar {
        transform: translateX(-100%);
        width: 80%;
        max-width: 300px;
    }

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

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .dashboard-header .quick-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .dashboard-header .btn {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        display: none;
        /* Hide nav menu on mobile by default or style it to be toggleable if not sidebar */
    }

    /* Show hamburger for nav if needed, but sidebar handles main nav */

    .auth-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .appointment-item {
        flex-direction: column;
        text-align: center;
    }

    .appointment-date {
        width: 100%;
        flex-direction: row;
        gap: 0.5rem;
        min-height: auto;
        padding: 0.25rem;
    }
}

.stat-change.positive {
    background: #dcfce7;
    color: var(--success-color);
}

.stat-change.negative {
    background: #fee2e2;
    color: var(--danger-color);
}

.stat-change.neutral {
    background: var(--light-color);
    color: var(--text-light);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--light-color);
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
    font-size: 0.875rem;
}

.activity-content small {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Admin Quick Actions */
.quick-action.admin {
    background: var(--white);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.quick-action.admin:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quick-action.admin .action-icon {
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Doctor Management Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.doctor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doctor-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-details {
    display: flex;
    flex-direction: column;
}

.doctor-details .name {
    font-weight: 600;
    color: var(--text-color);
}

.doctor-details .id {
    font-size: 0.75rem;
    color: var(--text-light);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info .email {
    font-weight: 500;
    color: var(--text-color);
}

.contact-info .phone {
    font-size: 0.875rem;
    color: var(--text-light);
}

.specialization {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.created-by,
.created-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Doctor Profile Styles */
.doctor-details-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.doctor-profile {
    margin-bottom: 2rem;
}

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

.doctor-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.doctor-main-info h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 2rem;
}

.doctor-main-info .specialization {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.doctor-main-info .doctor-id {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

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

.detail-section {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-item label {
    font-weight: 500;
    color: var(--text-light);
    flex: 0 0 40%;
}

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

.schedule-content {
    background: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
    line-height: 1.6;
}

.page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Status availability styles */
.status.status-available {
    background: #dcfce7;
    color: var(--success-color);
}

.status.status-unavailable {
    background: #fee2e2;
    color: var(--danger-color);
}

.welcome-section h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    color: var(--text-color);
    font-weight: 600;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.card-link:hover {
    text-decoration: underline;
}

.card-content {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-color);
}

/* Appointments */
.appointment-card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.appointment-card:hover {
    box-shadow: var(--shadow-md);
}

.appointment-card.large {
    max-width: 800px;
    margin: 0 auto;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.appointment-date {
    text-align: center;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: 0.5rem;
    min-width: 80px;
}

.appointment-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.appointment-date .month {
    display: block;
    font-size: 0.875rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.appointment-date .year {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.appointment-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.appointment-details h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.appointment-details p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.appointment-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.appointment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Status badges */
.status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-scheduled {
    background: #dbeafe;
    color: var(--primary-color);
}

.status-confirmed {
    background: #dcfce7;
    color: var(--success-color);
}

.status-completed {
    background: #f3f4f6;
    color: var(--secondary-color);
}

.status-cancelled {
    background: #fee2e2;
    color: var(--danger-color);
}

/* Tables */
.appointments-table {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.appointments-table table {
    width: 100%;
    border-collapse: collapse;
}

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

.appointments-table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--text-color);
}

.appointment-datetime .date {
    display: block;
    font-weight: 500;
}

.appointment-datetime .time {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.service-info .service-name {
    display: block;
    font-weight: 500;
}

.service-info .duration {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.dentist-info .name {
    display: block;
    font-weight: 500;
}

.dentist-info .specialization {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.price {
    font-weight: 600;
    color: var(--success-color);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* Quick actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Appointment details */
.appointment-details-container {
    max-width: 800px;
    margin: 0 auto;
}

.appointment-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.appointment-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-light);
}

.appointment-main-info {
    text-align: center;
    margin: 2rem 0;
}

.appointment-main-info h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.appointment-main-info .time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.appointment-main-info .duration {
    color: var(--text-light);
}

.appointment-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.detail-section {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.detail-section.full-width {
    grid-column: 1 / -1;
    background: var(--white);
    border: 1px solid var(--border-color);
}

.detail-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.detail-item label {
    font-weight: 500;
    color: var(--text-light);
}

.notes-content,
.cancellation-reason {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Patient info */
.patient-info,
.clinic-info {
    space-y: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-item label {
    font-weight: 500;
    color: var(--text-light);
    flex: 0 0 40%;
}

.info-item span {
    color: var(--text-color);
}

/* Appointments lists */
.appointments-list {
    space-y: 1rem;
}

.appointment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.appointment-item:hover {
    background: var(--light-color);
}

.appointment-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.appointment-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.125rem;
}

.appointment-info .time {
    font-weight: 500;
    color: var(--primary-color);
}

/* Appointment form */
.appointment-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.appointment-summary {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.appointment-summary h3 {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    /* Mobile sidebar */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 4rem 1rem 1rem;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-image {
        order: -1;
        min-height: 300px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .appointments-table {
        font-size: 0.875rem;
    }

    .appointments-table th,
    .appointments-table td {
        padding: 0.75rem 0.5rem;
    }

    .actions {
        flex-direction: column;
    }

    .appointment-details-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }
}