/* Online School Results Portal Custom Stylesheet */

:root {
    --page-bg: #080d1a;
    --page-bg-accent: #0f172a;
    --page-bg-glow-1: rgba(59, 130, 246, 0.08);
    --page-bg-glow-2: rgba(16, 185, 129, 0.06);
    --card-bg: rgba(17, 24, 43, 0.75);
    --card-border: rgba(255, 255, 255, 0.07);
    --surface-bg: rgba(12, 19, 34, 0.88);
    --surface-elevated: rgba(18, 26, 48, 0.95);
    --input-bg: rgba(10, 15, 28, 0.6);
    --input-placeholder: #6b7280;
    --text-main: #f3f4f6;
    --text-muted: #cbd5e1;
    --text-on-accent: #ffffff;
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --secondary-color: #10b981;
    --secondary-glow: rgba(16, 185, 129, 0.3);
    --accent-glow: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --success-glow: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --danger-glow: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --warning-glow: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --sidebar-bg: #0c1322;
    --footer-bg: rgba(12, 19, 34, 0.55);
    --transition-speed: 0.25s;
    color-scheme: dark;
}

/* Light Theme Variables (Triggered via .light-mode class on body) */
html.light-mode,
body.light-mode {
    --page-bg: #f3f4f6;
    --page-bg-accent: #e5e7eb;
    --page-bg-glow-1: rgba(37, 99, 235, 0.08);
    --page-bg-glow-2: rgba(5, 150, 105, 0.06);
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(15, 23, 42, 0.08);
    --surface-bg: rgba(255, 255, 255, 0.94);
    --surface-elevated: rgba(248, 250, 252, 0.98);
    --input-bg: #ffffff;
    --input-placeholder: #94a3b8;
    --text-main: #1f2937;
    --text-muted: #475569;
    --text-on-accent: #ffffff;
    --primary-color: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --secondary-color: #059669;
    --secondary-glow: rgba(5, 150, 105, 0.15);
    --sidebar-bg: #ffffff;
    --footer-bg: rgba(255, 255, 255, 0.82);
    color-scheme: light;
}

html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--page-bg);
    background-image: radial-gradient(circle at top left, var(--page-bg-glow-1) 0, transparent 34%), radial-gradient(circle at bottom right, var(--page-bg-glow-2) 0, transparent 30%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

/* Background Glowing Orbs */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--page-bg-glow-1) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--page-bg-glow-2) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

/* Layout and Containers */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

/* Custom Navigation Bar */
.navbar-custom {
    background: var(--surface-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.navbar-custom .navbar-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--text-main) !important;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-custom .brand-title {
    color: var(--text-main);
}

.navbar-custom .brand-subtitle {
    color: var(--text-muted);
}

html.light-mode .navbar-custom,
body.light-mode .navbar-custom {
    background: var(--surface-bg) !important;
}

html.light-mode .navbar-custom .navbar-brand,
html.light-mode .navbar-custom .nav-link,
body.light-mode .navbar-custom .navbar-brand,
body.light-mode .navbar-custom .nav-link {
    color: var(--text-main) !important;
}

html.light-mode .navbar-custom .brand-title,
body.light-mode .navbar-custom .brand-title {
    color: var(--text-main) !important;
}

html.light-mode .navbar-custom .brand-subtitle,
body.light-mode .navbar-custom .brand-subtitle {
    color: var(--text-muted) !important;
}

@media (min-width: 992px) {
    .navbar-custom .navbar-top-row {
        display: contents;
    }
}

/* Sidebar and Main Layout for Admin Dashboard */
.admin-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

.admin-sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--card-border);
    transition: all 0.3s;
    z-index: 1000;
}

.admin-content {
    width: 100%;
    padding: 30px;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 10px;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-menu li a i {
    width: 24px;
    font-size: 18px;
    margin-right: 10px;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

html.light-mode .sidebar-menu li a:hover,
html.light-mode .sidebar-menu li.active a,
body.light-mode .sidebar-menu li a:hover,
body.light-mode .sidebar-menu li.active a {
    background: rgba(37, 99, 235, 0.08);
}

/* Cards & Widgets */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card .card-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--primary-glow);
    border-radius: 50%;
    filter: blur(25px);
    right: -20px;
    top: -20px;
    pointer-events: none;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.icon-orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Forms & Inputs */
.form-control, .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
    color: var(--text-main);
}

