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

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    
    --navy-950: #071022;
    --navy-900: #0B1B3D;
    --navy-850: #0e224e;
    --navy-800: #122C63;
    --navy-700: #1A3E8A;
    --navy-600: #2557B8;
    --navy-500: #3B82F6;
    --navy-100: #DBEAFE;
    --navy-50:  #EFF6FF;

    
    --cyan-500: #0EA5E9;
    --cyan-400: #38BDF8;
    --emerald-500: #10B981;
    --emerald-600: #059669;
    --emerald-50:  #ECFDF5;
    --rose-500: #EF4444;
    --rose-600: #DC2626;
    --rose-50:  #FEF2F2;
    --amber-500: #F59E0B;

    
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50:  #F8FAFC;
    --white:     #FFFFFF;

    
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(226, 232, 240, 0.9);
    --glass-shadow: 0 12px 32px -4px rgba(11, 27, 61, 0.08), 0 4px 12px -2px rgba(11, 27, 61, 0.03);
    --glass-shadow-lg: 0 20px 45px -10px rgba(11, 27, 61, 0.14), 0 8px 16px -4px rgba(11, 27, 61, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: #F3F6FC;
    background-image: 
        radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.6) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(224, 242, 254, 0.5) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(241, 245, 249, 0.8) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--slate-800);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy-900);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--glass-shadow-lg);
}

.navbar {
    background: rgba(11, 27, 61, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 1.5rem;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.brand-subtitle {
    color: var(--cyan-400);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--slate-200);
    font-size: 0.85rem;
    font-weight: 500;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-400), var(--navy-500));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-portal-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan-400);
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-decoration: none;
    transition: var(--transition);
}

.btn-portal-nav:hover {
    background: rgba(14, 165, 233, 0.25);
    color: #ffffff;
    border-color: var(--cyan-400);
    transform: translateY(-1px);
}

.btn-change-pass {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-change-pass:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFA5A5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    text-decoration: none;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--rose-600);
    color: var(--white);
}

.main-container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.page-header {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy-900);
}

.page-description {
    color: var(--slate-500);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

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

.stat-card {
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

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

.stat-card.stat-smp::before { background: #3B82F6; }
.stat-card.stat-smk::before { background: #0EA5E9; }
.stat-card.stat-month::before { background: var(--emerald-500); }

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.2;
    margin-top: 0.25rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-50);
    color: var(--navy-700);
    font-size: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.75rem;
    align-items: start;
}

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

.form-card {
    padding: 1.75rem;
}

.form-header {
    border-bottom: 1px solid var(--slate-200);
    padding-bottom: 1rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-header-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--navy-900);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-header-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 0.4rem;
}

.form-label .required {
    color: var(--rose-500);
}

.form-control, .form-select {
    width: 100%;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--slate-800);
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3.5px rgba(37, 87, 184, 0.15);
}

.form-control[readonly], .form-control:disabled {
    background-color: var(--slate-100);
    color: var(--slate-600);
    border-color: var(--slate-300);
    cursor: not-allowed;
}

.preview-box {
    background: linear-gradient(135deg, #0B1B3D 0%, #152E63 100%);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    color: var(--white);
    margin-top: 1.25rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.preview-box::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
}

.preview-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan-400);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-badge {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.preview-value {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    word-break: break-all;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--slate-300);
}

.preview-meta-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn > *,
.btn-change-pass > *,
.modal-close > * {
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(11, 27, 61, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
    box-shadow: 0 6px 18px rgba(11, 27, 61, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
    background: var(--slate-200);
}

.btn-success {
    background: var(--emerald-600);
    color: var(--white);
}

.btn-success:hover {
    background: var(--emerald-500);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--rose-600);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
}

.table-card {
    padding: 1.5rem;
}

.table-header-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.table-search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.table-search-input {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.2rem;
    font-size: 0.85rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.table-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 0.85rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    background: var(--white);
}

.custom-table th {
    background: var(--slate-50);
    color: var(--slate-600);
    font-weight: 700;
    padding: 0.85rem 1rem;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    border-bottom: 1.5px solid var(--slate-200);
}

.custom-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
    color: var(--slate-700);
}

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

.custom-table tr:hover td {
    background-color: #F8FAFC;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-smp {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.badge-smk {
    background: #F0F9FF;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.badge-sk {
    background: #FDF4FF;
    color: #86198F;
    border: 1px solid #F5D0FE;
}

