/* ===============================
   Student panel (scoped styles)
   =============================== */
:root {
    /* Primary Colors */
    --ss-main-color: #00c3cb;
    --ss-main-color-dark: #009aa3;
    --ss-main-color-alt: #00b8c0;
    --ss-main-color-light: rgba(0, 195, 203, 0.1);
    --ss-main-color-lighter: rgba(0, 195, 203, 0.05);
    --ss-main-color-lighter-2: rgba(0, 195, 203, 0.08);
    --ss-main-color-hover: rgba(0, 195, 203, 0.12);
    --ss-main-color-shadow: rgba(0, 195, 203, 0.15);
    --ss-main-color-border: rgba(0, 195, 203, 0.2);
    --ss-main-color-glow: rgba(0, 195, 203, 0.4);
    --ss-main-color-shadow-25: rgba(0, 195, 203, 0.25);
    --ss-main-color-shadow-35: rgba(0, 195, 203, 0.35);
    --ss-main-color-shadow-3: rgba(0, 195, 203, 0.3);

    /* Text Colors */
    --ss-text: #111827;
    --ss-text-secondary: #6b7280;
    --ss-text-muted: #9ca3af;
    --ss-text-light: #d1d5db;
    --ss-text-heading: #374151;
    --ss-text-body: #4b5563;

    /* Background Colors */
    --ss-white: #ffffff;
    --ss-bg-light: #f0f9fa;
    --ss-bg-lighter: #f5f7fa;
    --ss-bg-lightest: #f9fafb;
    --ss-bg-table: #f8fafc;

    /* Border Colors */
    --ss-border: #e5e7eb;
    --ss-border-light: #dee3ea;
    --ss-border-table: #e9ecef;
    --ss-border-header: #f3f4f6;

    /* Shadows - Dark Colors */
    --ss-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --ss-shadow-light: rgba(0, 0, 0, 0.06);
    --ss-shadow-lighter: rgba(0, 0, 0, 0.05);
    --ss-shadow-dark: 0 8px 16px rgba(0, 0, 0, 0.2);
    --ss-overlay-dark: rgba(0, 0, 0, 0.35);
    --ss-shadow-08: rgba(0, 0, 0, 0.08);
    --ss-shadow-04: rgba(0, 0, 0, 0.04);
    --ss-shadow-2: 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Secondary Colors - Blue */
    --ss-blue: #0d6efd;
    --ss-blue-light: rgba(13, 110, 253, 0.12);
    --ss-blue-lighter: rgba(13, 110, 253, 0.1);
    --ss-blue-border: rgba(13, 110, 253, 0.15);

    /* Status Colors */
    --success-green: #10b981;
    --success-green-light: #d1fae5;
    --success-green-dark: #065f46;
    --success-green-border: rgba(16, 185, 129, 0.2);

    --warning-orange: #f59e0b;
    --warning-orange-light: #fef08a;
    --warning-orange-dark: #78350f;
    --warning-orange-border: rgba(245, 158, 11, 0.2);

    --danger-red: #ef4444;
    --danger-red-light: #fee2e2;
    --danger-red-dark: #7f1d1d;
    --danger-red-border: rgba(239, 68, 68, 0.2);

    /* White Opacity Colors */
    --ss-white-10: rgba(255, 255, 255, 0.1);
    --ss-white-15: rgba(255, 255, 255, 0.15);
    --ss-white-18: rgba(255, 255, 255, 0.18);
    --ss-white-25: rgba(255, 255, 255, 0.25);
    --ss-white-3: rgba(255, 255, 255, 0.3);
    --ss-white-4: rgba(255, 255, 255, 0.4);
    --ss-white-85: rgba(255, 255, 255, 0.85);
    --ss-white-9: rgba(255, 255, 255, 0.9);

    /* Utility Colors */
    --ss-slate-dark: #0f172a;
    --ss-gray-50: #f9f5f0;
    --ss-gray-100: #f3f4f6;
    --ss-gray-200: #e5e7eb;

    /* Transitions */
    --ss-transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ss-transition-standard: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Deprecated (Kept for backward compatibility) */
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-border: #e5e7eb;
    --text-dark: #1f2937;
}

/* Card & nav look */
.student-shell .student-sidebar {
    border: 1px solid var(--ss-main-color-light);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ss-white);
    box-shadow: 0 4px 16px var(--ss-shadow-light);
    transition: var(--ss-transition-standard);
}

.student-shell .student-sidebar:hover {
    box-shadow: 0 12px 32px var(--ss-main-color-hover);
    border-color: var(--ss-main-color-border);
}

.student-shell .student-brand {
    font-weight: 800;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--ss-main-color-light);
    position: relative;
    padding: 1.75rem;
    padding-top: max(env(safe-area-inset-top, 0px), 1.75rem);
    font-size: 1.2rem;
    color: var(--ss-text);
    background: linear-gradient(135deg, var(--ss-white) 0%, var(--ss-bg-light) 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-shell .student-brand::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--ss-main-color);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--ss-main-color-glow);
}

.student-shell .student-brand .close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    opacity: 0.5;
    color: var(--ss-text);
    transition: var(--ss-transition-smooth);
    font-size: 1.5rem;
}

.student-shell .student-brand .close:hover,
.student-shell .student-brand .close:focus-visible {
    opacity: 1;
    background: var(--ss-main-color-light);
    color: var(--ss-main-color);
    transform: scale(1.1);
}

.student-shell .student-nav {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.student-shell .student-nav .nav-link {
    color: var(--ss-text-secondary);
    padding: 1.1rem 1.25rem;
    border-left: 4px solid transparent;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--ss-transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-shell .student-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ss-main-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-shell .student-nav .nav-link:hover,
.student-shell .student-nav .nav-link.active,
.student-shell .student-nav .nav-link[aria-current="page"] {
    border-left-color: transparent;
}

.student-shell .student-nav .nav-link:hover::before,
.student-shell .student-nav .nav-link.active::before {
    transform: scaleY(1);
}

.student-shell .card-stat {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 8px 20px var(--ss-shadow-light);
}

.student-shell .card-stat .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ss-blue-light);
    color: var(--ss-blue);
}

