/* ===============================
   FONT & COLORS
=============================== */
@font-face {
    font-family: 'Belleza';
    src: url('../assets/fonts/Belleza-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::placeholder {
    color: #666;
    font-style: italic;
    opacity: 1;
}

/* ===============================
   BODY LAYOUT
=============================== */
body.login-page, body.register-page, body.forgot-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f4f6f8;
}

.register-page::before,
.login-page::before,
.forgot-page::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("../assets/images/LoginPic.png") center center no-repeat;
    background-size: cover;
    z-index: -1;
}

/* ===============================
   CONTAINERS - LOGIN & REGISTER
=============================== */
.main-content {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: auto;
}

.login-header {
    width: 50%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    order: 2;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   LOGIN & REGISTER BOX
=============================== */
.login-box, .box {
    background: white;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    box-sizing: border-box;
    margin: 30px auto; /* ✅ unified top & bottom margin */
}

/* ===============================
   LOGO
=============================== */
.logo-container {
    text-align: center;
    margin: 0 0 -15px 0;
}

.logo-container img {
    width: 120px;
    height: auto;
}

/* ===============================
   HEADINGS
=============================== */
h2 {
    color: #002dc0;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* ===============================
   INPUTS
=============================== */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 42px;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Belleza', sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #111;
    background-color: #fff;
    box-sizing: border-box;
    display: block;
}

input:focus {
    outline: none;
    border-color: #002dc0;
    box-shadow: 0 0 4px rgba(0, 45, 192, 0.3);
}

input:focus::placeholder {
    color: #000;
    opacity: 0.8;
}

/* ===============================
   GENDER SELECT ONLY
=============================== */
.gender-select {
    width: 100%;
    height: 42px;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Belleza', sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #111;       /* ✅ force black text */
    background-color: #fff;        /* ✅ white dropdown */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    padding-right: 35px;
    background: #fff url("data:image/svg+xml;utf8,<svg fill='%23111' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
    background-size: 16px 16px;
}

.gender-select:focus {
    outline: none;
    border-color: #002dc0;
    box-shadow: 0 0 4px rgba(0, 45, 192, 0.3);
}

/* ===============================
   PASSWORD TOGGLE
=============================== */
.password-container {
    position: relative;
}

.password-container input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0;
    width: 42px;
    height: 42px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transform: translateY(-50%);
}

.toggle-password i {
    font-size: 18px;
    pointer-events: none;
}

/* ===============================
   BUTTONS
=============================== */
button[type="submit"], .btn {
    width: 100%;
    padding: 12px 14px;
    background-color: #002dc0;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background: #1976d2;
}

.btn-primary:hover, button[type="submit"]:hover {
    background: #125aa0;
    transform: scale(1.02);
}

button:focus-visible {
    outline: 2px solid #002dc0;
    outline-offset: 2px;
}

/* ===============================
   LINKS & CHECKBOXES
=============================== */
.bottom-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-top: 10px;
}

.bottom-links a {
    color: #002dc0;
    text-decoration: none;
}

.bottom-links a:hover {
    text-decoration: underline;
}

.checkbox {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.checkbox input {
    margin-right: 5px;
}

.checkbox label {
    color: #111;
}

/* ===============================
   ERRORS
=============================== */
.error-text {
    color: red;
    font-size: 0.85rem;
    margin: -15px 0 5px 0;   /* top:10px, right/left:0, bottom:14px */
    text-align: left;
    display: block;
    width: 100%;
    font-weight: bold;
}
/* ===============================
   PASSWORD STRENGTH BAR
=============================== */
.strength-bar {
    width: 100%;      /* ✅ full responsive width */
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    margin-top: -10px;
    margin-bottom: 8px;
    overflow: hidden;
}

#strength {
    height: 100%;
    width: 0%;
    background: red;
    transition: width 0.3s ease, background 0.3s ease;
}

#strength-text {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
    min-height: 18px;
    text-align: left;
}

/* ===============================
   BACK BUTTON
=============================== */
.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1976d2;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;   /* ✅ make text bold */
    text-decoration: none;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
}

.back-btn:hover {
    background: #125aa0;
    transform: scale(1.05);
}

/* ===============================
   ANIMATIONS
=============================== */
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}

/* ===============================
   EXTRA LARGE DESKTOP BACKGROUND
=============================== */
@media (min-width: 1200px) {
    .register-page::before,
    .login-page::before {
        width: 60%; /* ✅ take more space on very wide screens */
        background-size: cover; 
    }

    .main-content {
        width: 40%; /* ✅ shrink the form area proportionally */
    }

    .login-box, .box {
        max-width: 480px;
        margin: 50px auto; /* ✅ more spacing */
    }

    h2 {
        font-size: 1.6rem;
    }
}

/* ===============================
   DASHBOARD & CLINIC THEME STYLES
=============================== */

/* Main Layout with Sidebar */
body.dashboard-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    transition: margin-left 0.3s ease;
    font-weight: 400;
}

