/* ==============================================================================
   Master Design System - Monitoring Publikasi HUMAS Madrasah
   Theme: Modern SaaS Light Theme (Clean Minimalist, Laravel Filament Inspired)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Premium Modern Light Theme */
    --bg-main: #f8fafc;          /* Very Soft Slate Blue */
    --bg-panel: #ffffff;         /* Pure White Panels */
    --bg-panel-hover: #f1f5f9;   /* Lighter Soft Gray */
    --text-primary: #0f172a;     /* Deep Slate / Charcoal */
    --text-secondary: #334155;   /* Slate Gray */
    --text-muted: #64748b;       /* Cool Gray */
    
    --primary: #2563eb;          /* Modern Royal Blue */
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.06);
    --primary-light: rgba(37, 99, 235, 0.1);
    
    --secondary: #4f46e5;        /* Royal Indigo */
    --secondary-hover: #4338ca;
    
    --success: #10b981;          /* Emerald Green */
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;          /* Amber Yellow */
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;           /* Rose Red */
    --danger-light: rgba(239, 68, 68, 0.1);
    
    --border-light: #e2e8f0;     /* Soft slate border */
    --border-focus: rgba(37, 99, 235, 0.4);
    --glass-bg: #ffffff;
    --glass-blur: none;
    
    /* Layout Dimensions */
    --sidebar-width: 260px;
    --header-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 2. Global Layout Wrapper */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* 3. Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-panel);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-light);
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: white;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.brand-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text-primary);
}

.brand-subtitle {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-user {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-glow);
    border: 1.5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 12px;
}