.student-shell .table-clean th {
    border-top: 0;
    border-bottom: 1px solid var(--ss-border-table);
}

.student-shell .badge-soft {
    background: var(--ss-blue-lighter);
    color: var(--ss-blue);
    border: 1px solid var(--ss-blue-border);
}

/* Backdrop (off-canvas helper) */
.student-sidebar-backdrop {
    display: none; /* hidden on desktop */
}

.exam-sheet-table td,
.exam-sheet-table th {
    font-size: 14px;
    padding: 10px 7px;
}

/* ===============================
   Auth/Login & OTP Styles
   =============================== */
.auth-hero {
    position: relative;
    min-height: 280px;
}

.auth-hero .page-title {
    padding: 3.5rem 0 2.25rem;
}

.auth-card {
    margin-top: -80px;
}

.card-auth {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 18px 40px var(--ss-shadow-lighter);
}

.card-auth .card-body {
    padding: 2rem;
}

.brand-strip {
    height: 5px;
    background: linear-gradient(90deg, var(--ss-main-color), var(--ss-white));
    border-radius: 1rem 1rem 0 0;
}

.auth-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.auth-sub {
    color: var(--ss-text-secondary);
    font-size: 0.955rem;
}

.input-icon {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ss-white);
    background: var(--ss-main-color);
    border: 1px solid var(--ss-border);
    border-right: 0;
    border-radius: 0.5rem 0 0 0.5rem;
}

.form-control.input-with-icon {
    border-left: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.form-control:focus {
    border-color: var(--ss-main-color);
    box-shadow: none;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--ss-text-secondary);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--ss-border);
}

.divider::before {
    left: 0;
}
.divider::after {
    right: 0;
}

.btn-auth {
    height: 48px;
    font-weight: 600;
    border-radius: 0.65rem;
}

.card-auth .alert {
    padding: 0.5rem;
    font-size: 12px;
    border-radius: 2px;
    border: 0;
}

