/* public/css/style.css */

:root {
    --ams-primary: #1a3c6e;
    --ams-primary-dk: #122d54;
    --ams-accent: #f0a500;
    --ams-danger: #dc3545;
    --ams-success: #198754;
    --ams-sidebar-w: 220px;
    --ams-sidebar-collapsed-w: 72px;
    --ams-topbar-h: 56px;
}

body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 0.9rem;
    background: #f4f6f9;
    color: #2d2d2d;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.ams-topbar {
    min-height: var(--ams-topbar-h);
    background: var(--ams-primary);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    gap: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ams-topbar .brand {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.ams-topbar .brand img {
    height: 30px;
    width: 30px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.ams-topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .ams-topbar .topbar-actions {
        flex-shrink: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .ams-topbar .topbar-actions::-webkit-scrollbar {
        display: none;
    }
}

.ams-sidebar-toggle {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ams-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.ams-sidebar-toggle:active {
    transform: scale(0.95);
}

.ams-sidebar-toggle .bi-list {
    transition: transform 0.25s ease;
    display: inline-block;
}

.ams-sidebar.sidebar-collapsed~.ams-layout-row,
body.sidebar-collapsed .ams-sidebar-toggle .bi-list {}

.ams-role-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ams-sidebar {
    width: var(--ams-sidebar-w);
    background: var(--ams-primary);
    position: sticky;
    top: var(--ams-topbar-h);
    align-self: flex-start;
    height: calc(100vh - var(--ams-topbar-h));
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1020;
    transition:
        width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s ease;
    flex-shrink: 0;
}

.ams-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.ams-sidebar.sidebar-collapsed {
    width: var(--ams-sidebar-collapsed-w);
}

.ams-sidebar.sidebar-collapsed .nav-text,
.ams-sidebar.sidebar-collapsed .nav-section {
    display: none;
}

.ams-sidebar.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 0.65rem 0;
    border-left: none;
    position: relative;
}

.ams-sidebar.sidebar-collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
}

.ams-sidebar.sidebar-collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: #1a2035;
    color: #fff;
    padding: 0.45rem 0.75rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    border-left: 3px solid #4facfe;
    pointer-events: none;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.15s ease,
        visibility 0.15s ease,
        transform 0.15s ease;
}

.ams-sidebar.sidebar-collapsed .nav-link:hover::after,
.ams-sidebar.sidebar-collapsed .nav-link:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.ams-sidebar.sidebar-collapsed .nav-link::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1a2035;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
    margin-left: 1px;
    z-index: 9999;
}

.ams-sidebar.sidebar-collapsed .nav-link:hover::before,
.ams-sidebar.sidebar-collapsed .nav-link:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.ams-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition:
        background 0.15s,
        color 0.15s,
        border-left-color 0.15s,
        padding 0.28s ease;
    white-space: nowrap;
}

.ams-sidebar .nav-link i {
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
}

.ams-sidebar .nav-link:hover,
.ams-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ams-sidebar .nav-link.active {
    border-left-color: #4facfe;
}

.ams-sidebar .nav-section {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    padding: 1rem 1.25rem 0.3rem;
    transition: opacity 0.2s ease;
}

.ams-layout-row {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.ams-main {
    margin-left: 0;
    padding: 1.5rem;
    min-height: auto;
    flex: 1;
    min-width: 0;
    transition: padding 0.2s ease;
}

.ams-main-full {
    padding: 1.5rem;
    min-height: auto;
    flex: 1;
    width: 100%;
}

.ams-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.ams-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ams-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ams-primary);
    margin: 0;
}