.user-info {
    max-width: 140px;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.user-role {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.menu-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 15px;
    text-align: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.menu-link:hover {
    background: var(--bg-panel-hover);
    color: var(--primary);
}

.menu-link:hover i {
    color: var(--primary);
}

.menu-item.active .menu-link {
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 700;
}

.menu-item.active .menu-link i {
    color: var(--primary);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.logout-link {
    display: flex;
    align-items: center;
    color: var(--danger);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.logout-link i {
    margin-right: 10px;
}

.logout-link:hover {
    background: var(--danger-light);
}

/* 4. Main Body Layout */
.main-wrapper {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

/* 5. Header Styles */
.main-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.header-title-wrapper {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 18px;
    margin-right: 16px;
    cursor: pointer;
    color: var(--text-secondary);
}

.header-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-date {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-panel-hover);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

/* 6. Content Section */
.content-body {
    flex-grow: 1;
    padding: 32px;
}

/* 7. Glass Card & UI Containers */
.glass-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

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

.card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

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

.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 16px;
}

.stat-icon.blue    { background: var(--primary-light); color: var(--primary); }
.stat-icon.teal    { background: rgba(20, 184, 166, 0.1); color: #0d9488; }
.stat-icon.orange  { background: var(--warning-light); color: var(--warning); }
.stat-icon.red     { background: var(--danger-light);  color: var(--danger); }
.stat-icon.green   { background: var(--success-light); color: var(--success); }

.stat-content {
    flex-grow: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 4px;
    color: var(--text-primary);
}

/* 9. Target & Progress Controls */
.target-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.target-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.target-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12.5px;
}

.target-label {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.target-numbers {
    color: var(--text-muted);
    font-weight: 600;
}

.progress-bar-wrapper {
    height: 6px;
    background: var(--bg-panel-hover);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.progress-bar-fill.teal { background: #0d9488; }
.progress-bar-fill.indigo { background: #4f46e5; }
.progress-bar-fill.orange { background: #f59e0b; }
.progress-bar-fill.green { background: #10b981; }

.percentage-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.percentage-badge.teal { background: rgba(13, 148, 136, 0.1); color: #0d9488; }
.percentage-badge.indigo { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.percentage-badge.orange { background: var(--warning-light); color: var(--warning); }
.percentage-badge.green { background: var(--success-light); color: var(--success); }

/* 10. Dashboard Double Column Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* 11. Custom Forms, Inputs & Inputs Styling */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: var(--bg-panel);
    border: 1.5px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 36px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-control option {
    background: #ffffff;
    color: var(--text-primary);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    background: var(--bg-panel-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn:active {
    transform: translateY(0);
}

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

.btn-secondary {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background: var(--bg-panel-hover);
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 11.5px;
    border-radius: 6px;
}

/* 12. Clean Filters Panel */
.filters-panel {
    background: var(--bg-panel-hover);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-light);
    padding: 16px;
    margin-bottom: 16px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    align-items: flex-end;
}

/* 13. Data Tables Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    background: #ffffff;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.custom-table th {
    background: var(--bg-panel-hover);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-light);
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.5px;
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 500;
}

.custom-table tbody tr {
    transition: background-color var(--transition-fast);
}

.custom-table tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.8);
}

/* Action Icons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition-fast);
    background: #ffffff;
    border: 1px solid var(--border-light);
}

.action-btn.edit {
    color: var(--primary);
}
.action-btn.edit:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
}

.action-btn.delete {
    color: var(--danger);
}
.action-btn.delete:hover {
    background: var(--danger-light);
    border-color: var(--danger);
}

.action-btn.view {
    color: var(--secondary);
}
.action-btn.view:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--secondary);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
}

.badge.status-draft {
    background: var(--bg-panel-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.badge.status-post {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* 14. Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.pagination-links {
    display: flex;
    gap: 4px;
}

.page-link {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 700;
    transition: var(--transition-fast);
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 15. Activity Log Stream */
.activity-stream {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-node {
    display: flex;
    gap: 14px;
    position: relative;
}

.activity-node:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 1.5px;
    background: var(--border-light);
    top: 20px;
    bottom: -14px;
    left: 9px;
}

.activity-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    z-index: 2;
}

.activity-info {
    flex-grow: 1;
}

.activity-desc {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.activity-meta {
    font-size: 10.5px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    margin-top: 2px;
    font-weight: 600;
}

/* 16. Alert Toasts */
.alert-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    animation: slideIn 0.3s ease-out;
    font-size: 13px;
    font-weight: 700;
}

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

.alert-toast.alert-success { background: #ecfdf5; border: 1.5px solid rgba(16, 185, 129, 0.3); color: #065f46; }
.alert-toast.alert-danger  { background: #fef2f2; border: 1.5px solid rgba(239, 68, 68, 0.3);  color: #991b1b; }
.alert-toast.alert-warning { background: #fffbeb; border: 1.5px solid rgba(245, 158, 11, 0.3); color: #92400e; }

.toast-close {
    font-size: 16px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

/* 17. Beautiful Login Screen */
.login-body {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    display: inline-flex;
    margin-bottom: 12px;
}

.login-logo .brand-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin-right: 0;
}

.login-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.login-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

/* 18. Custom Modal Container */
.modal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    width: 100%;
    max-width: 580px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px);
    transition: transform var(--transition-fast);
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

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

.modal-close {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close:hover {
    color: var(--text-primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

.detail-label {
    font-weight: 700;
    color: var(--text-muted);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

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

@media (max-width: 768px) {
    :root {
        --sidebar-width: 250px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .main-header {
        padding: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .custom-table th, .custom-table td {
        padding: 10px;
    }
}

/* Keyframes animations */
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==============================================================================
   20. PRINT STYLE SHEET (Perfect clean PDF rendering on print dialog)
   ============================================================================== */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    /* Hide navigational controls */
    .sidebar, .main-header, .filters-panel, .pagination, .action-buttons, .btn, .alert-toast, .menu-toggle {
        display: none !important;
    }
    
    .main-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .content-body {
        padding: 0 !important;
    }
    
    .glass-card {
        background: none !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .glass-card-header {
        border-bottom: 2px solid #000 !important;
    }
    
    .custom-table {
        color: black !important;
        font-size: 10pt !important;
    }
    
    .custom-table th {
        background: #f1f5f9 !important;
        color: black !important;
        border-bottom: 2px solid #cbd5e1 !important;
    }
    
    .custom-table td {
        border-bottom: 1px solid #cbd5e1 !important;
        color: black !important;
    }
    
    .badge {
        border: 1px solid #94a3b8 !important;
        color: black !important;
        background: none !important;
        padding: 2px 6px !important;
    }
    
    /* Print page header */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 3px double #000;
        padding-bottom: 15px;
    }
    
    .print-header h2 {
        font-size: 18pt;
        font-weight: 800;
        margin-bottom: 4px;
    }
    
    .print-header p {
        font-size: 10pt;
        color: #475569;
    }
    
    /* Signature block for school authority approval */
    .print-signature-block {
        display: flex !important;
        justify-content: flex-end;
        margin-top: 50px;
        page-break-inside: avoid;
    }
    
    .signature-box {
        text-align: center;
        width: 250px;
        font-size: 11pt;
    }
    
    .signature-space {
        height: 75px;
    }
    
    .signature-name {
        font-weight: 700;
        text-decoration: underline;
    }
}

/* Hidden by default in desktop UI, displayed only on Print */
.print-header, .print-signature-block {
    display: none;
}