.auth-links a {
    color: var(--ss-main-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.otp-box {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 1.25rem;
    border: 1.6px solid var(--ss-border-light);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.otp-box:focus {
    border-color: var(--ss-main-color);
    box-shadow: 0 0 0 2px var(--ss-main-color-light);
    outline: none;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.resend-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* ===============================
   Payment Hsitroy Styles
   =============================== */
.payment-history-section {
    background: linear-gradient(135deg, var(--ss-bg-lighter) 0%, var(--ss-bg-lighter) 100%);
    padding: 2rem 0;
    min-height: 100vh;
}

/* Modern Header */
.payment-header-modern {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 50px var(--ss-main-color-shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.payment-header-modern::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--ss-white-10) 0%, transparent 100%);
    border-radius: 50%;
}

.payment-header-modern .header-content {
    position: relative;
    z-index: 2;
}

.payment-header-modern h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-header-modern h2 i {
    font-size: 1.8rem;
}

.payment-header-modern p {
    color: var(--ss-white-85);
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.payment-header-modern .header-icon {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    color: var(--ss-white-15);
    opacity: 0.6;
}

/* Modern Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--ss-shadow-lighter);
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--ss-main-color-shadow);
}

.stat-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--card-color) 0%, var(--card-color) 100%);
    opacity: 0.08;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon-modern {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-25);
}

.stat-info h5 {
    font-weight: 600;
    color: var(--ss-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ss-text);
    margin: 0;
    line-height: 1;
}

/* Modern Controls */
.payment-controls-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.search-box-modern {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-modern i {
    position: absolute;
    left: 1.25rem;
    color: var(--ss-text-muted);
    pointer-events: none;
}

.search-box-modern input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: var(--ss-text);
}

.search-box-modern input::placeholder {
    color: var(--ss-text-muted);
}

.search-box-modern input:focus {
    outline: none;
    border-color: var(--ss-main-color);
    box-shadow: 0 0 0 3px var(--ss-main-color-light);
}

.filter-group {
    min-width: 200px;
}

.filter-select-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    color: var(--ss-text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300C3CB' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.filter-select-modern:hover {
    border-color: var(--ss-main-color);
}

.filter-select-modern:focus {
    outline: none;
    border-color: var(--ss-main-color);
    box-shadow: 0 0 0 3px var(--ss-main-color-light);
}

.export-btn-modern {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px var(--ss-main-color-shadow-25);
    white-space: nowrap;
}

.export-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-35);
}

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

.export-btn-modern.loading {
    opacity: 0.8;
    pointer-events: none;
}

.export-btn-modern.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modern Table Styles */
.payment-table-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--ss-shadow-08);
    border: 1px solid var(--ss-shadow-lighter);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modern-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.modern-table thead {
    background: linear-gradient(135deg, var(--ss-border-header) 0%, var(--ss-border) 100%);
    border-bottom: 2px solid var(--ss-border);
}

.modern-table thead th {
    padding: 1.25rem;
    text-align: left;
    color: var(--ss-text-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: linear-gradient(135deg, var(--ss-border-header) 0%, #e5e7eb 100%);
}

.modern-table tbody td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--ss-border);
    color: var(--ss-text-body);
    font-weight: 500;
    font-size: 0.95rem;
}

.table-row-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.table-row-modern::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-row-modern:hover {
    background-color: var(--ss-bg-table);
    box-shadow: inset 0 0 12px var(--ss-main-color-light);
}

.table-row-modern:hover::before {
    opacity: 1;
}

.transaction-id-modern {
    color: var(--ss-main-color);
    font-weight: 700;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.fee-type-badge {
    background: var(--ss-main-color-light);
    color: var(--ss-main-color-dark);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid var(--ss-main-color-border);
}

.date-text {
    color: var(--ss-text-secondary);
    font-size: 0.9rem;
}

.amount-modern {
    color: var(--success-green);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.status-completed {
    background: linear-gradient(135deg, var(--success-green-light) 0%, var(--success-green-light) 100%);
    color: var(--success-green-dark);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pending {
    background: linear-gradient(135deg, var(--warning-orange-light) 0%, var(--warning-orange-light) 100%);
    color: var(--warning-orange-dark);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.receipt-btn-modern {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
    color: white;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--ss-main-color-border);
}

.receipt-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-3);
}

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

.receipt-btn-modern.downloading {
    opacity: 0.8;
    pointer-events: none;
}

.receipt-btn-modern.downloading i {
    animation: spin 1.2s linear infinite;
}

/* Modern Empty State */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--ss-main-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-state-modern h4 {
    color: var(--ss-text);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state-modern p {
    color: var(--ss-text-secondary);
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.btn-modern-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--ss-main-color-shadow-25);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-35);
    text-decoration: none;
    color: white;
}

/* Modern Pagination */
.pagination-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ss-border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pagination-info {
    color: var(--ss-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.pagination-info strong {
    color: var(--ss-text);
    font-weight: 700;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    transition: all 0.3s ease;
}

.page-link {
    color: var(--ss-main-color);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--ss-main-color-shadow-25);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--ss-main-color-shadow-3);
}

.page-item.disabled .page-link {
    color: var(--ss-text-muted);
    border-color: var(--ss-border);
    background: var(--ss-border-header);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .payment-header-modern {
        padding: 2rem;
        flex-direction: column;
    }

    .payment-header-modern .header-icon {
        position: absolute;
        right: 1.5rem;
        top: 1.5rem;
        font-size: 2.5rem;
    }

    .payment-controls-modern {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        flex-direction: column;
        min-width: unset;
    }

    .search-box-modern,
    .filter-group,
    .export-btn-modern {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .payment-history-section {
        padding: 1.5rem 0;
    }

    .payment-header-modern {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 14px;
    }

    .payment-header-modern h2 {
        font-size: 1.4rem;
        gap: 8px;
    }

    .payment-header-modern h2 i {
        font-size: 1.4rem;
    }

    .payment-header-modern p {
        font-size: 0.9rem;
    }

    .stat-card-modern {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .stat-card-modern:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px var(--ss-main-color-hover);
    }

    .stat-icon-modern {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        border-radius: 12px;
    }

    .stat-card-content {
        gap: 0.8rem;
    }

    .stat-info h5 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .stat-value {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .modern-table {
        border-radius: 12px;
    }

    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .transaction-id-modern {
        font-size: 0.8rem;
    }

    .amount-modern {
        font-size: 0.9rem;
    }

    .status-badge {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
    }

    .receipt-btn-modern {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .receipt-btn-modern:hover {
        transform: scale(1.05);
    }

    .pagination-modern {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .payment-header-modern {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-radius: 12px;
    }

    .payment-header-modern h2 {
        font-size: 1.2rem;
        gap: 6px;
    }

    .payment-header-modern h2 i {
        font-size: 1.2rem;
    }

    .payment-header-modern p {
        font-size: 0.85rem;
    }

    .payment-header-modern .header-icon {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .stat-card-modern {
        padding: 1rem;
        border-radius: 12px;
    }

    .stat-card-modern:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px var(--ss-main-color-light);
    }

    .stat-icon-modern {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        border-radius: 10px;
    }

    .stat-card-content {
        gap: 0.75rem;
    }

    .stat-info {
        gap: 0.3rem;
    }

    .stat-info h5 {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .stat-value {
        font-size: 1.4rem;
        font-weight: 600;
    }

    .search-box-modern input {
        padding: 0.75rem 0.875rem 0.75rem 2.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .search-box-modern i {
        left: 0.875rem;
        font-size: 1rem;
    }

    .filter-select-modern {
        padding: 0.75rem 2.25rem 0.75rem 0.875rem;
        font-size: 0.9rem;
        width: 100%;
        border-radius: 10px;
    }

    .export-btn-modern {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        border-radius: 10px;
    }

    .modern-table {
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .modern-table thead {
        display: none;
    }

    .modern-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        border: 1px solid var(--ss-main-color-light);
        border-radius: 10px;
        background: white;
        box-shadow: var(--ss-shadow-2);
    }

    .modern-table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        position: relative;
        padding-left: 50%;
        font-size: 0.75rem;
    }

    .modern-table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        font-weight: 600;
        color: var(--ss-main-color);
        font-size: 0.7rem;
        text-align: left;
    }

    .transaction-id-modern {
        font-size: 0.75rem;
    }

    .amount-modern {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .status-badge {
        display: inline-block;
        padding: 0.4rem 0.625rem;
        font-size: 0.7rem;
    }

    .receipt-btn-modern {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 6px;
    }

    .empty-state-modern {
        padding: 2rem 1rem;
        border-radius: 12px;
    }

    .empty-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .empty-state-modern h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .empty-state-modern p {
        font-size: 0.85rem;
    }

    .pagination-modern {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .pagination-info {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .payment-header-modern {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .payment-header-modern h2 {
        font-size: 1.1rem;
    }

    .payment-header-modern .header-icon {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

    .modern-table tbody tr {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }

    .modern-table tbody td {
        padding: 0.4rem 0;
    }

    .modern-table tbody td::before {
        font-size: 0.65rem;
    }

    .amount-modern {
        font-size: 0.8rem;
    }

    .receipt-btn-modern {
        padding: 0.35rem 0.45rem;
        font-size: 0.65rem;
    }
}

/* ===============================
   Attendence Styles
   =============================== */
/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ==========================================
   ATTENDANCE HEADER
   ========================================== */
.attendance-header-modern {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-alt) 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 20px var(--ss-main-color-border);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.attendance-header-modern::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--ss-white-10) 0%, transparent 70%);
    border-radius: 50%;
}

.attendance-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.attendance-header-info h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.attendance-header-info p {
    font-size: 1rem;
    color: var(--ss-white-9);
    margin: 0;
    font-weight: 500;
}

.attendance-stats-mini {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.attendance-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.attendance-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.attendance-stat-value {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* ==========================================
   ATTENDANCE TABLE SECTION
   ========================================== */
.attendance-container {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.attendance-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--ss-shadow-2);
    border: 1.5px solid rgba(0, 195, 203, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 0.5) 100%);
}

.attendance-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--ss-main-color);
    opacity: 0.06;
    border-radius: 50%;
    transform: translate(40px, -40px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.attendance-card:hover {
    box-shadow: 0 12px 32px var(--ss-main-color-hover);
    transform: translateY(-4px);
    border-color: var(--ss-main-color-shadow);
}

.attendance-card:hover::before {
    transform: translate(50px, -50px);
    opacity: 0.1;
}

/* Card Header */
.attendance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-border);
    position: relative;
    z-index: 2;
}

.attendance-card-header h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attendance-card-header i {
    color: var(--ss-main-color);
    font-size: 1.3rem;
}

/* ==========================================
   TABLE STYLING
   ========================================== */
.attendance-table-wrapper {
    overflow-x: auto;
    position: relative;
    z-index: 2;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.attendance-table thead {
    background: var(--ss-main-color-light);
    border-bottom: 2px solid var(--ss-main-color);
}

.attendance-table thead th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 800;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.attendance-table thead th:hover {
    background: var(--ss-main-color-hover);
}

.attendance-table tbody tr {
    border-bottom: 1px solid var(--bg-border);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.attendance-table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}
.attendance-table tbody tr:nth-child(2) {
    animation-delay: 0.15s;
}
.attendance-table tbody tr:nth-child(3) {
    animation-delay: 0.2s;
}
.attendance-table tbody tr:nth-child(4) {
    animation-delay: 0.25s;
}
.attendance-table tbody tr:nth-child(5) {
    animation-delay: 0.3s;
}
.attendance-table tbody tr:nth-child(n + 6) {
    animation-delay: 0.35s;
}

.attendance-table tbody tr:hover {
    background: var(--ss-main-color-light);
}

.attendance-table tbody td {
    padding: 1.25rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.attendance-table tbody td:first-child {
    font-weight: 700;
    color: var(--ss-main-color);
}

/* Time Cells */
.time-cell {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Status Badge */
.attendance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
}

.badge-on-time {
    background: transparent;
    color: var(--ss-main-color);
    border: 1.5px solid var(--ss-main-color);
}

.badge-late {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger-red);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
}

.badge-absent {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning-orange);
    border: 1.5px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================
   PAGINATION STYLING
   ========================================== */
.attendance-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--ss-main-color-light);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pagination-info {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.pagination {
    margin: 0;
    display: flex;
    gap: 0.5rem;
}

.pagination .page-link {
    border: 2px solid var(--bg-border);
    color: var(--text-dark);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.pagination .page-link:hover:not(.disabled) {
    border-color: var(--ss-main-color);
    color: var(--ss-main-color);
    background: var(--ss-main-color-light);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-alt) 100%);
    border-color: var(--ss-main-color);
    color: white;
    box-shadow: 0 4px 12px var(--ss-main-color-shadow-3);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-gray);
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.attendance-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.attendance-empty-state i {
    font-size: 3.5rem;
    color: var(--ss-main-color);
    opacity: 0.3;
    margin-bottom: 1.5rem;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.attendance-empty-state p {
    color: var(--text-gray);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet - 992px */
@media (max-width: 992px) {
    .attendance-header-modern {
        padding: 2rem 1.75rem;
    }

    .attendance-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .attendance-card {
        padding: 1.75rem;
    }

    .attendance-stats-mini {
        gap: 2rem;
        width: 100%;
        flex-wrap: wrap;
    }

    .attendance-table tbody td,
    .attendance-table thead th {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .attendance-header-modern {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .attendance-header-content {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }

    .attendance-header-info h2 {
        font-size: 1.5rem;
    }

    .attendance-card {
        padding: 1.5rem;
    }

    .attendance-card-header h3 {
        font-size: 1.2rem;
    }

    .attendance-table-wrapper {
        overflow-x: auto;
    }

    .attendance-table {
        font-size: 0.85rem;
    }

    .attendance-table tbody td,
    .attendance-table thead th {
        padding: 0.9rem 1rem;
    }

    .attendance-badge {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    .attendance-pagination-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination {
        justify-content: center;
        width: 100%;
    }
}

/* Small Mobile - 576px */
@media (max-width: 576px) {
    .attendance-header-modern {
        padding: 1.5rem 1rem;
        margin-bottom: 1.25rem;
    }

    .attendance-header-modern::before {
        width: 250px;
        height: 250px;
    }

    .attendance-header-info h2 {
        font-size: 1.25rem;
    }

    .attendance-header-info p {
        font-size: 0.9rem;
    }

    .attendance-stats-mini {
        gap: 1.5rem;
        flex-direction: column;
    }

    .attendance-card {
        padding: 1.25rem;
    }

    .attendance-card-header {
        margin-bottom: 1.5rem;
    }

    .attendance-card-header h3 {
        font-size: 1rem;
    }

    .attendance-table {
        font-size: 0.8rem;
    }

    .attendance-table tbody td,
    .attendance-table thead th {
        padding: 0.75rem 0.75rem;
    }

    .attendance-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .attendance-pagination-wrapper {
        padding: 1rem;
        gap: 1rem;
    }

    .pagination-info {
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
    .attendance-header-modern {
        padding: 1.25rem 0.75rem;
    }

    .attendance-card {
        padding: 1rem;
    }

    .attendance-table-wrapper {
        margin: 0 -1rem;
        padding: 0 0.5rem;
    }

    .attendance-table tbody td,
    .attendance-table thead th {
        padding: 0.65rem 0.5rem;
        font-size: 0.75rem;
    }

    .attendance-stat-value {
        font-size: 1.4rem;
    }
}
/* ===============================
   Profile Styles
   =============================== */
/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   PROFILE HEADER
   ========================================== */
.profile-header-modern {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px var(--ss-main-color-border);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-header-modern::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--ss-white-10) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.profile-header-modern .header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: var(--ss-white-15);
    border: 3px solid var(--ss-white-4);
    backdrop-filter: blur(15px);
    flex-shrink: 0;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-avatar-wrapper:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.25),
        inset 0 0 20px var(--ss-white-4);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 13px;
    object-fit: cover;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ss-white-10);
    transition: all 0.3s ease;
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.profile-info p {
    font-size: 1.05rem;
    color: var(--ss-white-9);
    margin: 0.25rem 0;
    font-weight: 500;
}

.profile-info-mini {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
}

.profile-info-item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.profile-info-item-value {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* ==========================================
   PROFILE FORM SECTION
   ========================================== */
.profile-form-container {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-form-card {
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--ss-shadow-2);
    border: 1.5px solid rgba(0, 195, 203, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 0.5) 100%);
}

.profile-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--ss-main-color);
    opacity: 0.06;
    border-radius: 50%;
    transform: translate(40px, -40px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-form-card:hover {
    box-shadow: 0 12px 32px var(--ss-main-color-hover);
    transform: translateY(-4px);
    border-color: var(--ss-main-color-shadow);
}

.profile-form-card:hover::before {
    transform: translate(50px, -50px);
    opacity: 0.1;
}

/* Form Group Styling */
.profile-form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.profile-form-group:nth-child(1) {
    animation-delay: 0.1s;
}
.profile-form-group:nth-child(2) {
    animation-delay: 0.15s;
}
.profile-form-group:nth-child(3) {
    animation-delay: 0.2s;
}
.profile-form-group:nth-child(4) {
    animation-delay: 0.25s;
}
.profile-form-group:nth-child(5) {
    animation-delay: 0.3s;
}
.profile-form-group:nth-child(n + 6) {
    animation-delay: 0.35s;
}

.profile-form-group label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.profile-form-group input,
.profile-form-group textarea,
.profile-form-group select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--bg-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--bg-light);
    color: var(--text-dark);
    position: relative;
}

.profile-form-group input::placeholder,
.profile-form-group textarea::placeholder {
    color: var(--text-gray);
    font-weight: 500;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus,
.profile-form-group select:focus {
    outline: none;
    border-color: var(--ss-main-color);
    box-shadow:
        0 0 0 4px var(--ss-main-color-shadow),
        inset 0 0 0 1px var(--ss-main-color-border);
    background: white;
    transform: translateY(-1px);
}

.profile-form-group input:hover:not(:focus),
.profile-form-group textarea:hover:not(:focus),
.profile-form-group select:hover:not(:focus) {
    border-color: var(--ss-main-color-glow);
    background: var(--ss-main-color-lighter);
}

.profile-form-group input:disabled,
.profile-form-group textarea:disabled,
.profile-form-group select:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.6;
    color: var(--text-gray);
}

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

/* Form Row */
.profile-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-form-row.half {
    grid-template-columns: repeat(2, 1fr);
}

.profile-form-row.third {
    grid-template-columns: repeat(3, 1fr);
}

/* Button Styling */
.profile-btn-container {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
    justify-content: flex-start;
}

.profile-btn {
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.profile-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ss-white-15);
    transition: left 0.4s ease;
    z-index: -1;
}

.profile-btn:hover::before {
    left: 100%;
}

.profile-btn-primary {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-alt) 100%);
    color: white;
    box-shadow: 0 8px 16px var(--ss-main-color-shadow-3);
}

.profile-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px var(--ss-main-color-shadow-35);
    background: linear-gradient(135deg, var(--ss-main-color-alt) 0%, var(--ss-main-color) 100%);
}

.profile-btn-primary:active {
    transform: translateY(-1px);
}

.profile-btn-secondary {
    background: white;
    color: var(--ss-main-color);
    border: 2px solid var(--ss-main-color);
    box-shadow: 0 4px 12px var(--ss-main-color-shadow);
}

.profile-btn-secondary:hover {
    background: var(--ss-main-color-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--ss-main-color-border);
}

.profile-btn-secondary:active {
    transform: translateY(-1px);
}

/* ==========================================
   FORM SECTIONS
   ========================================== */
.profile-section-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-border);
    position: relative;
    z-index: 2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.profile-section-title::before {
    content: "";
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, var(--ss-main-color) 0%, var(--ss-main-color-glow) 100%);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-section-title:hover::before {
    height: 32px;
    box-shadow: 0 0 10px var(--ss-main-color-shadow-3);
}

/* ==========================================
   INFO BOX
   ========================================== */
.profile-info-box {
    background: linear-gradient(135deg, var(--ss-main-color-light) 0%, rgba(0, 195, 203, 0.04) 100%);
    border-left: 4px solid var(--ss-main-color);
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid var(--ss-main-color-light);
}

.profile-info-box:hover {
    border-color: var(--ss-main-color-border);
    box-shadow: 0 4px 12px rgba(0, 195, 203, 0.08);
    transform: translateX(2px);
}

.profile-info-box-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.profile-info-box-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet - 992px */
@media (max-width: 992px) {
    .profile-header-modern {
        padding: 2.5rem 1.75rem;
    }

    .profile-header-modern .header-content {
        gap: 1.5rem;
    }

    .profile-avatar-wrapper {
        width: 100px;
        height: 100px;
    }

    .profile-info h1 {
        font-size: 1.75rem;
    }

    .profile-form-card {
        padding: 1.75rem;
    }

    .profile-form-row {
        gap: 1.25rem;
    }

    .profile-form-row.half {
        grid-template-columns: 1fr;
    }

    .profile-form-row.third {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .profile-header-modern {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .profile-header-modern .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar-wrapper {
        width: 90px;
        height: 90px;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }

    .profile-info-mini {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-form-card {
        padding: 1.5rem;
    }

    .profile-form-row {
        gap: 1rem;
    }

    .profile-form-row.third {
        grid-template-columns: 1fr;
    }

    .profile-btn-container {
        flex-direction: column;
    }

    .profile-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile - 576px */
@media (max-width: 576px) {
    .profile-header-modern {
        padding: 1.5rem 1rem;
        margin-bottom: 1.25rem;
    }

    .profile-header-modern::before {
        width: 250px;
        height: 250px;
    }

    .profile-avatar-wrapper {
        width: 80px;
        height: 80px;
    }

    .profile-info h1 {
        font-size: 1.25rem;
    }

    .profile-info p {
        font-size: 0.9rem;
    }

    .profile-form-card {
        padding: 1.25rem;
    }

    .profile-form-group {
        margin-bottom: 1.25rem;
    }

    .profile-form-row {
        gap: 0.75rem;
    }

    .profile-section-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .profile-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
/* ===============================
   Dashboard Styles
   =============================== */
   .dashboard-section-modern {
  background: linear-gradient(135deg, var(--ss-bg-lighter) 0%, var(--ss-bg-lighter) 100%);
  padding: 2rem 0;
  min-height: 100vh;
}

/* Welcome Header */
.dashboard-welcome-modern {
  background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
  padding: 2.5rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--ss-main-color-shadow);
  animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dashboard-welcome-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--ss-white-10) 0%, transparent 100%);
  border-radius: 50%;
}

.welcome-content {
  position: relative;
  z-index: 2;
}

.welcome-content h2 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome-content p {
  color: var(--ss-white-85);
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.welcome-icon {
  position: relative;
  z-index: 2;
  font-size: 3.5rem;
  color: var(--ss-white-15);
  opacity: 0.6;
}

/* Modern Dashboard Stats Grid */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.dashboard-stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--ss-shadow-lighter);
}

.dashboard-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--ss-main-color-shadow);
}

.stat-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--card-color) 0%, var(--card-color) 100%);
  opacity: 0.08;
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.stat-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon-modern {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 20px var(--ss-main-color-shadow-25);
}