.badge-seket {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.badge-valid {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.badge-invalid {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.badge-scan-attached {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 600;
    transition: var(--transition);
}

.badge-scan-attached:hover {
    background: #D1FAE5;
    border-color: #6EE7B7;
}

.badge-scan-none {
    background: var(--slate-100);
    color: var(--slate-400);
    border: 1px dashed var(--slate-300);
    font-size: 0.68rem;
    font-weight: 500;
}

.alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 16, 34, 0.65);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2.5rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    animation: modalFadeIn 0.2s ease-out;
    margin: auto;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    padding: 1.15rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 {
    color: var(--white);
    font-size: 1.15rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--slate-300);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
}

.modal-body {
    padding: 1.5rem;
    text-align: left;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

#qr_modal .modal-body {
    text-align: center;
}

.qr-preview-container {
    background: #F8FAFC;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--slate-300);
    display: inline-block;
    margin: 0.5rem auto 1.25rem;
}

.qr-image-display {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.qr-meta-box {
    text-align: left;
    background: var(--slate-50);
    border-radius: var(--radius-sm);
    padding: 0.95rem;
    border: 1px solid var(--slate-200);
    margin-top: 1rem;
    font-size: 0.85rem;
}

.qr-meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.qr-meta-item:last-child {
    margin-bottom: 0;
}

.qr-meta-label {
    color: var(--slate-500);
    font-weight: 500;
}

.qr-meta-val {
    color: var(--navy-900);
    font-weight: 700;
}

.verify-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.verify-card {
    max-width: 580px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    position: relative;
    transition: max-width 0.3s ease;
}

.verify-card.has-scan {
    max-width: 780px;
}

.verify-scan-section {
    margin-top: 1.75rem;
    border-top: 1.5px dashed var(--slate-200);
    padding-top: 1.5rem;
    text-align: left;
}

.verify-scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.verify-scan-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.verify-scan-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pdf-viewer-container {
    width: 100%;
    height: 520px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--slate-300);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    background: #525659;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.image-viewer-container {
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-300);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    background: #F8FAFC;
    padding: 0.75rem;
    text-align: center;
}

.scan-image-preview {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.verify-header-decor {
    height: 10px;
    width: 100%;
}

.verify-header-decor.valid {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

.verify-header-decor.invalid {
    background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
}

.verify-body {
    padding: 2.25rem 2rem;
    text-align: center;
}

.verify-school-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.verify-school-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.verify-school-info {
    text-align: left;
}

.verify-school-info h2 {
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--navy-900);
}

.verify-school-info p {
    font-size: 0.8rem;
    color: var(--slate-500);
    font-weight: 500;
}

.status-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.status-badge-lg.valid {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #065F46;
    border: 2px solid #34D399;
}

.status-badge-lg.invalid {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #991B1B;
    border: 2px solid #F87171;
}

.status-badge-lg .status-icon {
    font-size: 1.5rem;
}

.verify-details-table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.verify-details-table tr {
    border-bottom: 1px solid var(--slate-100);
}

.verify-details-table tr:last-child {
    border-bottom: none;
}

.verify-details-table th {
    padding: 0.85rem 0.5rem;
    color: var(--slate-500);
    font-weight: 600;
    width: 38%;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.verify-details-table td {
    padding: 0.85rem 0.5rem;
    color: var(--navy-900);
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
}

.verify-seal {
    margin-top: 1.75rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px dashed var(--slate-300);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.verify-seal-icon {
    font-size: 2rem;
    color: var(--emerald-600);
}

.verify-seal-text {
    font-size: 0.78rem;
    color: var(--slate-600);
    line-height: 1.4;
}

.verify-seal-text strong {
    color: var(--navy-900);
    display: block;
    margin-bottom: 2px;
}

.app-footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--slate-500);
    font-size: 0.82rem;
}

.institution-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(11, 27, 61, 0.06);
    color: var(--navy-800);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(11, 27, 61, 0.1);
}

.principals-pill-group {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.principal-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(11, 27, 61, 0.04);
}

.pill-mini-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pill-role {
    font-size: 0.68rem;
    color: var(--slate-500);
    font-weight: 600;
    line-height: 1.1;
}

.pill-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-900);
}