html.light-mode .form-control, html.light-mode .form-select,
body.light-mode .form-control, body.light-mode .form-select {
    border-color: #cbd5e1;
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

/* Responsive Input Group Base */
.input-group-responsive {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}
.input-group-responsive .form-control {
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group-responsive .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.form-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 6px;
}

/* Custom Buttons */
.btn-glow-primary {
    background: var(--accent-glow);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.2s;
}

.btn-glow-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: white;
}

.btn-glow-success {
    background: var(--success-glow);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    box-shadow: 0 4px 14px var(--secondary-glow);
    transition: all 0.2s;
}

.btn-glow-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--secondary-glow);
    color: white;
}

/* Tables and DataTables Styling */
.table-responsive {
    touch-action: auto !important;
}

.table {
    color: var(--text-main) !important;
    --bs-table-color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-striped-color: var(--text-main);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-color: var(--text-main);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.08);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    color: inherit;
    border-bottom-color: var(--card-border) !important;
}

.table th {
    border-bottom: 2px solid var(--card-border) !important;
    font-weight: 600;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.02);
}

.table td {
    border-bottom: 1px solid var(--card-border) !important;
    vertical-align: middle;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--text-main);
}

.dataTables_wrapper {
    color: var(--text-main);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-muted) !important;
}

.dataTables_filter input {
    background-color: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    border-radius: 8px;
    padding: 6px 12px;
    margin-left: 10px;
}

.dataTables_length select {
    background-color: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    border-radius: 8px;
    padding: 4px 8px;
    margin: 0 5px;
}

.page-link {
    background-color: var(--surface-bg);
    border-color: var(--card-border);
    color: var(--text-main);
}

.page-link:hover {
    background-color: rgba(59, 130, 246, 0.12);
    border-color: var(--primary-color);
    color: var(--text-main);
}

.page-item.active .page-link {
    background: var(--accent-glow);
    border-color: var(--primary-color);
    color: var(--text-on-accent);
}

/* Notice Board */
.notice-board-container {
    color: var(--text-main);
}

.notice-board-container .text-muted,
.notice-board-container .text-secondary {
    color: var(--text-muted) !important;
}

.notice-card {
    border-left: 4px solid var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    padding: 16px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 15px;
    border-top: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.notice-card h6 {
    color: var(--text-main);
}

.notice-card p {
    color: var(--text-muted) !important;
}

.notice-card .badge {
    background-color: rgba(148, 163, 184, 0.18) !important;
    color: var(--text-main) !important;
}

.notice-card.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.04);
}

.notice-card.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Section */
.footer-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* Verification Code Badge */
.ver-badge {
    font-family: monospace;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.07);
    border: 1px dashed var(--text-muted);
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Theme-aware Bootstrap utility overrides */
html.light-mode .text-light,
html.light-mode .text-white,
body.light-mode .text-light,
body.light-mode .text-white {
    color: var(--text-main) !important;
}

html.light-mode .text-secondary,
body.light-mode .text-secondary {
    color: var(--text-muted) !important;
}

html.light-mode .bg-dark,
html.light-mode .bg-dark.bg-opacity-30,
html.light-mode .bg-dark.bg-opacity-95,
html.light-mode .bg-dark.bg-opacity-20,
html.light-mode .bg-dark.bg-opacity-10,
body.light-mode .bg-dark,
body.light-mode .bg-dark.bg-opacity-30,
body.light-mode .bg-dark.bg-opacity-95,
body.light-mode .bg-dark.bg-opacity-20,
body.light-mode .bg-dark.bg-opacity-10 {
    background-color: var(--surface-elevated) !important;
}

html.light-mode .border-secondary,
body.light-mode .border-secondary {
    border-color: var(--card-border) !important;
}

html.light-mode .btn-outline-secondary,
body.light-mode .btn-outline-secondary {
    color: var(--text-main) !important;
    border-color: var(--card-border) !important;
}

html.light-mode .btn-outline-secondary:hover,
body.light-mode .btn-outline-secondary:hover {
    background-color: rgba(37, 99, 235, 0.08) !important;
    color: var(--text-main) !important;
}

html.light-mode .navbar-dark .navbar-toggler-icon,
body.light-mode .navbar-dark .navbar-toggler-icon {
    filter: invert(1) grayscale(1) contrast(0.75);
}

