/* ============================================================
   SMART PORTAL - Professional UI Design System
   Shanti Devi Jain College
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --sp-primary: #0f2b46;
    --sp-primary-dark: #091e33;
    --sp-primary-light: #1a3d5c;
    --sp-accent: #d4a843;
    --sp-accent-hover: #e6bc5a;
    --sp-success: #10b981;
    --sp-danger: #ef4444;
    --sp-warning: #f59e0b;
    --sp-info: #3b82f6;
    --sp-bg: #f0f2f5;
    --sp-bg-card: #ffffff;
    --sp-text: #1e293b;
    --sp-text-muted: #64748b;
    --sp-border: #e2e8f0;
    --sp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --sp-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --sp-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --sp-shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);
    --sp-radius: 12px;
    --sp-radius-sm: 8px;
    --sp-radius-lg: 16px;
    --sp-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --sp-font-display: 'Playfair Display', Georgia, serif;
    --sp-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--sp-font);
    background-color: var(--sp-bg);
    color: var(--sp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    transition: var(--sp-transition);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--sp-bg);
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-sp {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-dark) 100%);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1050;
    border-bottom: 2px solid var(--sp-accent);
}

.navbar-sp .navbar-brand {
    padding: 12px 0;
    color: #fff;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--sp-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--sp-primary-dark);
}

.brand-name {
    display: block;
    font-family: var(--sp-font-display);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-tagline {
    display: block;
    font-size: 11px;
    color: var(--sp-accent);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-sp .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: var(--sp-radius-sm);
    transition: var(--sp-transition);
}

.navbar-sp .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-btn-register {
    background: var(--sp-accent) !important;
    color: var(--sp-primary-dark) !important;
    font-weight: 600 !important;
    border-radius: var(--sp-radius-sm) !important;
}

.nav-btn-register:hover {
    background: var(--sp-accent-hover) !important;
    transform: translateY(-1px);
}

.nav-btn-logout {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--sp-radius-sm);
    cursor: pointer;
    padding: 8px 16px;
    transition: var(--sp-transition);
}

.nav-btn-logout:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.5);
    color: #fca5a5 !important;
}

/* Navbar User Info */
.nav-user-info {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0 8px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sp-accent), #e6bc5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--sp-primary-dark);
    margin-right: 10px;
}

.user-details {
    line-height: 1.3;
}

.user-name {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.user-role {
    display: block;
    color: var(--sp-accent);
    font-size: 11px;
    font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-sp {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-dark) 100%);
    padding: 30px 0;
    margin-top: 60px;
    border-top: 3px solid var(--sp-accent);
}

.footer-brand {
    font-family: var(--sp-font-display);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.footer-text {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   AUTH PAGES (Login / Register / Forgot Password)
   ============================================================ */
.auth-page {
    background: linear-gradient(135deg, var(--sp-primary) 0%, #0a1628 50%, var(--sp-primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
}

.auth-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    border-radius: var(--sp-radius-lg);
    box-shadow: var(--sp-shadow-xl);
    position: relative;
    z-index: 1;
}

.auth-card h3 {
    font-family: var(--sp-font-display);
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 28px;
}

.auth-card .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--sp-radius-sm);
    font-size: 14px;
    transition: var(--sp-transition);
}

.auth-card .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--sp-accent);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
    color: #fff;
}

.auth-card .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.auth-card .btn-primary {
    background: var(--sp-accent);
    border: none;
    color: var(--sp-primary-dark);
    font-weight: 600;
    padding: 12px;
    border-radius: var(--sp-radius-sm);
    font-size: 15px;
    transition: var(--sp-transition);
}

.auth-card .btn-primary:hover {
    background: var(--sp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,168,67,0.3);
}

.auth-link {
    background: none;
    border: none;
    color: var(--sp-accent);
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--sp-transition);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--sp-accent-hover);
    text-decoration: underline;
}

/* Slide animations */
.slide-in-right { animation: slideInRight 0.5s ease forwards; }
.slide-in-left { animation: slideInLeft 0.5s ease forwards; }
.slide-out-left { animation: slideOutLeft 0.5s ease forwards; }
.slide-out-right { animation: slideOutRight 0.5s ease forwards; }