.ams-table thead th {
    background: var(--ams-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border: none;
    padding: 0.6rem 0.75rem;
}

.ams-table tbody tr:hover {
    background: #f0f4fa;
}

.ams-table td {
    vertical-align: middle;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.ams-filter-bar {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}

.ams-filter-bar .form-control,
.ams-filter-bar .form-select {
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
    height: 32px;
    min-width: 120px;
    max-width: 200px;
}

.ams-filter-bar .btn {
    height: 32px;
    font-size: 0.8rem;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.attendance-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--ams-primary);
}

.attendance-row {
    cursor: default;
}

.status-present {
    color: var(--ams-success);
    font-weight: 600;
}

.status-absent {
    color: var(--ams-danger);
    font-weight: 600;
}

.status-unmarked {
    color: #888;
}

.absent-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--ams-danger);
    border-radius: 50%;
    color: #fff;
    font-size: 0.65rem;
}

.present-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--ams-success);
    border-radius: 50%;
    color: #fff;
    font-size: 0.65rem;
}

.ams-import-error-modal {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 420px;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 2000;
    overflow: hidden;
}

.ams-import-error-modal .modal-header {
    background: var(--ams-danger);
    color: #fff;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.88rem;
}

.ams-import-error-modal .modal-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
}

.ams-error-row {
    border-left: 3px solid var(--ams-danger);
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.4rem;
    background: #fff5f5;
    border-radius: 0 4px 4px 0;
}

.ams-error-row .error-col {
    display: inline-block;
    background: #fdd;
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    font-weight: 600;
    font-size: 0.78rem;
    margin-right: 0.3rem;
}

.ams-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
}

.ams-cal-day {
    min-height: 80px;
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    border: 1px solid #e5e9f0;
    background: #fff;
    position: relative;
}

.ams-cal-day.is-today {
    border-color: var(--ams-primary);
    background: #edf3ff;
}

.ams-cal-day.is-past {
    background: #f9f9f9;
    color: #aaa;
}

.ams-cal-day.is-working-day {
    border-left: 3px solid var(--ams-success);
}

.ams-cal-day.is-holiday {
    border-left: 3px solid var(--ams-danger);
    background: #fff8f8;
}

.ams-cal-day .day-number {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.ams-cal-day .day-label {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    display: inline-block;
}

.day-label-working {
    background: #d4edda;
    color: #155724;
}

.day-label-holiday {
    background: #f8d7da;
    color: #721c24;
}

.ams-flash {
    margin-bottom: 1rem;
}

.ams-flash .alert {
    margin-bottom: 0.5rem;
}

.ams-stat {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    text-align: center;
}

.ams-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ams-primary);
    line-height: 1;
}

.ams-stat .stat-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ams-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ams-danger);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.btn-ams-primary {
    background: var(--ams-primary);
    color: #fff;
    border: none;
}

.btn-ams-primary:hover {
    background: var(--ams-primary-dk);
    color: #fff;
}

/* ── Table action buttons (icon-only, compact) ──────────────── */
.btn-xs {
    font-size: .72rem;
    padding: .2rem .45rem;
    line-height: 1.4;
    border-radius: .3rem;
}

.action-btn {
    font-size: .8rem;
    padding: .2rem .42rem;
    line-height: 1.4;
    border-radius: .3rem;
    transition: transform .12s ease, box-shadow .12s ease;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.action-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ── Active / Inactive tab toggle (shared across all table pages) ── */
.dept-tabs {
    display: flex;
    gap: .35rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dept-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: .45rem 1rem;
    font-size: .83rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: .3rem;
    border-radius: .4rem .4rem 0 0;
}

.dept-tab:hover {
    color: #1e293b;
}

.dept-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: #f5f3ff;
}

.dept-tab-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: .1rem .4rem;
    border-radius: 999px;
    line-height: 1.4;
}

.dept-tab-badge-success {
    background: #dcfce7;
    color: #15803d;
}

.dept-tab-badge-secondary {
    background: #e2e8f0;
    color: #475569;
}

.ams-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            var(--ams-primary) 0%,
            var(--ams-primary-dk) 100%);
}

.ams-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    padding: 2rem 2rem 1.75rem;
}

