/* ============================================================
   Admin Panel Styles
   Lendi Institute - Course Registration System
   Theme: Navy Blue + Gold + Red
   ============================================================ */

/* lendinit.lendi.edu.in Theme */
:root {
    --lendi-red: #E31E24;
    --lendi-yellow: #FFB81C;
    --navy-dark: #0f172a;
    --navy: #003377;
    --navy-light: #1e3a6e;
    --gold: #E31E24;
    --gold-light: #fff0f0;
    --gold-glow: rgba(227, 30, 36, 0.2);
    --accent: #FFB81C;
    --accent-light: #fff8e1;
    --red: #E31E24;
    --red-light: #ff4444;
    --white: #ffffff;
    --off-white: #f8f9fc;
    --dark: #001a3d;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --success: #10b981;
    --error: #dc2626;

    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 14px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--lendi-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--lendi-yellow); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    font-family: var(--font-body);
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Wave Background (matches frontend) */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    filter: blur(120px);
    opacity: 0.12;
}

.particle {
    position: absolute;
    border-radius: 50%;
}

.wave-bg-1 {
    background-color: var(--lendi-red);
    width: 80vw;
    height: 80vw;
    top: -10%;
    left: -20%;
    animation: waveFlow 40s linear infinite;
}

.wave-bg-2 {
    background-color: var(--lendi-yellow);
    width: 60vw;
    height: 60vw;
    bottom: -10%;
    right: -10%;
    animation: waveFlow 30s linear infinite reverse;
}

@keyframes waveFlow {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(10vw, 10vh) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(227, 30, 36, 0.15);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(227, 30, 36, 0.08);
    animation: loginCardIn 0.6s ease-out;
}

@keyframes loginCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 4px;
}

.login-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

/* Login Form */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.label-icon { font-size: 0.9rem; }

.login-form .form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
    outline: none;
}

.login-form .form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.login-form .form-input::placeholder {
    color: #9ca3af;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    transition: var(--transition);
}

.toggle-password:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--error);
    font-size: 0.85rem;
    animation: shakeIn 0.4s ease-out;
}

@keyframes shakeIn {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.error-icon { font-size: 1rem; }

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #E31E24, #B5181E);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4);
    margin-bottom: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.55);
}

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

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Button Loader */
.btn-loader {
    display: flex;
    gap: 4px;
}