.stat-sub {
    font-size: 0.74rem;
    color: var(--slate-400);
    font-weight: 500;
    margin-top: 0.15rem;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-all {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
    color: var(--navy-600);
}

.icon-smp {
    background: rgba(30, 64, 175, 0.08);
}

.icon-smk {
    background: rgba(234, 88, 12, 0.08);
}

.icon-month {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: var(--emerald-600);
}

.badge-auto-lock {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.3);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.input-readonly {
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: var(--navy-900) !important;
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: not-allowed;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.preview-breakdown {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
    margin-bottom: 0.75rem;
}

.pill-bd {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.8);
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    color: var(--slate-600);
}

.pill-bd b {
    color: var(--navy-900);
    font-family: var(--font-mono);
}

.table-tab-filter {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
    flex-wrap: wrap;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid var(--slate-200);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--slate-100);
    color: var(--navy-900);
}

.tab-btn.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(11, 27, 61, 0.15);
}

.tab-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.table-doc-number {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--navy-900);
}

.table-doc-id {
    font-size: 0.68rem;
    color: var(--slate-400);
    font-family: var(--font-mono);
    display: block;
    margin-top: 1px;
}

.badge-category {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.action-buttons-wrapper {
    display: inline-flex;
    gap: 0.35rem;
}

.table-tools-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ta-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.65rem;
    box-shadow: 0 1px 3px rgba(11, 27, 61, 0.04);
    color: #0284c7;
    transition: var(--transition);
}

.ta-filter-wrapper:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    color: #0369a1;
}

.table-ta-select {
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-900);
    font-family: var(--font-main);
    outline: none;
    cursor: pointer;
}

.month-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.65rem;
    box-shadow: 0 1px 3px rgba(11, 27, 61, 0.04);
    color: var(--slate-500);
    transition: var(--transition);
}

.month-filter-wrapper:focus-within {
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    color: var(--navy-600);
}

.table-month-select {
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy-900);
    font-family: var(--font-main);
    outline: none;
    cursor: pointer;
}

.mobile-action-label {
    display: none;
}

.mobile-section-nav {
    display: none;
}

.table-tab-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0 0 1rem 0;
}

.school-tabs-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.accordion-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-accordion-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-600);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accordion-action:hover {
    background: var(--slate-200);
    color: var(--navy-900);
}

.month-separator-row {
    background: linear-gradient(90deg, #EDF2F7 0%, #F8FAFC 100%) !important;
    border-top: 2px solid #CBD5E1 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.month-separator-row:hover {
    background: linear-gradient(90deg, #E2E8F0 0%, #EDF2F7 100%) !important;
}

.month-separator-row td {
    padding: 0.5rem 1rem !important;
}

.month-separator-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.month-separator-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.month-chevron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(11, 27, 61, 0.08);
    color: var(--navy-900);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.month-separator-row.is-collapsed .month-chevron-btn {
    transform: rotate(-90deg);
    background: rgba(11, 27, 61, 0.15);
}

.month-separator-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--navy-900);
    font-size: 0.85rem;
}

.month-separator-badge strong {
    font-weight: 800;
    color: var(--navy-950);
}

.month-count-pill {
    background: var(--navy-900);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    box-shadow: 0 2px 4px rgba(11, 27, 61, 0.15);
}