.stat-details h5 {
  font-weight: 600;
  color: var(--ss-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.stat-big-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ss-text);
  margin: 0;
  line-height: 1;
}

/* Late Attendance Table */
.late-attendance-modern {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--ss-shadow-08);
  border: 1px solid var(--ss-shadow-lighter);
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

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

.table-header-modern {
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ss-border-header);
  background: linear-gradient(135deg, var(--ss-bg-table) 0%, var(--ss-bg-lightest) 100%);
}

.heading-title {
  font-weight: 700;
  color: var(--ss-text);
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  align-items: center;
}

.heading-title i {
  color: var(--ss-main-color);
}

.view-all-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px var(--ss-main-color-shadow-25);
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--ss-main-color-shadow-35);
  color: white;
  text-decoration: none;
}

.table-responsive-modern {
  overflow-x: auto;
}

.modern-table-dashboard {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.modern-table-dashboard thead {
  background: linear-gradient(135deg, var(--ss-border-header) 0%, #e5e7eb 100%);
  border-bottom: 2px solid #e5e7eb;
}

.modern-table-dashboard thead th {
  padding: 1.25rem 1.75rem;
  text-align: left;
  color: var(--ss-text-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, var(--ss-border-header) 0%, #e5e7eb 100%);
}

.modern-table-dashboard tbody td {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e5e7eb;
  color: var(--ss-text-body);
  font-weight: 500;
  font-size: 0.95rem;
}

.dashboard-table-row {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dashboard-table-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-table-row:hover {
  background-color: var(--ss-bg-table);
  box-shadow: inset 0 0 12px var(--ss-main-color-light);
}

.dashboard-table-row:hover::before {
  opacity: 1;
}

.date-badge {
  background: linear-gradient(135deg, var(--ss-border-header) 0%, #e5e7eb 100%);
  color: var(--ss-text);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
  border: 1px solid var(--ss-shadow-lighter);
}

.time-text {
  color: var(--ss-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.late-badge {
  background: linear-gradient(135deg, var(--danger-red-light) 0%, var(--danger-red-light) 100%);
  color: var(--danger-red-dark);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Empty State */
.empty-state-dashboard {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 4rem;
  color: var(--ss-main-color);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.empty-state-dashboard h4 {
  color: var(--ss-text);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.empty-state-dashboard p {
  color: var(--ss-text-secondary);
  margin: 0;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 992px) {
  .dashboard-welcome-modern {
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
  }

  .dashboard-welcome-modern .welcome-icon {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2.5rem;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.25rem;
  }

  .dashboard-stat-card {
    padding: 1.5rem;
  }

  .stat-inner {
    gap: 1rem;
  }

  .stat-big-value {
    font-size: 2rem;
  }

  .table-header-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .view-all-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .dashboard-section-modern {
    padding: 1.5rem 0;
  }

  .dashboard-welcome-modern {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
  }

  .welcome-content h2 {
    font-size: 1.4rem;
    gap: 8px;
  }

  .welcome-content h2 i {
    font-size: 1.4rem;
  }

  .welcome-content p {
    font-size: 0.9rem;
  }

  .welcome-icon {
    font-size: 2.5rem;
  }



  .dashboard-stat-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .dashboard-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px var(--ss-main-color-hover);
  }

  .stat-icon-modern {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
    border-radius: 12px;
  }

  .stat-inner {
    gap: 0.8rem;
  }

  .stat-details h5 {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .stat-big-value {
    font-size: 1.8rem;
    font-weight: 600;
  }

  .late-attendance-modern {
    border-radius: 14px;
  }

  .modern-table-dashboard thead th,
  .modern-table-dashboard tbody td {
    padding: 0.875rem;
    font-size: 0.85rem;
  }

  .table-header-modern {
    padding: 1.25rem;
  }

  .heading-title {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .heading-title i {
    font-size: 1.2rem;
  }

  .view-all-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .view-all-btn:hover {
    transform: translateY(-2px);
  }

  .date-badge,
  .time-text,
  .late-badge {
    display: block;
    word-break: break-word;
  }
   .dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 576px) {
  .dashboard-welcome-modern {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }

  .dashboard-welcome-modern h2 {
    font-size: 1.2rem;
    gap: 6px;
  }

  .dashboard-welcome-modern h2 i {
    font-size: 1.2rem;
  }

  .welcome-content p {
    font-size: 0.85rem;
  }

  .welcome-icon {
    font-size: 2rem;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .dashboard-stat-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--ss-main-color-light);
  }

  .stat-icon-modern {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    border-radius: 10px;
  }

  .stat-inner {
    gap: 0.75rem;
    padding: 1rem;
  }

  .stat-details {
    gap: 0.3rem;
  }

  .stat-details h5 {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  .stat-big-value {
    font-size: 1.4rem;
    font-weight: 600;
  }

  .late-attendance-modern {
    border-radius: 12px;
    margin-top: 1rem;
  }

  .table-header-modern {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .heading-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .view-all-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
    justify-content: center;
  }

  .modern-table-dashboard {
    font-size: 0.75rem;
  }

  .modern-table-dashboard thead th,
  .modern-table-dashboard tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .date-badge {
    font-size: 0.7rem;
    padding: 0.375rem 0.625rem;
    display: inline-block;
  }

  .late-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
  }

  .late-badge i {
    font-size: 0.65rem;
  }

  .time-text {
    font-size: 0.75rem;
  }

  .empty-state-dashboard {
    padding: 2rem 1rem;
    border-radius: 12px;
  }

  .empty-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }

  .empty-state-dashboard h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .empty-state-dashboard p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .dashboard-welcome-modern {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .dashboard-welcome-modern h2 {
    font-size: 1.1rem;
  }

  .welcome-icon {
    display: none;
  }

  .stat-icon-modern {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .stat-big-value {
    font-size: 1.3rem;
  }

  .modern-table-dashboard thead {
    display: none;
  }

  .modern-table-dashboard tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--ss-main-color-light);
    border-radius: 10px;
    background: white;
  }

  .modern-table-dashboard tbody td {
    display: block;
    text-align: right;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 50%;
  }

  .modern-table-dashboard tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--ss-main-color);
    font-size: 0.7rem;
  }
}
/* ===============================
   Exam Mark styles
   =============================== */
   /* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ==========================================
   HEADER SECTION - MODERN GRADIENT
   ========================================== */
.exam-header-modern {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color) 100%);
    color: white;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px var(--ss-main-color-border);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exam-header-modern::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--ss-white-10) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.exam-header-modern .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    gap: 1.5rem;
}

.exam-header-modern .header-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: white;
    letter-spacing: -0.5px;
}

.exam-header-modern .header-title p {
    font-size: 0.95rem;
    color: var(--ss-white-9);
    margin-bottom: 0;
    font-weight: 500;
}

.exam-header-modern .header-icon {
    font-size: 3rem;
    opacity: 0.12;
    position: relative;
    z-index: 0;
    flex-shrink: 0;
}

.exam-header-modern .gpa-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.exam-header-modern .student-info-item {
    display: flex;
    flex-direction: column;
}

.exam-header-modern .student-info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.exam-header-modern .student-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.exam-header-modern .gpa-highlight {
    background: var(--ss-white-10);
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 0.8rem 1.25rem;
    border-radius: 14px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.exam-header-modern .gpa-highlight:hover {
    background: var(--ss-white-18);
    border-color: var(--ss-white-4);
    transform: translateY(-2px);
}

.exam-header-modern .gpa-highlight .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    opacity: 0.9;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.exam-header-modern .gpa-highlight .value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.15rem;
    letter-spacing: -0.8px;
}

.exam-header-modern .gpa-highlight .max {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ==========================================
   STAT CARDS - MODERN DESIGN
   ========================================== */
.exam-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.stat-card-exam {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--ss-shadow-lighter);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 120px;
}

.stat-card-exam::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--ss-main-color);
    opacity: 0.08;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card-exam::after {
    display: none;
}

.stat-card-exam:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--ss-main-color-shadow);
}