html.light-mode .badge.bg-secondary,
body.light-mode .badge.bg-secondary {
    background-color: rgba(100, 116, 139, 0.14) !important;
    color: var(--text-main) !important;
}

html.light-mode .notice-board-container .text-muted,
html.light-mode .notice-board-container .text-secondary,
body.light-mode .notice-board-container .text-muted,
body.light-mode .notice-board-container .text-secondary {
    color: var(--text-muted) !important;
}

html.light-mode .notice-card h6,
body.light-mode .notice-card h6 {
    color: var(--text-main) !important;
}

html.light-mode .notice-card p,
body.light-mode .notice-card p {
    color: var(--text-muted) !important;
}

html.light-mode .notice-card .badge,
body.light-mode .notice-card .badge {
    background-color: rgba(148, 163, 184, 0.14) !important;
    color: var(--text-main) !important;
}

html.light-mode .table th,
body.light-mode .table th {
    background-color: rgba(15, 23, 42, 0.03);
}

html.light-mode .table-hover > tbody > tr:hover > *,
body.light-mode .table-hover > tbody > tr:hover > * {
    background-color: rgba(37, 99, 235, 0.06);
}

html.light-mode .page-link,
body.light-mode .page-link {
    background-color: var(--surface-elevated);
    color: var(--text-main);
}

html.light-mode .page-link:hover,
body.light-mode .page-link:hover {
    background-color: rgba(37, 99, 235, 0.08);
}

html.light-mode .modal-content,
body.light-mode .modal-content {
    background-color: var(--surface-elevated);
    color: var(--text-main);
}

html.light-mode code,
body.light-mode code {
    color: #b45309;
}

/* Public Portal Mobile Responsiveness */
.portal-content-shell {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 991.98px) {
    .portal-content-shell {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .navbar-custom .container {
        align-items: center;
    }

    .navbar-custom .navbar-collapse {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--card-border);
    }

    .navbar-custom .navbar-nav {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    body {
        background-attachment: scroll;
    }

    .portal-content-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-top: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    .navbar-custom .container {
        gap: 0.75rem;
        align-items: center;
        flex-wrap: wrap;
    }

    .navbar-custom .navbar-brand {
        align-items: center;
        gap: 0.75rem;
        max-width: calc(100% - 56px);
        min-width: 0;
        flex: 1 1 auto;
    }

    .navbar-custom .brand-title {
        font-size: 0.95rem !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .navbar-custom .brand-subtitle {
        font-size: 0.68rem !important;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .navbar-custom .logo-icon-container {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0;
    }

    .navbar-custom .navbar-toggler {
        margin-left: auto;
        flex-shrink: 0;
        padding: 0.35rem 0.5rem;
    }

    .navbar-custom .nav-link,
    .navbar-custom .btn {
        width: 100%;
    }

    .navbar-custom .navbar-collapse {
        order: 2;
    }

    .glass-panel {
        border-radius: 14px;
    }

    .portal-content-shell .glass-panel {
        padding: 1rem !important;
    }

    .notice-board-container {
        max-height: none !important;
        padding-right: 0 !important;
    }

    .notice-card {
        padding: 14px;
    }

    .notice-card .d-flex.justify-content-between.align-items-start {
        flex-direction: column;
        gap: 0.45rem;
    }

    .notice-card .badge {
        align-self: flex-start;
    }

    .portal-content-shell h2 {
        font-size: 1.4rem;
        line-height: 1.12;
        word-break: break-word;
    }

    .portal-content-shell h4 {
        font-size: 1.1rem;
    }

    .portal-content-shell .form-label {
        font-size: 13px;
    }

    .portal-content-shell .form-control,
    .portal-content-shell .form-select,
    .portal-content-shell .btn {
        min-height: 44px;
    }

    .portal-content-shell .btn {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    #checkerForm .row.g-3.mb-4 > [class*='col-'] {
        margin-bottom: 0.25rem;
    }

    #resultContainer {
        padding: 1rem !important;
    }

    #resultContainer .p-3 {
        padding: 0.85rem !important;
    }

    #resActionButtons .btn {
        width: 100%;
    }

    .footer .container {
        text-align: center !important;
    }

    .footer .text-lg-end {
        text-align: center !important;
    }

    .footer .col-lg-6 + .col-lg-6 {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    /* Responsive Input Group Mobile Override */
    .input-group-responsive {
        flex-direction: column;
        gap: 0.5rem;
    }
    .input-group-responsive .form-control {
        border-radius: 10px !important;
        text-align: center;
    }
    .input-group-responsive .btn {
        border-radius: 10px !important;
        width: 100%;
    }

    /* Tabular data key-value stack for small screens */
    .table-responsive-stack, 
    .table-responsive-stack tbody, 
    .table-responsive-stack tr, 
    .table-responsive-stack td {
        display: block;
        width: 100% !important;
    }
    
    .table-responsive-stack tr {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--card-border) !important;
    }
    
    .table-responsive-stack tr:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none !important;
    }
    
    .table-responsive-stack td {
        padding: 0.15rem 0 !important;
    }
    
    .table-responsive-stack td:first-child {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted) !important;
    }

    .portal-content-shell {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .navbar-custom .navbar-brand {
        max-width: 100%;
        gap: 0.55rem;
    }

    .navbar-custom .brand-title {
        font-size: 0.88rem !important;
        line-height: 1.05;
    }

    .navbar-custom .brand-subtitle {
        font-size: 0.64rem !important;
        line-height: 1.1;
    }

    .navbar-custom .brand-subtitle {
        display: none !important;
    }

    .portal-content-shell .glass-panel {
        padding: 0.9rem !important;
    }

    .portal-content-shell h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .notice-card h6 {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .notice-card p {
        font-size: 0.85rem !important;
    }

    .portal-content-shell .accordion-button {
        font-size: 0.92rem;
    }

    .portal-content-shell .badge {
        white-space: normal;
    }

    #resultContainer .d-md-flex > div {
        width: 100%;
    }

    #resultContainer .text-md-end {
        text-align: left !important;
    }

    .navbar-custom .container {
        gap: 0.5rem;
    }
}

