/* ========================================================
   📚 Student Grade Manager — Style CSS
   Mini Project Pertemuan 5
   ======================================================== */

/* ----- CSS Custom Properties (Design Tokens) ----- */
:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Dark Theme Colors */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1a2744;
    --bg-input: #0d1b3a;

    --text-primary: #e8e8f0;
    --text-secondary: #8b8da3;
    --text-muted: #5c5e73;

    --accent-primary: #6c63ff;
    --accent-primary-hover: #7c74ff;
    --accent-secondary: #00d4aa;
    --accent-danger: #ff4757;
    --accent-warning: #ffa502;
    --accent-info: #3498db;

    /* Grade Colors */
    --grade-a: #00d4aa;
    --grade-b: #6c63ff;
    --grade-c: #ffa502;
    --grade-d: #ff7f50;
    --grade-f: #ff4757;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ----- Global Reset & Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}


/* ============================================= */
/* ROLE SELECTION SCREEN                          */
/* ============================================= */
.role-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Animated background gradient */
.role-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 212, 170, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 71, 87, 0.04) 0%, transparent 50%);
    animation: bgFloat 15s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-30px, -20px) rotate(3deg);
    }
}

.role-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-header {
    margin-bottom: 48px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.role-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.role-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.role-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.role-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    width: 280px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
    font-family: var(--font-family);
    color: var(--text-primary);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: var(--transition-normal);
}

.role-admin::before {
    background: linear-gradient(90deg, var(--accent-primary), #9c88ff);
}

.role-user::before {
    background: linear-gradient(90deg, var(--accent-secondary), #00b894);
}

.role-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.role-card:hover::before {
    height: 4px;
}

.role-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: var(--transition-normal);
}

.role-card:hover .role-card-icon {
    transform: scale(1.15);
}

.role-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.role-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-admin .role-badge {
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent-primary);
}

.role-user .role-badge {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent-secondary);
}


/* ============================================= */
/* NAVBAR                                         */
/* ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 24px;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    font-size: 24px;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(108, 99, 255, 0.1);
}

.nav-icon {
    font-size: 16px;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-badge {
    font-size: 18px;
}

.profile-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-logout {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(255, 71, 87, 0.2);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-family);
}

.btn-logout:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
}


/* ============================================= */
/* MAIN CONTENT                                   */
/* ============================================= */
.main-app {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 24px 40px;
}

.section {
    display: none;
    animation: sectionFadeIn 0.4s ease-out;
}

.section.active {
    display: block;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 32px;
}

.section-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* ============================================= */
/* STATS GRID                                     */
/* ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.stat-total::after {
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.stat-avg::after {
    background: linear-gradient(90deg, var(--accent-secondary), transparent);
}

.stat-highest::after {
    background: linear-gradient(90deg, var(--accent-warning), transparent);
}

.stat-lowest::after {
    background: linear-gradient(90deg, var(--accent-danger), transparent);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 36px;
    line-height: 1;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-total .stat-number {
    color: var(--accent-primary);
}

.stat-avg .stat-number {
    color: var(--accent-secondary);
}

.stat-highest .stat-number {
    color: var(--accent-warning);
}

.stat-lowest .stat-number {
    color: var(--accent-danger);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}


/* ============================================= */
/* GRADE DISTRIBUTION                             */
/* ============================================= */
.grade-distribution {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 28px;
}

.grade-distribution h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.grade-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.grade-bar-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.grade-label {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.grade-label.grade-a {
    background: rgba(0, 212, 170, 0.15);
    color: var(--grade-a);
}

.grade-label.grade-b {
    background: rgba(108, 99, 255, 0.15);
    color: var(--grade-b);
}

.grade-label.grade-c {
    background: rgba(255, 165, 2, 0.15);
    color: var(--grade-c);
}

.grade-label.grade-d {
    background: rgba(255, 127, 80, 0.15);
    color: var(--grade-d);
}

.grade-label.grade-f {
    background: rgba(255, 71, 87, 0.15);
    color: var(--grade-f);
}

.grade-bar-track {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.grade-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.bar-a {
    background: linear-gradient(90deg, var(--grade-a), rgba(0, 212, 170, 0.6));
}

.bar-b {
    background: linear-gradient(90deg, var(--grade-b), rgba(108, 99, 255, 0.6));
}

.bar-c {
    background: linear-gradient(90deg, var(--grade-c), rgba(255, 165, 2, 0.6));
}

.bar-d {
    background: linear-gradient(90deg, var(--grade-d), rgba(255, 127, 80, 0.6));
}

.bar-f {
    background: linear-gradient(90deg, var(--grade-f), rgba(255, 71, 87, 0.6));
}

.grade-count {
    width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}


/* ============================================= */
/* FILTER BAR                                     */
/* ============================================= */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    min-width: 180px;
}

.filter-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}


