/* Global Variables & Design Tokens */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #eff6ff;

    --sidebar-bg: #1e3a8a;
    --sidebar-hover: #2563eb;
    --sidebar-active: #3b82f6;
    --sidebar-text: #e2e8f0;
    --sidebar-text-active: #ffffff;

    --bg-main: #f8fafc;
    --bg-card: #ffffff;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;

    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #047857;

    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #b45309;

    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #b91c1c;

    --info: #3b82f6;
    --info-light: #dbeafe;
    --info-dark: #1d4ed8;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --font-family: 'Inter', sans-serif;
    --sidebar-width: 260px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 14px;
    transition: background-color 0.2s;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--bg-main);
    border-color: var(--text-light);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Utilities */
.btn-pagination {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-main);
    transition: all 0.2s;
}

.btn-pagination:hover:not(.disabled) {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-pagination.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-pagination.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.hidden {
    display: none !important;
}

.suggestion-item:hover {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}


/* Typography Utilities */
.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-success-light {
    background-color: var(--success-light);
}

.bg-warning-light {
    background-color: var(--warning-light);
}

.bg-danger-light {
    background-color: var(--danger-light);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Login Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #831843 0%, #a21caf 30%, #c026d3 60%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

/* Background wave shapes */
.login-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.login-bg-shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.2);
    top: -200px;
    right: -150px;
}

.login-bg-shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -200px;
    left: -150px;
}

.login-bg-shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.login-card {
    background-color: #ffffff;
    padding: 40px 36px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

@keyframes loginSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 12px;
}

.login-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.divider-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #e879a8, #a855f7);
    border-radius: 2px;
}

.divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c026d3;
}

.login-university {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 0;
}

.login-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.login-input-group {
    position: relative;
    margin-bottom: 16px;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.login-input-group input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
}

.login-input-group input:focus {
    border-color: #c026d3;
    box-shadow: 0 0 0 3px rgba(192, 38, 211, 0.15);
    background-color: #fff;
}

.login-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-eye-icon {
    width: 20px;
    height: 20px;
    color: #000000;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #c026d3;
    cursor: pointer;
}

.login-forgot {
    color: #9333ea;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.login-forgot:hover {
    color: #7e22ce;
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a21caf, #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(162, 28, 175, 0.3);
    font-family: inherit;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(162, 28, 175, 0.4);
}

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

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

.login-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #fecaca;
}

.login-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #f0abfc;
}

