/* =================================================================
   Freedom Homeschool - Main Stylesheet
   ================================================================= */

:root {
    --primary: #2c5f2d;
    --primary-light: #4a8c4b;
    --primary-dark: #1a3d1b;
    --secondary: #c4a35a;
    --secondary-light: #d4b872;
    --bg: #fafaf7;
    --bg-card: #ffffff;
    --text: #2d2d2d;
    --text-light: #666;
    --text-muted: #999;
    --border: #e0ddd4;
    --success: #4a8c4b;
    --warning: #c4a35a;
    --error: #c0392b;
    --info: #2980b9;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --max-width: 1200px;
    --header-height: 60px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: sans-serif;
    font-size: 14px;
}
.skip-link:focus { top: 6px; }

/* Focus styles */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* =================================================================
   Layout
   ================================================================= */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    padding: 24px 0;
}

/* =================================================================
   Header
   ================================================================= */

.site-header {
    background: var(--primary-dark);
    color: white;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.logo-cross {
    font-size: 24px;
    color: var(--secondary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: sans-serif;
    font-size: 14px;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.main-nav a:hover { background: rgba(255,255,255,0.1); }

.nav-user {
    color: var(--secondary-light);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

/* =================================================================
   Buttons
   ================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
}

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

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

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary-light); }

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-danger { background: var(--error); color: white; border-color: var(--error); }
.btn-danger:hover { opacity: 0.9; }

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =================================================================
   Cards
   ================================================================= */

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid var(--border);
}

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

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-dark);
}

/* =================================================================
   Forms
   ================================================================= */

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    background: white;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 140, 75, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-family: sans-serif;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.form-error {
    font-family: sans-serif;
    font-size: 12px;
    color: var(--error);
    margin-top: 4px;
}

/* =================================================================
   Flash Messages
   ================================================================= */

.flash-container {
    margin-top: 12px;
}

.flash {
    padding: 12px 40px 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-family: sans-serif;
    font-size: 14px;
    position: relative;
    border-left: 4px solid;
}

.flash-success { background: #edf7ee; border-color: var(--success); color: #1a5c1b; }
.flash-error { background: #fdecea; border-color: var(--error); color: #922b21; }
.flash-warning { background: #fef9e7; border-color: var(--warning); color: #7d6608; }
.flash-info { background: #eaf2f8; border-color: var(--info); color: #1a5276; }

.flash-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
}
.flash-close:hover { opacity: 1; }

/* =================================================================
   Tables
   ================================================================= */

.table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 14px;
}

th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:nth-child(even) { background: #fafaf7; }
tr:hover { background: #f5f4ed; }

/* =================================================================
   Footer
   ================================================================= */

.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 24px 0;
    margin-top: auto;
    font-family: sans-serif;
    font-size: 13px;
    text-align: center;
}

.footer-verse {
    font-family: Georgia, serif;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--secondary-light);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.footer-links a:hover { color: white; }

.footer-disclaimer {
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.6;
}

/* =================================================================
   Auth Pages
   ================================================================= */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 120px);
    padding: 24px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border);
}

.auth-title {
    text-align: center;
    color: var(--primary-dark);
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    font-family: sans-serif;
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-family: sans-serif;
    font-size: 14px;
    color: var(--text-light);
}

.auth-footer a { color: var(--primary); }

/* =================================================================
   Dashboard
   ================================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    text-align: center;
    padding: 24px;
}

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

.stat-label {
    font-family: sans-serif;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* =================================================================
   Progress Bar
   ================================================================= */

.progress-bar {
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    font-family: sans-serif;
    font-size: 13px;
    color: var(--text-light);
}

/* =================================================================
   Checklist (Student)
   ================================================================= */

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}

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

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.checklist-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.checklist-subject {
    font-family: sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================================================
   Disclaimer Page
   ================================================================= */

.disclaimer-content {
    max-width: 700px;
    margin: 0 auto;
}

.disclaimer-content h2 {
    color: var(--error);
    margin: 24px 0 12px;
}

.disclaimer-content ol, .disclaimer-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.disclaimer-content li {
    margin-bottom: 8px;
}

/* =================================================================
   Streak Tier Cards
   ================================================================= */

.streak-card {
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    font-family: sans-serif;
}

.streak-card-tier-0 {
    background: #f5f5f5;
    border-color: #ccc;
    color: var(--text-light);
}

.streak-card-tier-1 {
    background: #fff3e0;
    border-color: #fb8c00;
}

.streak-card-tier-2 {
    background: #ffe0b2;
    border-color: #e65100;
}

.streak-card-tier-3 {
    background: #ffccbc;
    border-color: #b71c1c;
    animation: streak-pulse 2.5s ease-in-out infinite;
}

.streak-card-tier-4 {
    background: linear-gradient(135deg, #fff8e1, #fffde7);
    border-color: #f9a825;
    animation: streak-sparkle 2s ease-in-out infinite;
}

.streak-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
}

.streak-sub {
    font-size: 13px;
    opacity: 0.8;
}

.streak-best {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

@keyframes streak-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0); }
    50% { box-shadow: 0 0 10px 3px rgba(183, 28, 28, 0.25); transform: scale(1.01); }
}