.stat-card-exam .stat-icon-exam {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color) 100%);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-25);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.stat-card-exam:hover .stat-icon-exam {
    transform: scale(1.08) rotate(3deg);
}

.stat-card-info {
    position: relative;
    z-index: 2;
    flex: 1;
}

.stat-card-exam .stat-label {
    text-transform: capitalize;
    letter-spacing: 0.5px;
    display: block;
}

.stat-card-exam .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ss-slate-dark);
    margin: 0;
    line-height: 1.2;
    display: block;
    letter-spacing: -0.5px;
}

/* Icon color variants */
.stat-card-exam.subjects .stat-icon-exam {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color) 100%);
    color: white;
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-25);
}

.stat-card-exam.passed .stat-icon-exam {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color) 100%);
    color: white;
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-25);
}

.stat-card-exam.borderline .stat-icon-exam {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color) 100%);
    color: white;
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-25);
}

.stat-card-exam.failed .stat-icon-exam {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color) 100%);
    color: white;
    box-shadow: 0 8px 20px var(--ss-main-color-shadow-25);
}

/* ==========================================
   MARKS TABLE - MODERN
   ========================================== */
.marks-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--ss-shadow-lighter);
    margin-bottom: 2rem;
    border: 2px solid var(--bg-border);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.marks-table-container .table-header {
    background: linear-gradient(135deg, rgba(0, 195, 203, 0.08) 0%, rgba(0, 154, 163, 0.06) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--bg-border);
}