@keyframes slideInRight {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInLeft {
    from { transform: translateX(-60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-60px); opacity: 0; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(60px); opacity: 0; }
}

/* ============================================================
   DASHBOARD HERO SECTION
   ============================================================ */
.dashboard-hero {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-dark) 100%);
    padding: 32px 0 60px;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 70%);
}

.dashboard-hero .watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--sp-font-display);
    font-size: 72px;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.dashboard-hero .hero-content {
    position: relative;
    z-index: 1;
}

.dashboard-hero h3 {
    font-family: var(--sp-font-display);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.dashboard-hero .hero-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

/* ---------- Stats Row ---------- */
.stats-row {
    margin-top: -40px;
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    padding: 18px 20px;
    box-shadow: var(--sp-shadow-lg);
    display: flex;
    align-items: center;
    transition: var(--sp-transition);
    border: 1px solid var(--sp-border);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sp-shadow-xl);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--sp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 14px;
    flex-shrink: 0;
}

.stat-icon.blue { background: rgba(59,130,246,0.1); color: var(--sp-info); }
.stat-icon.green { background: rgba(16,185,129,0.1); color: var(--sp-success); }
.stat-icon.gold { background: rgba(212,168,67,0.1); color: var(--sp-accent); }
.stat-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--sp-text);
    line-height: 1;
    margin-bottom: 2px;
}

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

/* ============================================================
   DASHBOARD CARDS (Navigation Cards)
   ============================================================ */
.dash-card {
    display: flex;
    flex-direction: column;
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    padding: 20px 20px;
    text-decoration: none;
    color: var(--sp-text);
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    transition: var(--sp-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-primary), var(--sp-accent));
    opacity: 0;
    transition: var(--sp-transition);
}

.dash-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sp-shadow-xl);
    color: var(--sp-text);
    border-color: transparent;
}

.dash-card:hover::before {
    opacity: 1;
}

.dash-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--sp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
    transition: var(--sp-transition);
}

.dash-card:hover .dash-card-icon {
    transform: scale(1.1);
}

.dash-card-icon.blue { background: rgba(59,130,246,0.1); color: var(--sp-info); }
.dash-card-icon.green { background: rgba(16,185,129,0.1); color: var(--sp-success); }
.dash-card-icon.gold { background: rgba(212,168,67,0.1); color: var(--sp-accent); }
.dash-card-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.dash-card-icon.red { background: rgba(239,68,68,0.1); color: var(--sp-danger); }
.dash-card-icon.teal { background: rgba(20,184,166,0.1); color: #14b8a6; }
.dash-card-icon.orange { background: rgba(249,115,22,0.1); color: #f97316; }
.dash-card-icon.indigo { background: rgba(99,102,241,0.1); color: #6366f1; }
.dash-card-icon.pink { background: rgba(236,72,153,0.1); color: #ec4899; }
.dash-card-icon.slate { background: rgba(100,116,139,0.1); color: #64748b; }

.dash-card h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dash-card p {
    font-size: 13px;
    color: var(--sp-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.dash-card .card-arrow {
    margin-top: auto;
    padding-top: 10px;
    color: var(--sp-text-muted);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--sp-transition);
}

.dash-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   PAGE CONTENT (Non-Dashboard Pages)
   ============================================================ */
.page-wrapper {
    padding: 30px 0 40px;
    min-height: calc(100vh - 200px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h4 {
    font-family: var(--sp-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--sp-text);
    margin: 0;
}

.page-header .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sp-bg-card);
    border: 1px solid var(--sp-border);
    color: var(--sp-text-muted);
    padding: 8px 18px;
    border-radius: var(--sp-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--sp-transition);
}

.page-header .btn-back:hover {
    background: var(--sp-primary);
    color: #fff;
    border-color: var(--sp-primary);
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.sp-card {
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    overflow: hidden;
}

.sp-card-header {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-light) 100%);
    color: #fff;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-card-body {
    padding: 24px;
}

/* Form Card (Create/Edit forms) */
.form-card {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-dark) 100%);
    border-radius: var(--sp-radius);
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--sp-shadow-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
}

.form-card h5 {
    font-family: var(--sp-font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.form-card .form-control,
.form-card .form-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--sp-radius-sm);
    transition: var(--sp-transition);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--sp-accent);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
    color: #fff;
}

.form-card .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-card select option {
    background: var(--sp-primary-dark);
    color: #fff;
}

.form-card .btn-submit {
    background: var(--sp-accent);
    color: var(--sp-primary-dark);
    font-weight: 700;
    padding: 12px;
    border: none;
    border-radius: var(--sp-radius-sm);
    font-size: 15px;
    transition: var(--sp-transition);
    position: relative;
    z-index: 1;
}

.form-card .btn-submit:hover {
    background: var(--sp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,168,67,0.3);
}

.form-card label {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   TABLES
   ============================================================ */
.sp-table-wrap {
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    overflow: hidden;
}

.sp-table {
    margin: 0;
    width: 100%;
}

.sp-table thead {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-light) 100%);
}

.sp-table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border: none;
    white-space: nowrap;
}