.ams-login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.ams-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.ams-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media print {

    .college-site-header,
    .college-site-footer,
    .ams-sidebar,
    .ams-topbar,
    .ams-flash,
    .ams-sidebar-backdrop,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        display: block;
    }

    .main-wrapper,
    .ams-main,
    .ams-main-full {
        margin: 0 !important;
        padding: 0 !important;
    }
}

.college-site-header,
.college-site-footer,
.college-site-header *,
.college-site-footer * {
    font-family: "Times New Roman", Times, serif;
}

.college-site-header {
    position: relative;
    z-index: 20;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(to right, #8b0000, #003366, #8b0000) 1;
    box-shadow:
        0 8px 30px rgba(0, 51, 102, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.college-site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(139, 0, 0, 0.08) 14%, transparent 15%),
        radial-gradient(circle, rgba(0, 51, 102, 0.07) 10%, transparent 11%);
    background-size:
        72px 72px,
        140px 140px;
    opacity: 0.75;
    animation: collegeHeaderDrift 24s linear infinite;
    pointer-events: none;
}

.college-site-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.38),
            transparent);
    animation: collegeHeaderShimmer 7s ease-in-out infinite;
    pointer-events: none;
}

.college-header-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(44px);
    pointer-events: none;
    z-index: 0;
}

.college-header-bg-orb-1 {
    width: 180px;
    height: 180px;
    left: -55px;
    top: -65px;
    background: rgba(179, 0, 0, 0.12);
}

.college-header-bg-orb-2 {
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -100px;
    background: rgba(0, 51, 102, 0.12);
}

.college-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 34px;
}

.college-brand-area {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.college-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    background: #ffffff;
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    border: 3px solid #8b0000;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(0, 51, 102, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.2);
}

.college-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 50%;
    display: block;
}

.college-title-block h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #003366;
    background: linear-gradient(90deg,
            #8b0000 0%,
            #003366 28%,
            #b30000 50%,
            #003366 72%,
            #8b0000 100%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: collegeTitleFlow 6s linear infinite;
    white-space: nowrap;
}

.college-estd {
    color: #b30000;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-top: 4px;
}

.college-subtitle {
    display: inline-block;
    color: #8b0000;
    font-size: 15px;
    font-weight: 700;
    margin-top: 3px;
    padding-bottom: 7px;
    position: relative;
}

.college-subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(90deg, #8b0000, #003366, #b30000);
    box-shadow: 0 1px 6px rgba(179, 0, 0, 0.25);
}

.college-title-block p {
    margin: 7px 0 0;
    color: #003366;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.college-header-right {
    position: relative;
    z-index: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: #003366;
}

.college-contact-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: #003366;
    white-space: nowrap;
}

.college-contact-line i {
    color: #b30000;
}

.college-contact-line>span>a {
    text-decoration: none;
    color: #003366;
}

.college-social-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.college-social-row a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #003366;
    background: transparent;
    border: 2px solid rgba(0, 51, 102, 0.12);
    text-decoration: none;
    transition:
        transform 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.college-social-row>a>i {
    font-size: 1.2rem;
}

.college-footer-social-row>a>i {
    font-size: 1.2rem;
}

.college-social-row a:hover {
    color: #8b0000;
    background: linear-gradient(135deg, #deeaff, #ffe8e8);
    border-color: #b30000;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 18px rgba(179, 0, 0, 0.18);
}

.college-site-footer {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #003366, #0a3d7a, #003366);
    background-size: 200% auto;
    padding: 30px 34px 0;
    animation: collegeFooterFlow 12s linear infinite;
}

.college-footer-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            #b30000,
            #fff,
            #b30000,
            transparent);
    background-size: 200% auto;
    animation: collegeFooterDivider 5s linear infinite;
}

.college-site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px,
            transparent 1px);
    background-size: 36px 36px;
    animation: collegeHeaderDrift 28s linear infinite;
    pointer-events: none;
}

.college-footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    z-index: 0;
}