.login-trust-badge p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.login-copyright {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Forgot Password Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

.modal-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.forgot-cancel-btn {
    padding: 14px 20px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.forgot-cancel-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.forgot-success {
    background-color: #f0fdf4;
    color: #166534;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #bbf7d0;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-icon {
    width: 28px;
    height: 28px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-item.active {
    background-color: var(--sidebar-active);
    color: var(--sidebar-text-active);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar Submenu */
.nav-group { margin-bottom: 0; }

.nav-parent {
    justify-content: flex-start;
    position: relative;
}

.nav-arrow {
    width: 16px !important;
    height: 16px !important;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-parent.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-submenu.open {
    max-height: 300px;
}

.nav-sub-item {
    display: flex;
    align-items: center;
    padding: 9px 16px 9px 48px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    position: relative;
}

.nav-sub-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin-right: 10px;
    transition: background 0.2s;
}

.nav-sub-item:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.nav-sub-item:hover::before {
    background: white;
}

.nav-sub-item.active {
    color: white;
    background: rgba(59, 130, 246, 0.3);
}

.nav-sub-item.active::before {
    background: #3b82f6;
}

.logout-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

/* Topbar */
.topbar {
    height: 64px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    color: var(--text-muted);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 95;
    display: none;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-wrapper {
    position: relative;
}

.icon-btn {
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-full);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--bg-main);
    color: var(--text-main);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background-color: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

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

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Dashboard Content */
.dashboard-content {
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Welcome Banner */
.welcome-banner {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-icon i {
    width: 28px;
    height: 28px;
}

.welcome-text h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 14px;
}

.period-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.period-selector span {
    color: var(--text-muted);
    font-size: 14px;
}

.period-selector select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.stat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 20px;
    height: 20px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.stat-subtitle {
    color: var(--text-muted);
    font-size: 13px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.stat-trend i {
    width: 14px;
    height: 14px;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

.trend-text {
    color: var(--text-light);
    font-weight: 400;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.chart-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.chart-filter {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    font-size: 13px;
    color: var(--text-muted);
    outline: none;
}

.chart-body {
    flex: 1;
    position: relative;
    width: 100%;
}

.line-chart-card .chart-body {
    height: 300px;
}

.donut-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 300px;
}

.donut-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donut-total-label {
    font-size: 12px;
    color: var(--text-muted);
}

.donut-total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.legend-label {
    color: var(--text-main);
    flex: 1;
}

.legend-value {
    color: var(--text-muted);
    font-weight: 500;
}

/* Data Table */
.table-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.table-header h3 {
    font-size: 16px;
    font-weight: 600;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    background-color: var(--bg-main);
}

tbody tr:hover {
    background-color: var(--bg-main);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
}

.badge {
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger-dark);
}

.badge-info {
    background-color: var(--info-light);
    color: var(--info-dark);
}

.action-btn {
    padding: 6px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
    display: inline-flex;
}

.action-btn:hover {
    background-color: var(--primary-light);
}

.action-btn i {
    width: 18px;
    height: 18px;
}

/* Icon Action Buttons */
.action-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.action-btn-icon * {
    pointer-events: none;
}

.table-footer {
    padding: 16px 24px;
    text-align: center;
}

.btn-block-light {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-block-light:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

/* Sidebar Brand Adjustments */
.brand-icon-img {
    object-fit: contain;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2px;
}

/* Student Dashboard Styles */
.student-welcome-banner {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.student-welcome-banner .greeting {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.student-welcome-banner .student-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.student-welcome-banner .student-program {
    color: var(--text-muted);
    font-size: 14px;
}

.welcome-illustration img {
    height: 180px;
    object-fit: contain;
}

/* Student Stats Grid */
.student-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.student-stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-desc {
    font-size: 12px;
    color: var(--text-light);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--bg-main);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper i {
    width: 24px;
    height: 24px;
}

/* Timeline Card */
.timeline-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.timeline-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 32px;
}

.timeline-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-point {
    width: 32px;
    height: 32px;
    background-color: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s ease;
}

.timeline-point i {
    width: 16px;
    height: 16px;
}

.timeline-item.completed .timeline-point {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
}

.timeline-line {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 -16px;
    margin-bottom: 44px;
}

.timeline-item.completed+.timeline-line {
    background-color: var(--primary);
}

/* Student Bottom Grid */
.student-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.announcement-card,
.period-info-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.view-all {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.announcement-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-icon i {
    width: 20px;
    height: 20px;
}

.announcement-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.announcement-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.announcement-date {
    font-size: 11px;
    color: var(--text-light);
}

/* Period Info Card */
.period-details {
    display: flex;
    flex-direction: column;
}

.period-item {
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.period-item.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.period-status-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--success);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.period-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.period-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.date-label {
    color: var(--text-muted);
}

.date-value {
    font-weight: 600;
    color: var(--text-main);
}

.w-full {
    width: 100%;
}

.mt-16 {
    margin-top: 16px;
}

/* Sidebar Responsive */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        padding: 0 16px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: var(--bg-main);
        border-radius: var(--radius-md);
        cursor: pointer;
    }

    .sidebar.open + .sidebar-overlay,
    #sidebar-overlay.show {
        display: block;
    }
}

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

    .student-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .student-stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-wrapper {
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }

    .timeline-line {
        width: 2px;
        height: 24px;
        margin: -12px 0;
    }
}

/* Bottom Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.info-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header i {
    width: 20px;
    height: 20px;
    color: var(--text-main);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.announcement-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--danger);
}

.announcement-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}

.announcement-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.announcement-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.announcement-content a {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.info-value {
    font-size: 13px;
    color: var(--text-muted);
}

.view-more {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .student-stats-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .timeline-wrapper {
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }

    .timeline-line {
        width: 2px;
        height: 24px;
        margin: -12px 0;
    }

    .student-welcome-banner {
        flex-direction: column;
        text-align: center;
    }

    .welcome-illustration {
        margin-top: 24px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
}

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

.toast i { width: 20px; height: 20px; }
.toast-success i { color: var(--success); }
.toast-danger i { color: var(--danger); }
.toast-info i { color: var(--info); }

.toast span {
    font-weight: 500;
    color: var(--text-main);
    font-size: 14px;
}

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

.spin {
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   TIMELINE PPL REAL-TIME STYLES
   ========================================================================== */

/* Timeline Container Card */
.timeline-ppl-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 32px 24px;
    margin-bottom: 24px;
    width: 100%;
}

.timeline-ppl-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Timeline Track and Steps Wrapper */
.timeline-ppl-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Horizontal line behind the steps */
.timeline-ppl-track {
    position: absolute;
    top: 12px; /* aligns vertically with the middle of 24px circle */
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

/* Dynamic filled part of the track */
.timeline-ppl-track-fill {
    height: 100%;
    background: #10b981; /* Green */
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Individual Step Wrapper */
.timeline-ppl-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
    text-align: center;
}

/* The circular node */
.timeline-ppl-node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0; /* Default gray */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 4px solid #ffffff; /* Gives it the white border effect */
    box-shadow: 0 0 0 1px #cbd5e1;
}

/* Step States */
.timeline-ppl-step.completed .timeline-ppl-node {
    background: #10b981; /* Success Green */
    box-shadow: 0 0 0 1px #10b981;
}

.timeline-ppl-step.active .timeline-ppl-node {
    background: #8b5cf6; /* Active Purple */
    box-shadow: 0 0 0 2px #8b5cf6, 0 0 0 6px rgba(139, 92, 246, 0.15); /* Halos/Glow effect from screenshot */
    border-color: #ffffff;
}

.timeline-ppl-step.upcoming .timeline-ppl-node {
    background: #e2e8f0;
    box-shadow: 0 0 0 1px #cbd5e1;
}

/* Step labels & details */
.timeline-ppl-content {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.timeline-ppl-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.timeline-ppl-step.completed .timeline-ppl-label,
.timeline-ppl-step.active .timeline-ppl-label {
    color: var(--text-dark); /* Bold dark color for active/completed */
}

.timeline-ppl-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Configuration group styles for admin panel */
.timeline-config-group {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.timeline-config-group:focus-within {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Responsive CSS */
@media (max-width: 768px) {
    .timeline-ppl-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 0 16px;
    }
    
    .timeline-ppl-track {
        top: 12px;
        left: 28px;
        bottom: 12px;
        width: 4px;
        height: calc(100% - 24px);
        right: auto;
    }
    
    .timeline-ppl-track-fill {
        width: 100% !important;
        height: 0%;
        transition: height 0.5s ease;
    }
    
    .timeline-ppl-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: 100%;
        gap: 16px;
    }
    
    .timeline-ppl-content {
        margin-top: 0;
        align-items: flex-start;
        gap: 2px;
    }
}