.marks-table-container .table-header h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

.marks-table-container table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.marks-table-container thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--bg-border);
}

.marks-table-container thead th {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border: none;
    text-align: left;
}

.marks-table-container tbody tr {
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.marks-table-container tbody tr:hover {
    background-color: var(--bg-light);
    box-shadow: inset 3px 0 0 var(--ss-main-color);
}

.marks-table-container tbody td {
    padding: 0.85rem 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    border: none;
    font-weight: 500;
}

.marks-table-container .badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.marks-table-container .badge-success {
    background: transparent;
    color: var(--ss-main-color);
    border: 1px solid var(--ss-main-color);
}

.marks-table-container .badge-warning {
    background: var(--ss-main-color-hover);
    color: var(--ss-main-color);
    border: 1px solid var(--ss-main-color-shadow-3);
}

.marks-table-container .badge-danger {
    background: var(--ss-main-color-hover);
    color: var(--ss-main-color);
    border: 1px solid var(--ss-main-color-shadow-3);
}

.marks-table-container tfoot {
    background: linear-gradient(135deg, rgba(0, 195, 203, 0.06) 0%, rgba(0, 154, 163, 0.04) 100%);
    border-top: 2px solid var(--bg-border);
}

.marks-table-container tfoot td {
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ==========================================
   GRADING SYSTEM & PERFORMANCE
   ========================================== */
.grading-performance-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grading-card,
.performance-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--ss-shadow-lighter);
    border: 2px solid var(--bg-border);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.grading-card:hover,
.performance-card:hover {
    box-shadow: 0 8px 24px var(--ss-main-color-hover);
    border-color: var(--ss-main-color-light);
    transform: translateY(-4px);
}

.grading-card .card-header,
.performance-card .card-header {
    background: linear-gradient(135deg, rgba(0, 195, 203, 0.08) 0%, rgba(0, 154, 163, 0.06) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--bg-border);
}

.grading-card .card-header h6,
.performance-card .card-header h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

.grading-card .card-body,
.performance-card .card-body {
    padding: 1.25rem 1.5rem;
}

/* Grading Table */
.grading-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.grading-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--bg-border);
}