.sp-table tbody td {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--sp-text);
    border-bottom: 1px solid var(--sp-border);
    vertical-align: middle;
}

.sp-table tbody tr {
    transition: var(--sp-transition);
}

.sp-table tbody tr:hover {
    background: rgba(15,43,70,0.02);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--sp-radius-sm);
    padding: 8px 18px;
    transition: var(--sp-transition);
}

.btn-sp-primary {
    background: var(--sp-primary);
    color: #fff;
    border: none;
}
.btn-sp-primary:hover {
    background: var(--sp-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-sp-accent {
    background: var(--sp-accent);
    color: var(--sp-primary-dark);
    border: none;
    font-weight: 700;
}
.btn-sp-accent:hover {
    background: var(--sp-accent-hover);
    color: var(--sp-primary-dark);
    transform: translateY(-1px);
}

.btn-sp-success {
    background: var(--sp-success);
    color: #fff;
    border: none;
}
.btn-sp-success:hover {
    background: #059669;
    color: #fff;
}

.btn-sp-danger {
    background: rgba(239,68,68,0.1);
    color: var(--sp-danger);
    border: 1px solid rgba(239,68,68,0.2);
}
.btn-sp-danger:hover {
    background: var(--sp-danger);
    color: #fff;
}

.btn-sp-warning {
    background: rgba(245,158,11,0.1);
    color: #d97706;
    border: 1px solid rgba(245,158,11,0.2);
}
.btn-sp-warning:hover {
    background: var(--sp-warning);
    color: #fff;
}

.btn-sp-info {
    background: rgba(59,130,246,0.1);
    color: var(--sp-info);
    border: 1px solid rgba(59,130,246,0.2);
}
.btn-sp-info:hover {
    background: var(--sp-info);
    color: #fff;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border-radius: var(--sp-radius-sm);
    border: none;
    font-size: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16,185,129,0.1);
    color: #059669;
    border-left: 4px solid var(--sp-success);
}

.alert-danger {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border-left: 4px solid var(--sp-danger);
}

.alert-info {
    background: rgba(59,130,246,0.1);
    color: #2563eb;
    border-left: 4px solid var(--sp-info);
}

.alert-warning {
    background: rgba(245,158,11,0.1);
    color: #d97706;
    border-left: 4px solid var(--sp-warning);
}

.alert-primary {
    background: rgba(15,43,70,0.08);
    color: var(--sp-primary);
    border-left: 4px solid var(--sp-primary);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    font-weight: 600;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
}

.badge.bg-success {
    background: rgba(16,185,129,0.15) !important;
    color: #059669;
}

.badge.bg-danger {
    background: rgba(239,68,68,0.15) !important;
    color: #dc2626;
}

.badge.bg-warning {
    background: rgba(245,158,11,0.15) !important;
    color: #d97706;
}

.badge.bg-info {
    background: rgba(59,130,246,0.15) !important;
    color: #2563eb;
}

/* ============================================================
   FORMS (General)
   ============================================================ */
.form-control,
.form-select {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--sp-transition);
    color: var(--sp-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px rgba(15,43,70,0.08);
}

/* Filter Bar */
.filter-bar {
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--sp-shadow-sm);
    border: 1px solid var(--sp-border);
}