/* ============================================= */
/* STUDENT TABLE                                  */
/* ============================================= */
.table-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
}

.student-table thead {
    background: rgba(108, 99, 255, 0.08);
}

.student-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.student-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.student-row {
    transition: var(--transition-fast);
}

.student-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.td-name {
    font-weight: 600;
    color: var(--text-primary);
}

.td-score {
    font-weight: 700;
    font-size: 1rem;
}


/* ----- Grade Badges ----- */
.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
}

.grade-a {
    background: rgba(0, 212, 170, 0.15);
    color: var(--grade-a);
}

.grade-b {
    background: rgba(108, 99, 255, 0.15);
    color: var(--grade-b);
}

.grade-c {
    background: rgba(255, 165, 2, 0.15);
    color: var(--grade-c);
}

.grade-d {
    background: rgba(255, 127, 80, 0.15);
    color: var(--grade-d);
}

.grade-f {
    background: rgba(255, 71, 87, 0.15);
    color: var(--grade-f);
}


/* ----- Status Badges ----- */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.status-pass {
    background: rgba(0, 212, 170, 0.12);
    color: var(--grade-a);
}

.status-fail {
    background: rgba(255, 71, 87, 0.12);
    color: var(--grade-f);
}

.status-pass-text {
    color: var(--grade-a);
    font-weight: 600;
}

.status-fail-text {
    color: var(--grade-f);
    font-weight: 600;
}


/* ----- Action Buttons ----- */
.col-action {
    white-space: nowrap;
}

.btn-action {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-family);
    margin-right: 6px;
}

.btn-edit {
    background: rgba(108, 99, 255, 0.12);
    color: var(--accent-primary);
}

.btn-edit:hover {
    background: rgba(108, 99, 255, 0.25);
}

.btn-delete {
    background: rgba(255, 71, 87, 0.12);
    color: var(--accent-danger);
}

.btn-delete:hover {
    background: rgba(255, 71, 87, 0.25);
}


/* ----- Empty State ----- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
}


/* ============================================= */
/* FORM CARD                                      */
/* ============================================= */
.form-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 640px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}


/* ----- Preview Card ----- */
.preview-card {
    background: rgba(108, 99, 255, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.preview-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--accent-primary);
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 60px;
    font-weight: 500;
}

.preview-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}


/* ----- Form Buttons ----- */
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #8b7aff);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}


/* ============================================= */
/* MODAL                                          */
/* ============================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-danger);
}


/* ============================================= */
/* TOAST NOTIFICATION                             */
/* ============================================= */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease-out;
}

.toast.show {
    display: flex;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}


/* ============================================= */
/* FOOTER                                         */
/* ============================================= */
.footer {
    margin-top: 60px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.footer-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}


/* ============================================= */
/* RESPONSIVE DESIGN                              */
/* ============================================= */

@media (max-width: 768px) {
    .role-header h1 {
        font-size: 1.8rem;
    }

    .role-cards {
        flex-direction: column;
        align-items: center;
    }

    .role-card {
        width: 100%;
        max-width: 320px;
    }

    .nav-content {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 8px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .nav-profile {
        gap: 6px;
    }

    .profile-name {
        display: none;
    }

    .main-content {
        padding: 120px 16px 40px;
    }

    .section-header h1 {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .student-table {
        display: block;
        overflow-x: auto;
    }

    .form-card {
        padding: 20px;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}