.grading-table thead th {
    padding: 0.65rem 0.9rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
    text-align: left;
}

.grading-table tbody tr {
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grading-table tbody tr:hover {
    background-color: var(--bg-light);
    box-shadow: inset 3px 0 0 var(--ss-main-color);
}

.grading-table tbody td {
    padding: 0.65rem 0.9rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    border: none;
    font-weight: 500;
}

.grading-table .badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.grading-table .badge-success {
    background: transparent;
    color: var(--ss-main-color);
    border: 1px solid var(--ss-main-color-shadow-3);
}

.grading-table .badge-warning {
    background: transparent;
    color: var(--ss-main-color);
    border: 1px solid var(--ss-main-color-shadow-3);
}

.grading-table .badge-danger {
    background: transparent;

    color: var(--ss-main-color);
    border: 1px solid var(--ss-main-color-shadow-3);
}

/* Performance Summary */
.performance-item {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.performance-item-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.performance-item-label span:first-child {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.performance-item-label span:last-child {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ss-main-color);
    background: var(--ss-main-color-light);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: -0.2px;
}

.performance-bar {
    height: 8px;
    background: rgba(229, 231, 235, 0.8);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.performance-bar .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px var(--ss-shadow-08);
}

.performance-bar .bar-fill.primary {
    background: linear-gradient(90deg, var(--ss-main-color), var(--ss-main-color));
}

.performance-bar .bar-fill.success {
    background: linear-gradient(90deg, var(--ss-main-color), var(--ss-main-color));
}

.performance-bar .bar-fill.info {
    background: linear-gradient(90deg, var(--ss-main-color), var(--ss-main-color));
}

/* Class Rank Summary */
.class-rank-summary {
    background: linear-gradient(135deg, var(--ss-main-color) 0%, var(--ss-main-color) 100%);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    color: white;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px var(--ss-main-color-shadow);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.class-rank-summary::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: var(--ss-white-3);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.class-rank-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--ss-main-color-border);
}

.class-rank-summary .rank-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 700;
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.class-rank-summary .rank-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.8px;
}