.loader-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    animation: dotPulse 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.login-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray);
}

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */
.dashboard-page {
    font-family: var(--font-body);
    background: var(--off-white);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 3px solid var(--lendi-red);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.nav-department {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(227, 30, 36, 0.08);
    color: var(--lendi-red);
    padding: 2px 10px;
    border-radius: 4px;
    margin-top: 2px;
    display: inline-block;
    border: 1px solid rgba(227, 30, 36, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-email {
    color: rgba(0, 0, 0, 0.45);
    font-size: 0.8rem;
}

.btn-refresh {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #374151;
    transition: var(--transition);
}

.btn-refresh:hover {
    background: rgba(227, 30, 36, 0.08);
    border-color: var(--lendi-red);
    color: var(--lendi-red);
    transform: rotate(90deg);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(227, 30, 36, 0.07);
    border: 1px solid rgba(227, 30, 36, 0.25);
    border-radius: var(--radius-sm);
    color: var(--lendi-red);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--lendi-red);
    color: #ffffff;
    border-color: var(--lendi-red);
}

.logout-icon { font-size: 0.9rem; }

/* Dashboard Main */
.dashboard-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
    transition: var(--transition);
    animation: statFadeIn 0.5s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-total    { border-left-color: var(--lendi-red); }
.stat-today    { border-left-color: var(--gold); }
.stat-ug       { border-left-color: var(--success); }
.stat-pg       { border-left-color: var(--red); }
.stat-approved { border-left-color: #10b981; }
.stat-rejected { border-left-color: #dc2626; }
.stat-pending  { border-left-color: #f59e0b; }

.stat-icon--approved { color: #10b981; }
.stat-icon--rejected { color: #dc2626; }
.stat-icon--pending  { color: #f59e0b; }

/* 3-column stats row */
.stats-grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--off-white);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
    margin-top: 4px;
}

/* ============================================================
   PENDING SUBMISSIONS SECTION
   ============================================================ */
.pending-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(227,30,36,0.12);
    border-left: 4px solid var(--lendi-red);
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.pending-section-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.pending-section-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lendi-red);
    display: flex;
    align-items: center;
    gap: 7px;
}

.pending-section-sub {
    font-size: 0.78rem;
    color: var(--gray);
}

.pending-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pending-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 16px;
    border-radius: var(--radius-md);
    border: 1px solid;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pending-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    opacity: 0.06;
}

.pending-card--y2 {
    background: rgba(37,99,235,0.04);
    border-color: rgba(37,99,235,0.2);
}
.pending-card--y2::before { background: #2563eb; }
.pending-card--y2:hover { background: rgba(37,99,235,0.08); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.pending-card--y3 {
    background: rgba(227,30,36,0.04);
    border-color: rgba(227,30,36,0.2);
}
.pending-card--y3::before { background: var(--lendi-red); }
.pending-card--y3:hover { background: rgba(227,30,36,0.08); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.pending-card--y4 {
    background: rgba(255,184,28,0.06);
    border-color: rgba(255,184,28,0.3);
}
.pending-card--y4::before { background: var(--lendi-yellow); }
.pending-card--y4:hover { background: rgba(255,184,28,0.1); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.pending-year-tag {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.pending-card--y2 .pending-year-tag { background: #2563eb; color: #fff; }
.pending-card--y3 .pending-year-tag { background: var(--lendi-red); color: #fff; }
.pending-card--y4 .pending-year-tag { background: var(--lendi-yellow); color: #1a1a1a; }

.pending-fraction-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 2px;
}

.pending-current {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}
.pending-card--y2 .pending-current { color: #2563eb; }
.pending-card--y3 .pending-current { color: var(--lendi-red); }
.pending-card--y4 .pending-current { color: #b08000; }

.pending-sep {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    color: #9ca3af;
    line-height: 1;
    margin: 0 1px;
}

.pending-total {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #9ca3af;
}

.btn-edit-intake {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    color: #9ca3af;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 2px;
    transition: var(--transition);
    align-self: flex-start;
    margin-top: 4px;
}
.btn-edit-intake:hover { color: var(--lendi-red); background: rgba(227,30,36,0.08); }

.pending-desc {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 2px;
}

/* Intake inline edit row */
.intake-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(227,30,36,0.04);
    border: 1px dashed rgba(227,30,36,0.25);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.intake-edit-label {
    font-size: 0.82rem;
    color: #374151;
    flex-shrink: 0;
}

.intake-edit-input {
    width: 90px;
    padding: 6px 10px;
    border: 1px solid rgba(227,30,36,0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}
.intake-edit-input:focus { border-color: var(--lendi-red); box-shadow: 0 0 0 3px rgba(227,30,36,0.1); }

.intake-btn-save {
    padding: 6px 14px;
    background: var(--lendi-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}
.intake-btn-save:hover { background: #B5181E; }

.intake-btn-cancel {
    padding: 6px 10px;
    background: rgba(0,0,0,0.06);
    color: #6b7280;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.intake-btn-cancel:hover { background: rgba(0,0,0,0.12); }

.pending-view-btn {
    margin-top: 10px;
    padding: 5px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}
.pending-card--y2 .pending-view-btn { background: #2563eb; color: #fff; }
.pending-card--y2 .pending-view-btn:hover { background: #1d4ed8; }
.pending-card--y3 .pending-view-btn { background: var(--lendi-red); color: #fff; }
.pending-card--y3 .pending-view-btn:hover { background: #B5181E; }
.pending-card--y4 .pending-view-btn { background: var(--lendi-yellow); color: #1a1a1a; }
.pending-card--y4 .pending-view-btn:hover { background: #e0a000; }

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

.search-input {
    padding: 10px 14px 10px 36px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    background: var(--white);
    width: 300px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.filter-select {
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--gold);
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #E31E24, #B5181E);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(227, 30, 36, 0.25);
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.auto-refresh-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray);
    padding: 6px 12px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-light);
}

.refresh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Data Table */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table thead {
    background: linear-gradient(135deg, #E31E24, #B5181E);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

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

.data-table tbody tr:hover {
    background: rgba(227, 30, 36, 0.04);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 252, 0.5);
}

.data-table tbody tr:nth-child(even):hover {
    background: rgba(227, 30, 36, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-yes      { background: rgba(16, 185, 129, 0.1);  color: #059669; }
.badge-no       { background: rgba(107, 114, 128, 0.1); color: var(--gray); }
.badge-ug       { background: rgba(227, 30, 36, 0.08);  color: var(--lendi-red); }
.badge-pg       { background: rgba(255, 185, 17, 0.15); color: #a07000; }
.badge-approved { background: rgba(16, 185, 129, 0.12); color: #059669; font-weight: 700; }
.badge-rejected { background: rgba(220, 38, 38, 0.1);   color: #dc2626; font-weight: 700; }
.badge-pending  { background: rgba(245, 158, 11, 0.12); color: #b45309; font-weight: 700; }

/* Action Buttons */
.btn-view {
    padding: 5px 11px;
    background: linear-gradient(135deg, #E31E24, #B5181E);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.btn-approve {
    padding: 5px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 4px;
}
.btn-approve:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    transform: translateY(-1px);
}

.btn-reject {
    padding: 5px 10px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 4px;
}
.btn-reject:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    transform: translateY(-1px);
}

/* Modal footer with action buttons */
.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}
.btn-approve-modal {
    padding: 10px 20px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-approve-modal:hover { background: #059669; }

.btn-reject-modal {
    padding: 10px 20px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-reject-modal:hover { background: #b91c1c; }

/* Loading Skeleton */
.table-loading {
    padding: 16px;
}

.skeleton-row {
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    animation: shimmer 1.5s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.1s);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.page-btn {
    padding: 8px 20px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: #374151;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--lendi-red);
    color: var(--lendi-red);
    background: rgba(227, 30, 36, 0.04);
}

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

.page-info {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalScaleIn 0.4s ease-out;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-light);
    background: linear-gradient(135deg, #E31E24, #B5181E);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header .modal-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--red);
    border-color: var(--red);
}

.modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sections */
.detail-section {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.detail-section-title {
    background: rgba(227,30,36,0.05);
    border-bottom: 1px solid rgba(227,30,36,0.12);
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--lendi-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-count-chip {
    margin-left: auto;
    background: var(--lendi-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
}

.detail-grid {
    padding: 4px 0;
}

.detail-row {
    display: flex;
    padding: 9px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.detail-row:last-child { border-bottom: none; }

.detail-label {
    width: 160px;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: var(--dark);
    font-size: 0.85rem;
}

/* Eligible / Not Eligible badges */
.badge-yes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16,185,129,0.1);
    color: #059669;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}
.badge-no {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(227,30,36,0.08);
    color: var(--lendi-red);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Courses Table */
.detail-courses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.detail-courses-table thead tr {
    background: linear-gradient(135deg, #E31E24, #B5181E);
}
.detail-courses-table th {
    color: #fff;
    padding: 9px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}
.detail-courses-table td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--dark);
    vertical-align: middle;
}
.detail-courses-table tbody tr:last-child td { border-bottom: none; }
.detail-courses-table tbody tr:hover { background: rgba(227,30,36,0.03); }
.detail-courses-table tfoot td {
    background: rgba(0,0,0,0.02);
    border-top: 2px solid rgba(0,0,0,0.08);
    padding: 8px 14px;
}

.course-code-badge {
    background: rgba(227,30,36,0.08);
    color: var(--lendi-red);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.badge-course-type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
}
.badge-type-professional-core     { background: rgba(37,99,235,0.1);   color: #1d4ed8; }
.badge-type-professional-elective { background: rgba(124,58,237,0.1);  color: #6d28d9; }
.badge-type-open-elective         { background: rgba(8,145,178,0.1);   color: #0e7490; }
.badge-type-skilled               { background: rgba(16,185,129,0.1);  color: #059669; }
.badge-type-mandatory             { background: rgba(217,119,6,0.12);  color: #b45309; }
.badge-type-laboratory            { background: rgba(20,184,166,0.1);  color: #0d9488; }
.badge-type-internship-csp        { background: rgba(79,70,229,0.1);   color: #4338ca; }
.badge-type-honors                { background: rgba(245,158,11,0.12); color: #92400e; }
.badge-type-minors                { background: rgba(100,116,139,0.1); color: #475569; }

/* Documents */
.detail-doc-section {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.detail-doc-section:last-child { border-bottom: none; }

.detail-doc-label {
    font-weight: 600;
    font-size: 0.83rem;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(227,30,36,0.08);
    color: var(--lendi-red);
    border: 1px solid rgba(227,30,36,0.2);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 10px;
}
.btn-doc-download:hover {
    background: var(--lendi-red);
    color: #fff;
    border-color: var(--lendi-red);
}

.pdf-embed-frame {
    display: block;
    width: 100%;
    height: 480px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    background: #f9fafb;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-light);
    text-align: right;
}

.btn-modal-close {
    padding: 10px 24px;
    background: var(--lendi-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-close:hover {
    background: #B5181E;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-md);
    min-width: 280px;
    animation: toastIn 0.4s ease-out;
    border-left: 4px solid;
    font-size: 0.85rem;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--navy); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-exit {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(80px); }
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1rem;
}

/* Hidden */
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-right {
        width: 100%;
        justify-content: flex-end;
    }

    .nav-email { display: none; }

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

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

    .controls-left, .controls-right {
        flex-direction: column;
    }

    .search-input { width: 100%; }

    .dashboard-main { padding: 16px; }

    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 800px;
    }
}