/* Sidebar Layout Adjustments */
body.dashboard-page .main-header {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

body.dashboard-page .main-content {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

/* When sidebar is expanded (default state) */
body.sidebar-expanded .main-header,
body.sidebar-expanded .main-content {
    margin-left: 280px;
}

/* When sidebar is collapsed */
body.sidebar-collapsed .main-header,
body.sidebar-collapsed .main-content {
    margin-left: 70px;
}

/* When sidebar is pinned */
body.sidebar-pinned .main-header,
body.sidebar-pinned .main-content {
    margin-left: 280px;
}

/* Sidebar state management */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.pinned {
    width: 280px;
}

.sidebar.pinned.collapsed {
    width: 280px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: margin-left 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.header-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notification Bell */
.notifications {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.notifications:hover {
    background-color: #f1f5f9;
}

.notifications i {
    font-size: 20px;
    color: #64748b;
}

.notifications:hover i {
    color: #3b82f6;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid #e2e8f0;
}

.notif-dropdown.show {
    display: block;
}

.notif-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.notif-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.notif-item:hover {
    background-color: #f8fafc;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item a {
    color: #1e293b;
    text-decoration: none;
    display: block;
}

.notif-item small {
    color: #64748b;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Profile Dropdown */
.profile {
    position: relative;
    cursor: pointer;
}

.profile-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.profile:hover .profile-circle {
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    display: none;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.profile-dropdown.show {
    display: block;
}

.profile-info {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.profile-info p {
    margin: 0;
    font-size: 14px;
}

.profile-info .username {
    font-weight: 600;
    color: #1e293b;
}

.profile-info .email {
    color: #64748b;
    margin-top: 4px;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #64748b;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.profile-dropdown a:hover {
    background-color: #f8fafc;
    color: #1e293b;
}

.profile-dropdown a i {
    width: 16px;
    text-align: center;
}

/* Main Content */
.main-content {
    padding: 30px;
    transition: margin-left 0.3s ease;
    max-width: 100%;
    overflow-x: hidden;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    min-height: 600px;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-center {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Content Grid Fallback */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.content-full {
    grid-column: 1 / -1;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: #3b82f6;
}

/* Appointment Items */
.appointment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.appointment-item:hover {
    background-color: #f8fafc;
    margin: 0 -25px;
    padding: 20px 25px;
    border-radius: 8px;
}

.appointment-item:last-child {
    border-bottom: none;
}

/* Appointment Lists */
.appointment-list, .schedule-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.appointment-list::-webkit-scrollbar,
.schedule-list::-webkit-scrollbar {
    width: 4px;
}

.appointment-list::-webkit-scrollbar-track,
.schedule-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.appointment-list::-webkit-scrollbar-thumb,
.schedule-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.appointment-list::-webkit-scrollbar-thumb:hover,
.schedule-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.appointment-info h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.appointment-info p {
    margin: 4px 0;
    color: #64748b;
    font-size: 14px;
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

.appointment-actions form {
    display: inline;
}

.appointment-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-accept {
    background: #10b981;
    color: white;
}

.btn-accept:hover {
    background: #059669;
    transform: scale(1.05);
}

.btn-decline {
    background: #ef4444;
    color: white;
}

.btn-decline:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-complete {
    background: #3b82f6;
    color: white;
}

.btn-complete:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: #64748b;
    font-size: 14px;
}

tbody tr:hover {
    background-color: #f8fafc;
}

/* Enhanced Charts */
.chart-container {
    max-width: 100%;
    height: 300px;
    margin: 20px 0;
    padding: 20px;
    position: relative;
}

.chart-card {
    position: relative;
}

.chart-controls {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.chart-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.chart-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.chart-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.chart-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.chart-stat {
    text-align: center;
}

.chart-stat .stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.chart-stat .stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

/* Analytics Section */
.analytics-section {
    margin-top: 30px;
}

.analytics-card {
    min-height: 400px;
}

/* Performance Metrics */
.metrics-section {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.metric-card {
    padding: 25px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.metric-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.metric-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.metric-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.metric-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
}

.metric-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.metric-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.metric-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Enhanced Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon.patients {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-icon.appointments {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.today {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.revenue {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.stat-change {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.stat-change.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .dashboard-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "left center"
            "right right";
    }
    
    .dashboard-left {
        grid-area: left;
    }
    
    .dashboard-center {
        grid-area: center;
    }
    
    .dashboard-right {
        grid-area: right;
        flex-direction: row;
    }
    
    .dashboard-right .card {
        flex: 1;
    }
}

@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "left"
            "center"
            "right";
    }
    
    .dashboard-right {
        flex-direction: column;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }
    
    .appointment-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .appointment-actions button {
        width: 100%;
        padding: 10px;
    }
    
    .dashboard-layout {
        gap: 20px;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 768px) {
    body.login-page, body.register-page, body.forgot-page {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px 0;
        overflow-y: auto;
    }

    .main-content, .login-header {
        width: 100%;
        height: auto;
        order: unset;
    }

    .login-header {
        display: none;
    }

    .register-page::before,
    .login-page::before,
    .forgot-page::before {
        display: none;
    }

    .login-box, .box {
        width: 90%;
        max-width: 380px;
        margin: 30px auto;
        padding: 30px 25px;
    }

    h2 {
        font-size: 1.3rem;
    }

    .strength-bar {
        height: 5px;
        margin-top: -6px;
        margin-bottom: 8px;
    }

    #strength-text {
        font-size: 12px;
        margin-bottom: 8px;
        text-align: center;
    }

    .bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
    }

    .back-btn {
        top: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .login-box, .box {
        width: 95%;
        margin: 20px auto;
        padding: 25px 20px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .strength-bar {
        height: 4px;
        margin-top: -4px;
        margin-bottom: 6px;
    }

    #strength-text {
        font-size: 11px;
        text-align: center;
    }
}