.class-rank-summary .rank-max {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

@media (max-width: 575.98px) {
    .exam-stats-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* ===============================
   Media Queries (Responsive Design)
   =============================== */

/* Desktop - Sticky sidebar */
@media (min-width: 992px) {
    .student-shell .student-sidebar {
        position: sticky;
        top: 1rem;
    }
}

/* Tablet & Mobile - Off-canvas drawer */
@media (max-width: 991.98px) {
    .student-shell .student-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 290px;
        max-width: calc(100vw - 64px);
        z-index: 1055;
        transform: translateX(-100%);
        box-shadow: var(--ss-shadow);
        transition: transform 0.25s ease;
        will-change: transform;
        contain: paint;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
        border-radius: 0;
    }

    @supports (height: 100dvh) {
        .student-shell .student-sidebar {
            height: 100dvh;
        }
    }

    .student-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: var(--ss-overlay-dark);
        z-index: 1050;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.student-sidebar-open .student-shell .student-sidebar {
        transform: translateX(0);
    }

    body.student-sidebar-open .student-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.student-sidebar-open {
        overflow: hidden;
    }
}

/* Small Mobile - Auth card responsive */
@media (max-width: 575.98px) {
    .auth-card {
        margin-top: -48px;
    }

    .card-auth .card-body {
        padding: 1.5rem 1.25rem;
    }

    .otp-box {
        width: 40px;
        height: 44px;
    }
}

/* Accessibility - Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .student-shell .student-sidebar,
    .student-sidebar-backdrop {
        transition: none !important;
    }
}