/* ============================================================
   STUDENT PROFILE
   ============================================================ */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--sp-accent);
    box-shadow: var(--sp-shadow-lg);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    font-weight: 700;
    border: 4px solid var(--sp-accent);
    box-shadow: var(--sp-shadow-lg);
}

.profile-detail-table th {
    color: var(--sp-text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 40%;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-border);
}

.profile-detail-table td {
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-border);
}

/* ============================================================
   STUDENT DASHBOARD CARDS
   ============================================================ */
.student-nav-card {
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    transition: var(--sp-transition);
    height: 100%;
}

.student-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-xl);
}

.student-nav-card .nav-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.student-nav-card h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ============================================================
   PERMISSIONS CHECKBOX
   ============================================================ */
.perm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.perm-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sp-accent);
}

.perm-check label {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
}

/* ============================================================
   SUMMARY STATS (Attendance / Results)
   ============================================================ */
.summary-card {
    border-radius: var(--sp-radius-sm);
    padding: 16px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.summary-card .summary-value {
    font-size: 28px;
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
}

.summary-card .summary-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.summary-total { background: rgba(15,43,70,0.08); color: var(--sp-primary); }
.summary-present { background: rgba(16,185,129,0.1); color: #059669; }
.summary-absent { background: rgba(239,68,68,0.1); color: #dc2626; }
.summary-leave { background: rgba(245,158,11,0.1); color: #d97706; }

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

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .dashboard-hero h3 { font-size: 22px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 22px; }
    .dash-card { padding: 20px 18px; }
    .form-card { padding: 24px 20px; }
    .page-header h4 { font-size: 20px; }
    .navbar-sp .nav-user-info { padding: 10px 0; }
    .brand-name { font-size: 14px; }
}

/* ============================================================
   LEGACY COMPATIBILITY (Keep old class names working)
   ============================================================ */
.student-card { /* maps to form-card */
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-dark) 100%) !important;
    border-radius: var(--sp-radius) !important;
    padding: 32px !important;
    box-shadow: var(--sp-shadow-lg) !important;
    color: #fff !important;
    border: none !important;
}

.student-card input,
.student-card select {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-radius: var(--sp-radius-sm) !important;
}

.student-card input::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

.student-card input:focus,
.student-card select:focus {
    background: rgba(255,255,255,0.12) !important;
    border-color: var(--sp-accent) !important;
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15) !important;
}

.student-card select option {
    background: var(--sp-primary-dark);
    color: #fff;
}

.student-card .btn-light {
    background: var(--sp-accent) !important;
    color: var(--sp-primary-dark) !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: var(--sp-radius-sm) !important;
    padding: 12px !important;
    font-size: 15px;
    transition: var(--sp-transition) !important;
}

.student-card .btn-light:hover {
    background: var(--sp-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,168,67,0.3);
}

/* Legacy table overrides */
.table thead {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-light) 100%);
}

.table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 14px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    vertical-align: middle;
    border-color: var(--sp-border);
}

.table tbody tr {
    transition: var(--sp-transition);
}

.table tbody tr:hover {
    background: rgba(15,43,70,0.02);
}

/* Legacy dashboard bg */
.admin-dashboard-bg {
    position: relative;
    min-height: auto;
}

.admin-dashboard-bg .overlay {
    display: none;
}

.admin-dashboard-bg .watermark-text {
    display: none;
}

/* Legacy dashboard-card */
.dashboard-card {
    display: flex;
    flex-direction: column;
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    padding: 20px 20px;
    text-decoration: none;
    color: var(--sp-text);
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    transition: var(--sp-transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-primary), var(--sp-accent));
    opacity: 0;
    transition: var(--sp-transition);
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sp-shadow-xl);
    color: var(--sp-text);
    border-color: transparent;
    background: var(--sp-bg-card);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-text);
    margin-bottom: 8px;
}

.dashboard-card p {
    font-size: 13px;
    color: var(--sp-text-muted);
}

/* Legacy stat-box */
.stat-box {
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    padding: 18px 20px;
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    border-left: 5px solid var(--sp-primary);
}

.stat-box h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--sp-text);
    margin-bottom: 4px;
}