@media (max-width: 420px) {
    .navbar-custom .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .navbar-custom .navbar-brand {
        max-width: calc(100% - 44px);
        gap: 0.45rem;
    }

    .navbar-custom .logo-icon-container {
        width: 34px !important;
        height: 34px !important;
    }

    .navbar-custom .brand-title {
        font-size: 0.8rem !important;
        line-height: 1.05;
    }

    .navbar-custom .brand-subtitle {
        display: none !important;
    }

    .navbar-custom .navbar-toggler {
        padding: 0.25rem 0.4rem;
    }

    .portal-content-shell {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .portal-content-shell .glass-panel {
        padding: 0.75rem !important;
    }

    .portal-content-shell .badge {
        font-size: 0.72rem;
    }

    .portal-content-shell h2 {
        font-size: 1.12rem;
        line-height: 1.08;
    }

    .portal-content-shell p.text-secondary {
        font-size: 0.9rem;
    }

    .portal-content-shell .form-label {
        font-size: 12px;
        margin-bottom: 0.4rem;
    }

    .portal-content-shell .form-control,
    .portal-content-shell .form-select {
        min-height: 42px;
        padding: 0.6rem 0.8rem;
    }

    .portal-content-shell .btn {
        min-height: 42px;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        font-size: 0.95rem;
    }

    .notice-card {
        padding: 12px;
    }

    .notice-card h6 {
        font-size: 0.9rem;
    }

    .notice-card p {
        font-size: 0.8rem !important;
    }

    #resultContainer {
        margin-top: 2rem !important;
    }

    #resultContainer .d-md-flex.align-items-center {
        gap: 0.75rem;
    }

    #resultContainer h4 {
        font-size: 1.05rem;
    }
}

@media (max-width: 360px) {
    .navbar-custom .navbar-brand {
        max-width: calc(100% - 40px);
    }

    .navbar-custom .brand-title {
        font-size: 0.74rem !important;
    }

    .navbar-custom .navbar-toggler {
        transform: scale(0.92);
        transform-origin: right center;
    }

    .portal-content-shell h2 {
        font-size: 1rem;
    }

    .portal-content-shell .glass-panel {
        padding: 0.65rem !important;
    }

    .portal-content-shell .badge {
        font-size: 0.68rem;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .sidebar-menu li {
        flex: 1 0 45%;
        margin: 5px;
    }
}

@media (max-width: 575.98px) {
    .sidebar-menu li {
        flex: 1 0 100%;
    }
}