.college-footer-orb-1 {
    width: 220px;
    height: 220px;
    top: -90px;
    left: -70px;
    background: rgba(179, 0, 0, 0.2);
}

.college-footer-orb-2 {
    width: 230px;
    height: 230px;
    right: -90px;
    bottom: -90px;
    background: rgba(100, 160, 255, 0.18);
}

.college-footer-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.college-footer-particles span {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    animation: collegeFooterParticle 8s linear infinite;
}

.college-footer-particles span:nth-child(1) {
    left: 8%;
    animation-delay: 0s;
}

.college-footer-particles span:nth-child(2) {
    left: 16%;
    animation-delay: 1s;
}

.college-footer-particles span:nth-child(3) {
    left: 26%;
    animation-delay: 2s;
}

.college-footer-particles span:nth-child(4) {
    left: 36%;
    animation-delay: 0.4s;
}

.college-footer-particles span:nth-child(5) {
    left: 48%;
    animation-delay: 1.7s;
}

.college-footer-particles span:nth-child(6) {
    left: 58%;
    animation-delay: 2.8s;
}

.college-footer-particles span:nth-child(7) {
    left: 68%;
    animation-delay: 0.9s;
}

.college-footer-particles span:nth-child(8) {
    left: 78%;
    animation-delay: 2.3s;
}

.college-footer-particles span:nth-child(9) {
    left: 88%;
    animation-delay: 1.3s;
}

.college-footer-particles span:nth-child(10) {
    left: 94%;
    animation-delay: 3.1s;
}

.college-footer-particles span:nth-child(11) {
    left: 42%;
    animation-delay: 4s;
}

.college-footer-particles span:nth-child(12) {
    left: 72%;
    animation-delay: 4.5s;
}

.college-footer-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.college-footer-left,
.college-footer-center,
.college-footer-right {
    flex: 1;
}

.college-footer-center {
    text-align: center;
}

.college-footer-right {
    text-align: center;
}

.college-footer-left h3,
.college-footer-right h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #ffd5d5;
}

.college-site-footer p {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
}

.college-site-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.college-site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.college-footer-social-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.college-footer-social-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition:
        transform 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.college-footer-social-btn:hover {
    color: #fff;
    background: rgba(179, 0, 0, 0.3);
    border-color: #fff;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 18px rgba(179, 0, 0, 0.4);
}

.college-footer-copyright {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    padding: 8px 0 10px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@keyframes collegeHeaderDrift {
    from {
        transform: rotate(0deg) scale(1.02);
    }

    to {
        transform: rotate(360deg) scale(1.02);
    }
}

@keyframes collegeHeaderShimmer {
    0% {
        left: -80%;
        opacity: 0;
    }

    35% {
        opacity: 1;
    }

    65% {
        left: 130%;
        opacity: 1;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

@keyframes collegeTitleFlow {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 300% center;
    }
}

@keyframes collegeFooterFlow {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 200% center;
    }
}

@keyframes collegeFooterDivider {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 200% center;
    }
}

@keyframes collegeFooterParticle {
    0% {
        transform: translateY(0) scale(0.7);
        opacity: 0;
    }

    15% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-150px) translateX(22px) scale(1.15);
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .college-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 22px;
    }

    .college-title-block h1 {
        white-space: normal;
    }

    .college-logo-mark {
        width: 82px;
        height: 82px;
        flex: 0 0 82px;
    }

    .college-header-right {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
    }

    .college-contact-line {
        justify-content: flex-start;
        white-space: normal;
    }

    .college-footer-row {
        flex-wrap: wrap;
    }

    .college-footer-left,
    .college-footer-center,
    .college-footer-right {
        text-align: center;
    }

    .college-footer-social-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .college-logo-mark {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }

    .college-title-block h1 {
        font-size: 1.25rem;
    }

    .college-title-block p,
    .college-estd,
    .college-subtitle {
        font-size: 0.85rem;
    }

    .college-header-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px 14px;
    }

    .college-brand-area {
        justify-content: center;
    }

    .college-title-block {
        text-align: center;
    }

    .college-header-right {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .college-header-inner {
        padding: 16px 14px;
    }

    .college-brand-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .college-logo-mark {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
    }

    .college-title-block h1 {
        font-size: 20px;
        letter-spacing: 0.7px;
    }

    .college-subtitle {
        font-size: 12.5px;
    }

    .college-estd,
    .college-title-block p,
    .college-contact-line {
        font-size: 11.5px;
    }

    .college-site-footer {
        padding: 30px 14px 0;
    }
}