@keyframes streak-sparkle {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 168, 37, 0); }
    50% { box-shadow: 0 0 14px 5px rgba(249, 168, 37, 0.35); }
}

/* =================================================================
   Subject Chips & Today's Progress Bar
   ================================================================= */

.subject-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.subject-chip-complete {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.subject-chip-partial {
    background: #fff8e1;
    border-color: #ffa726;
    color: #e65100;
}

.subject-chip-pending {
    background: #f5f5f5;
    border-color: #bdbdbd;
    color: var(--text-light);
}

.today-progress-wrap {
    margin-bottom: 14px;
}

.today-progress-label {
    font-family: sans-serif;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.today-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.today-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* =================================================================
   Day-Complete Banner
   ================================================================= */

.day-complete-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 2px solid #4caf50;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2e7d32;
}

.day-complete-banner a {
    color: #1b5e20;
    text-decoration: underline;
}

/* =================================================================
   Ad Slots (parent pages only)
   ================================================================= */

.ad-slot {
    margin: 12px auto;
    text-align: center;
}

/* ================================================================= */
/*   Report Card (parent/report.php)                                  */
/* ================================================================= */
.rc-header { text-align:center; margin-bottom:28px; padding-bottom:20px; border-bottom:3px double var(--primary-dark); }
.rc-cross { font-size:36px; color:var(--secondary); display:block; margin-bottom:4px; }
.rc-school-name { font-size:26px; font-weight:bold; color:var(--primary-dark); margin:0; }
.rc-doc-title { font-size:16px; font-family:sans-serif; letter-spacing:2px; text-transform:uppercase; color:var(--text-light); margin:6px 0 0; }
.rc-info-grid { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin-bottom:24px; font-family:sans-serif; font-size:14px; }
.rc-info-label { background:#f5f4ed; padding:10px 14px; font-weight:600; color:var(--text-light); border-bottom:1px solid var(--border); border-right:1px solid var(--border); }
.rc-info-value { padding:10px 14px; border-bottom:1px solid var(--border); color:var(--text); }
.grade-cell-a  { background:#e8f5e9; color:#1b5e20; font-weight:bold; text-align:center; }
.grade-cell-b  { background:#e3f2fd; color:#0d47a1; font-weight:bold; text-align:center; }
.grade-cell-c  { background:#fff8e1; color:#e65100; font-weight:bold; text-align:center; }
.grade-cell-df { background:#ffebee; color:#b71c1c; font-weight:bold; text-align:center; }
.rc-gpa-box { display:flex; align-items:center; justify-content:space-around; flex-wrap:wrap; gap:16px; background:#f5f4ed; border:2px solid var(--primary-dark); border-radius:var(--radius); padding:20px 24px; margin:24px 0; text-align:center; }
.rc-gpa-item-label { font-family:sans-serif; font-size:12px; text-transform:uppercase; letter-spacing:1px; color:var(--text-light); margin-bottom:4px; }
.rc-gpa-item-value { font-size:30px; font-weight:bold; color:var(--primary-dark); }
.rc-badge-row { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.rc-badge-chip { display:inline-flex; align-items:center; gap:4px; padding:5px 12px; background:#fff8e1; border:1px solid var(--secondary); border-radius:999px; font-family:sans-serif; font-size:13px; }
.rc-notes-area { width:100%; min-height:90px; border:1px solid var(--border); border-radius:var(--radius); padding:10px; font-family:Georgia,serif; font-size:14px; resize:vertical; box-sizing:border-box; }
.rc-sig-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-top:40px; }
.rc-sig-line { border-top:1px solid var(--text); padding-top:6px; font-family:sans-serif; font-size:12px; color:var(--text-light); }
.rc-footer-verse { text-align:center; font-style:italic; color:var(--text-light); margin-top:32px; padding-top:16px; border-top:1px solid var(--border); font-size:14px; }
.rc-period-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.rc-period-btn { padding:6px 14px; border:2px solid var(--border); border-radius:var(--radius); background:white; font-family:sans-serif; font-size:13px; cursor:pointer; text-decoration:none; color:var(--text); transition:all 0.15s; }
.rc-period-btn:hover { border-color:var(--primary); color:var(--primary); }
.rc-period-btn.active { background:var(--primary-dark); color:white; border-color:var(--primary-dark); }
@media print {
    .rc-period-bar, .rc-student-selector, .rc-print-hide { display:none !important; }
    #printable-report { box-shadow:none; border:none; margin:0; padding:0; }
    .rc-notes-area { border:1px solid #ccc; }
    @page { margin:2cm; }
}

/* ================================================================= */
/*   Cross-Child Dashboard Cards (parent/dashboard.php)               */
/* ================================================================= */
.student-cards-grid   { display:flex; flex-direction:column; gap:12px; margin:16px 0 28px; }
.student-overview-card { background:var(--bg-card); border-radius:var(--radius); box-shadow:var(--shadow);
                         border:1px solid var(--border); border-left:5px solid var(--border);
                         display:flex; flex-direction:row; align-items:stretch; overflow:hidden; }
.student-card-done    { border-left-color:#4caf50; }
.student-card-partial { border-left-color:#ffa726; }
.student-card-pending { border-left-color:#bdbdbd; }
.student-card-none    { border-left-color:#2980b9; }
.scard-left  { width:200px; min-width:200px; padding:16px; border-right:1px solid var(--border);
               display:flex; flex-direction:column; gap:10px; justify-content:center; }
.scard-mid   { flex:1; padding:16px; display:flex; flex-direction:column; justify-content:center; gap:8px;
               border-right:1px solid var(--border); }
.scard-right { width:210px; min-width:210px; padding:16px; display:flex; flex-direction:column;
               justify-content:space-between; gap:10px; }
.student-card-name    { font-size:18px; font-weight:bold; color:var(--primary-dark); margin-bottom:4px; }
.student-card-grade-badge { display:inline-block; padding:3px 10px; background:var(--primary-dark); color:white;
                            border-radius:999px; font-family:sans-serif; font-size:12px; font-weight:600; }
.student-card-streak  { font-family:sans-serif; font-size:13px; color:var(--text-light); }
.dash-streak-block  { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--radius-sm); }
.dash-streak-num    { font-size:28px; font-weight:bold; line-height:1; flex-shrink:0; }
.dash-streak-label  { font-size:12px; font-weight:600; line-height:1.3; }
.dash-streak-atrisk { display:inline-block; margin-top:4px; font-size:10px; font-weight:700;
                      text-transform:uppercase; letter-spacing:.5px;
                      background:#e65100; color:white; padding:2px 6px; border-radius:999px; }
.dash-streak-tier-1 { background:#fff8f0; color:#e65100; }
.dash-streak-tier-2 { background:#fff3e0; color:#e65100; }
.dash-streak-tier-3 { background:#fff3e0; color:#bf360c; }
.dash-streak-tier-4 { background:#fce4ec; color:#880e4f; }
.student-card-actions { display:flex; flex-wrap:wrap; gap:6px; }
.today-glance-summary { font-family:sans-serif; font-size:15px; color:var(--text-light); }
.today-glance-summary strong { color:var(--text); }
@media (max-width:700px) {
    .student-overview-card { flex-direction:column; }
    .scard-left  { width:100%; min-width:0; border-right:none; border-bottom:1px solid var(--border); }
    .scard-mid   { border-right:none; border-bottom:1px solid var(--border); }
    .scard-right { width:100%; min-width:0; }
}

/* =================================================================
   Attendance (parent/attendance.php)
   ================================================================= */
.att-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin:16px 0; }
.att-cal-dow  { text-align:center; font-family:sans-serif; font-size:11px; font-weight:700;
                text-transform:uppercase; color:var(--text-light); padding:4px 0; }
.att-day      { border-radius:var(--radius-sm); padding:6px 4px; text-align:center; cursor:pointer;
                border:2px solid transparent; font-family:sans-serif; font-size:13px;
                background:#f5f5f5; color:var(--text-light); transition:all 0.12s; min-height:44px;
                display:flex; flex-direction:column; align-items:center; justify-content:center; }
.att-day:hover  { border-color:var(--primary); }
.att-day-blank  { background:transparent; cursor:default; pointer-events:none; }
.att-day-future { background:#fafaf7; color:#ccc; cursor:default; pointer-events:none; }
.att-present    { background:#e8f5e9; color:#1b5e20; border-color:#4caf50; }
.att-absent     { background:#ffebee; color:#b71c1c; border-color:#ef5350; }
.att-excused    { background:#fff8e1; color:#e65100; border-color:#ffa726; }
.att-today      { box-shadow:0 0 0 2px var(--primary-dark); }
.att-summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:20px 0; }
.att-summary-box  { text-align:center; padding:14px; border-radius:var(--radius); font-family:sans-serif; }
.att-summary-present { background:#e8f5e9; color:#1b5e20; }
.att-summary-absent  { background:#ffebee; color:#b71c1c; }
.att-summary-excused { background:#fff8e1; color:#e65100; }
.att-summary-total   { background:#e3f2fd; color:#0d47a1; }
.att-summary-num  { font-size:28px; font-weight:bold; }
.att-summary-lbl  { font-size:11px; text-transform:uppercase; letter-spacing:1px; margin-top:2px; }
.att-month-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.att-month-label { font-size:18px; font-weight:bold; color:var(--primary-dark); }
.att-legend { display:flex; gap:16px; flex-wrap:wrap; font-family:sans-serif; font-size:13px; margin-bottom:16px; }
.att-legend-dot { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:4px; vertical-align:middle; }
#att-editor { position:fixed; z-index:200; background:white; border:1px solid var(--border);
              border-radius:var(--radius); box-shadow:var(--shadow-lg); padding:16px; min-width:220px; }
@media print {
    .att-print-hide { display:none !important; }
    .att-cal-grid { gap:2px; }
    .att-day { min-height:32px; font-size:11px; cursor:default; }
    #att-editor { display:none !important; }
    @page { margin:2cm; }
}
@media (max-width:480px) {
    .att-summary-grid { grid-template-columns:repeat(2,1fr); }
    .att-day { font-size:11px; min-height:44px; }
}

/* =================================================================
   Responsive
   ================================================================= */

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 16px;
        gap: 12px;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .mobile-menu-btn { display: block; }

    .auth-card { padding: 24px 20px; }

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

    th, td { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .card { padding: 16px; }
}

/* =================================================================
   Print Styles
   ================================================================= */

@media print {
    .site-header, .site-footer, .main-nav,
    .mobile-menu-btn, .ad-slot, .flash-container,
    .btn, .skip-link { display: none !important; }

    body { background: white; }
    .main-content { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}