.stat-box span {
    font-weight: 600;
    color: var(--sp-text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy card class overrides */
.card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-sm);
}

.card-header.bg-dark {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-light) 100%) !important;
    border-bottom: none;
}

/* ============================================================
   PORTFOLIO / LANDING PAGE
   ============================================================ */
.portfolio-hero {
    background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary-dark) 60%, #0c1e30 100%);
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212,168,67,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59,130,246,0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(212,168,67,0.15);
    color: var(--sp-accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--sp-font-display);
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-desc {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Portal Cards */
.portal-card {
    display: block;
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius-lg);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--sp-text);
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    transition: var(--sp-transition);
    height: 100%;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sp-shadow-xl);
    border-color: transparent;
    color: var(--sp-text);
    text-decoration: none;
}

.portal-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.portal-card h5 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.portal-card p {
    color: var(--sp-text-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.portal-btn {
    display: inline-block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 8px;
    transition: var(--sp-transition);
}

.portal-card:hover .portal-btn {
    transform: scale(1.05);
}

/* About / Features */
.portfolio-about {
    padding: 60px 0 50px;
}

.feature-box {
    background: var(--sp-bg-card);
    border-radius: var(--sp-radius);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow-sm);
    transition: var(--sp-transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.feature-icon.blue  { background: rgba(59,130,246,0.12); color: #3b82f6; }
.feature-icon.green { background: rgba(16,185,129,0.12); color: #10b981; }
.feature-icon.purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }

.feature-box h6 {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--sp-text);
}

.feature-box p {
    color: var(--sp-text-muted);
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Animation delay-4 for 4th card */
.animate-delay-4 {
    animation-delay: 0.4s;
}

/* Responsive portfolio adjustments */
@media (max-width: 767px) {
    .hero-title { font-size: 28px; }
    .hero-desc  { font-size: 14px; }
    .portfolio-hero { padding: 50px 0 70px; }
}

/* ============================================================
   NOTIFICATION BELL & DROPDOWN
   ============================================================ */
.notification-bell {
    font-size: 18px;
    padding: 8px 12px !important;
}
.notification-badge {
    font-size: 10px;
    padding: 3px 5px;
    transform: translate(-50%, -20%) !important;
}
.notification-dropdown {
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-xl);
    border: 1px solid var(--sp-border);
    animation: notifSlideDown 0.2s ease;
}
@keyframes notifSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.notification-item {
    white-space: normal !important;
    transition: background 0.15s;
}
.notification-item:hover {
    background: #f8fafc !important;
}
.notification-item.unread {
    background: #eff6ff;
}
.notification-item.unread:hover {
    background: #dbeafe !important;
}
.notification-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}
.notification-icon-wrap.bg-danger { background: var(--sp-danger); }
.notification-icon-wrap.bg-warning { background: var(--sp-warning); }
.notification-icon-wrap.bg-success { background: var(--sp-success); }
.notification-icon-wrap.bg-info { background: var(--sp-info); }

/* Notification page */
.notification-page-item {
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.notification-page-item.unread {
    border-left-color: var(--sp-info);
    background: #f0f7ff;
}
.notification-page-item:hover {
    background: #f8fafc;
}

/* ============================================================
   ACTION BUTTONS (Edit / Delete / View)
   ============================================================ */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-action i {
    font-size: 11px;
}
.btn-action-edit {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-action-edit:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}
.btn-action-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-action-delete:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}
.btn-action-view {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.btn-action-view:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}
.btn-action-approve {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.btn-action-approve:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}
.btn-action-reject {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-action-reject:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}
.btn-action-reset {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.btn-action-reset:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);
}
.action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
/* Inline edit form styling */
.inline-edit-form {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--sp-border);
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.inline-edit-form .form-control {
    font-size: 13px;
    border-radius: 6px;
}
.inline-edit-form .btn-save {
    background: var(--sp-success);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
}
.inline-edit-form .btn-save:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar-sp, .footer-sp, .btn, .form-card, .filter-bar { display: none !important; }
    body { background: #fff; }
    .sp-table thead { background: #333 !important; -webkit-print-color-adjust: exact; }
}