@media (max-width: 991.98px) {
    .ams-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        transform: translateX(-100%);
        height: 100vh;
        width: var(--ams-sidebar-w);
    }

    .ams-sidebar.sidebar-collapsed {
        width: var(--ams-sidebar-w);
    }

    .ams-sidebar.sidebar-collapsed .nav-text,
    .ams-sidebar.sidebar-collapsed .nav-section {
        display: inline;
    }

    .ams-sidebar.sidebar-collapsed .nav-link {
        justify-content: flex-start;
        padding: 0.55rem 1.25rem;
        border-left: 3px solid transparent;
    }

    .ams-sidebar.sidebar-collapsed .nav-link::before,
    .ams-sidebar.sidebar-collapsed .nav-link::after {
        display: none;
    }

    .ams-sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    }

    .ams-layout-row {
        display: block;
    }

    .ams-main {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .ams-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .ams-filter-bar .form-control,
    .ams-filter-bar .form-select {
        max-width: 100%;
        width: 100%;
        height: 38px;
    }

    .ams-filter-bar .btn {
        width: 100%;
        height: 38px;
        justify-content: center;
    }
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {

    .ams-table td,
    .ams-table th {
        white-space: nowrap;
        font-size: 0.78rem;
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .ams-card {
        padding: 0.85rem;
        border-radius: 6px;
    }

    .ams-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ams-card-header>div,
    .ams-card-header>.d-flex {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .ams-stat {
        padding: 0.85rem;
    }

    .ams-stat .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .modal-dialog.modal-lg {
        max-width: calc(100vw - 1rem);
    }
}

@media (max-width: 575.98px) {
    .ams-card-header .d-flex.flex-wrap {
        width: 100%;
    }

    .ams-card-header .btn {
        flex: 1;
        min-width: 80px;
        font-size: 0.78rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .ams-card .ams-calendar {
        min-width: 560px;
    }

    .ams-card>.ams-calendar,
    .ams-card>p+.ams-calendar {
        overflow-x: auto;
    }

    .ams-cal-day {
        min-height: 60px;
        padding: 0.25rem 0.3rem;
        font-size: 0.7rem;
    }

    .ams-cal-day .day-number {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .ams-import-error-modal {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 10px 10px 0 0;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .ams-login-card {
        padding: 1.5rem 1.25rem;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ams-login-wrap {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .pagination {
        flex-wrap: wrap;
        font-size: 0.78rem;
    }
}

.attendance-choice {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .attendance-choice {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.progress-bar {
    width: var(--progress-width) !important;
}

@media (max-width: 767.98px) {
    .ams-main-full {
        padding: 0.85rem;
    }
}

@media print {

    .ams-sidebar,
    .ams-topbar,
    .ams-filter-bar,
    .ams-sidebar-backdrop,
    #sidebarToggle,
    .btn,
    .no-print {
        display: none !important;
    }

    .ams-main,
    .ams-main-full {
        margin: 0;
        padding: 0;
    }
}

:root {
    --neo-bg: #e6e9f0;
    --neo-light: #ffffff;
    --neo-dark: #c8cdd4;
    --neo-radius: 16px;
}

.ams-login-wrap {
    background: var(--neo-bg);
}

.ams-login-card {
    background: var(--neo-bg);
    border: none;
    box-shadow:
        8px 8px 16px var(--neo-dark),
        -8px -8px 16px var(--neo-light);
    border-radius: var(--neo-radius);
    padding: 2.5rem;
}

.neo-logo-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--neo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 4px 4px 8px var(--neo-dark),
        inset -4px -4px 8px var(--neo-light);
    padding: 6px;
}

.neo-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.neo-title {
    color: var(--ams-primary);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 0.25rem;
}

.neo-subtitle {
    color: #6c757d;
    font-size: 0.78rem;
    text-align: center;
    margin: 0;
}

.neo-label {
    display: block;
    font-weight: 700;
    font-size: 0.74rem;
    color: var(--ams-primary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.neo-input-wrap {
    display: flex;
    align-items: center;
    background: var(--neo-bg);
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    box-shadow:
        inset 4px 4px 8px var(--neo-dark),
        inset -4px -4px 8px var(--neo-light);
    transition: box-shadow 0.2s ease;
    gap: 0.55rem;
}

.neo-input-wrap:focus-within {
    box-shadow:
        inset 4px 4px 8px var(--neo-dark),
        inset -4px -4px 8px var(--neo-light),
        0 0 0 2px rgba(26, 60, 110, 0.2);
}

.neo-input-wrap.neo-input-error {
    box-shadow:
        inset 4px 4px 8px var(--neo-dark),
        inset -4px -4px 8px var(--neo-light),
        0 0 0 2px rgba(220, 53, 69, 0.45);
}

.neo-input-wrap .neo-icon {
    color: #6c757d;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.neo-input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.95rem;
    color: var(--ams-primary);
    padding: 0;
    min-width: 0;
    box-shadow: none;
}

.neo-input-wrap input::placeholder {
    color: #a0a8b4;
}

.neo-toggle-btn {
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition:
        background 0.15s,
        color 0.15s;
    flex-shrink: 0;
}

.neo-toggle-btn:hover {
    background: rgba(26, 60, 110, 0.08);
    color: var(--ams-primary);
}

.neo-submit-btn {
    width: 100%;
    border: none;
    background: var(--neo-bg);
    color: var(--ams-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    box-shadow:
        6px 6px 12px var(--neo-dark),
        -6px -6px 12px var(--neo-light);
    transition:
        box-shadow 0.2s ease,
        transform 0.1s ease,
        color 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    letter-spacing: 0.02em;
}

.neo-submit-btn:hover:not(:disabled) {
    color: var(--ams-primary-dk);
    box-shadow:
        4px 4px 10px var(--neo-dark),
        -4px -4px 10px var(--neo-light);
}

.neo-submit-btn:active:not(:disabled) {
    box-shadow:
        inset 4px 4px 8px var(--neo-dark),
        inset -4px -4px 8px var(--neo-light);
    transform: translateY(1px);
}

.neo-submit-btn:disabled {
    cursor: not-allowed;
    color: #a0a8b4;
    box-shadow:
        inset 3px 3px 6px var(--neo-dark),
        inset -3px -3px 6px var(--neo-light);
}

.neo-submit-btn i {
    font-size: 1.1rem;
}

.neo-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.06),
        inset -2px -2px 5px rgba(255, 255, 255, 0.7);
}

.neo-alert-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #842029;
}

.neo-alert-success {
    background: rgba(25, 135, 84, 0.12);
    color: #0f5132;
}

.neo-alert i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.neo-footer-text {
    text-align: center;
    color: #8a92a3;
    font-size: 0.74rem;
    margin: 1.5rem 0 0;
}

@media (max-width: 575.98px) {
    .ams-login-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .neo-logo-wrap {
        width: 72px;
        height: 72px;
    }
}. a m s - t a b l e  
 t b o d y  
 t r  
   c u r s o r :   p o i n t e r ;   - w e b k i t - u s e r - s e l e c t :   n o n e ;   u s e r - s e l e c t :   n o n e ;    
 