.month-detail-tag {
    background: rgba(11, 27, 61, 0.05);
    color: var(--slate-600);
    border: 1px solid rgba(11, 27, 61, 0.1);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.month-separator-right {
    display: flex;
    align-items: center;
}

.month-reset-info {
    font-size: 0.72rem;
    color: #0369a1;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.08);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.table-pagination-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 1.15rem 0.5rem 0.25rem 0.5rem;
    border-top: 1px solid var(--slate-200);
    margin-top: 1rem;
}

.pagination-info {
    font-size: 0.82rem;
    color: var(--slate-500);
}

.pagination-info strong {
    color: var(--navy-900);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.per-page-dropdown {
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-900);
    background: var(--white);
    outline: none;
    cursor: pointer;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-btn {
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: var(--navy-900);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background: var(--slate-100);
    border-color: var(--slate-300);
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-indicator-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-900);
    font-family: var(--font-mono);
    padding: 0.25rem 0.6rem;
    background: var(--slate-100);
    border-radius: 6px;
}

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

    
    .mobile-section-nav {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        background: var(--slate-100);
        padding: 0.35rem;
        border-radius: 12px;
        border: 1px solid var(--slate-200);
        position: sticky;
        top: 0.75rem;
        z-index: 50;
        box-shadow: 0 4px 12px rgba(11, 27, 61, 0.08);
        backdrop-filter: blur(8px);
    }

    .mobile-nav-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border: none;
        border-radius: 9px;
        font-weight: 700;
        font-size: 0.88rem;
        color: var(--slate-600);
        background: transparent;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-nav-btn.active {
        background: var(--navy-900);
        color: var(--white);
        box-shadow: 0 3px 10px rgba(11, 27, 61, 0.25);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .brand-wrapper {
        justify-content: flex-start;
    }

    .user-nav-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.45rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .user-badge {
        padding: 0.3rem 0.65rem;
        font-size: 0.78rem;
    }

    .btn-portal-nav, .btn-change-pass, .btn-logout {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    .modal-backdrop {
        padding: 0.5rem;
    }

    .modal-dialog {
        max-height: 94vh;
    }

    .modal-body {
        padding: 1.15rem;
    }

    .form-control, .form-select, .table-search-input, .table-month-select {
        font-size: 16px !important;
    }

    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .stat-card {
        padding: 0.85rem 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 1.35rem;
    }

    .stat-sub {
        font-size: 0.68rem;
        display: none;
    }

    .stat-icon-wrapper {
        width: 38px;
        height: 38px;
    }

    .stat-icon-wrapper img {
        width: 26px !important;
        height: 26px !important;
    }

    .stat-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    
    .table-responsive {
        border: none;
        overflow: visible;
        background: transparent;
    }

    .custom-table {
        display: block;
        background: transparent;
    }

    .custom-table thead {
        display: none; 
    }

    .custom-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    
    .custom-table tr[data-school] {
        display: flex !important;
        flex-direction: column;
        background: var(--white);
        border: 1.5px solid var(--slate-200);
        border-radius: 14px;
        padding: 1.1rem;
        box-shadow: 0 4px 12px rgba(11, 27, 61, 0.05);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .custom-table tr[data-school]:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(11, 27, 61, 0.09);
    }

    .custom-table tr[data-school] td {
        padding: 0.25rem 0 !important;
        border-bottom: none !important;
    }

    .col-num {
        display: none; 
    }

    .col-doc-number {
        order: 1;
        margin-bottom: 0.25rem;
    }

    .table-doc-number {
        font-size: 0.95rem;
        color: var(--navy-900);
    }

    .col-school {
        order: 2;
        display: flex;
        gap: 0.45rem;
        align-items: center;
        margin-bottom: 0.4rem;
    }

    .col-subject {
        order: 3;
        margin-bottom: 0.5rem;
    }

    .col-date {
        order: 4;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        color: var(--slate-600);
        margin-bottom: 0.2rem;
    }

    .col-signatory {
        order: 5;
        font-size: 0.8rem;
        color: var(--slate-600);
        margin-bottom: 0.75rem;
    }

    
    .col-actions {
        order: 6;
        width: 100%;
        border-top: 1px dashed var(--slate-200) !important;
        padding-top: 0.85rem !important;
        margin-top: 0.25rem;
    }

    .action-buttons-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .action-buttons-wrapper .btn {
        min-height: 42px;
        padding: 0.55rem 0.65rem;
        border-radius: 8px;
        font-size: 0.8rem;
        justify-content: center;
    }

    .mobile-action-label {
        display: inline;
        font-weight: 600;
        margin-left: 0.35rem;
    }

    .action-buttons-wrapper form {
        display: block;
        width: 100%;
    }

    .action-buttons-wrapper form .btn {
        width: 100%;
    }

    
    .month-separator-row {
        display: block;
        border-radius: 12px;
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .month-separator-row td {
        display: block;
        padding: 0.75rem 0.95rem !important;
        border: none;
    }

    .month-separator-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .month-separator-right {
        width: 100%;
        justify-content: flex-start;
    }

    
    .table-tools-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .ta-filter-wrapper, .month-filter-wrapper, .table-search-box {
        max-width: 100%;
        width: 100%;
    }

    .table-tab-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .school-tabs-group, .accordion-quick-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-accordion-action {
        flex: 1;
        justify-content: center;
        padding: 0.45rem 0.65rem;
    }

    .table-pagination-area {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
    }

    .pagination-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 0.85rem;
        margin: 1rem auto;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .page-description {
        font-size: 0.82rem;
    }

    .user-nav-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .user-pill-badge {
        font-size: 0.72rem;
    }
}
