/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-dark: #0f3b8c;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --sidebar-width: 250px;
    --header-height: 64px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, button, textarea, select { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c1445 0%, #1a56db 50%, #0f3b8c 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(59,130,246,0.08) 0%, transparent 50%);
    animation: loginBgFloat 20s ease-in-out infinite;
}

@keyframes loginBgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -1%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 900px;
    max-width: 95vw;
    min-height: 560px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
}

.login-left {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right {
    width: 380px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.login-right-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-right-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
}

.login-right h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.login-right p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.login-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.login-logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.login-logo-text span {
    font-size: 12px;
    color: var(--gray-500);
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 18px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-800);
    font-size: 15px;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.input-wrapper input::placeholder {
    color: var(--gray-400);
}

.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,86,219,0.4);
}

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

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

.login-btn .btn-text {
    transition: opacity 0.2s;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn .btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    display: none;
    animation: spin 0.6s linear infinite;
}

.login-btn.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.login-error.show {
    display: block;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-400);
    font-size: 12px;
}

/* ===== Dashboard Layout ===== */
.dashboard {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0c1445 0%, #1a223f 100%);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s;
    z-index: 100;
}

.sidebar-header {
    padding: 20px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-brand h2 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar-brand span {
    font-size: 11px;
    opacity: 0.6;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    padding: 8px 12px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

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

.nav-item.active {
    background: rgba(59,130,246,0.2);
    color: var(--primary-light);
}

.nav-item .nav-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}

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

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* Top Header */
.top-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
}

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

.header-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 20px;
    transition: background 0.2s;
    display: none;
}

.header-menu-btn:hover {
    background: var(--gray-100);
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.header-breadcrumb .current {
    color: var(--gray-800);
    font-weight: 500;
}

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

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 18px;
    position: relative;
    transition: background 0.2s;
}

.header-btn:hover {
    background: var(--gray-100);
}

.header-btn .dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--gray-600);
}

.lang-switch:hover {
    background: var(--gray-200);
}

.lang-switch .lang-active {
    color: var(--primary);
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-info:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
    background: var(--gray-50);
}

/* ===== Page Views ===== */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.page-header p {
    color: var(--gray-500);
    font-size: 14px;
}

/* ===== Stats Cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

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

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

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card-icon.blue { background: #eff6ff; color: var(--primary); }
.stat-card-icon.purple { background: #f5f3ff; color: var(--secondary); }
.stat-card-icon.green { background: #ecfdf5; color: var(--success); }
.stat-card-icon.orange { background: #fff7ed; color: var(--warning); }
.stat-card-icon.cyan { background: #ecfeff; color: var(--accent); }

.stat-card-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-card-change {
    font-size: 12px;
    margin-top: 8px;
}

.stat-card-change.up { color: var(--success); }
.stat-card-change.down { color: var(--danger); }

/* ===== Cards ===== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
}

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

.card-body {
    padding: 24px;
}

/* ===== Grid Layouts ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* ===== Tables ===== */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
}

table th {
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover td {
    background: var(--gray-50);
}

table td .badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-active { background: #ecfdf5; color: #059669; }
.badge-pending { background: #fff7ed; color: #d97706; }
.badge-closed { background: var(--gray-100); color: var(--gray-500); }
.badge-progress { background: #eff6ff; color: var(--primary); }

.table-action-btn {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-bg);
    transition: all 0.2s;
}

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

/* ===== Announcement List ===== */
.announcement-list .ann-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.announcement-list .ann-item:last-child {
    border-bottom: none;
}

.ann-item .ann-tag {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.ann-tag.notice { background: #eff6ff; color: var(--primary); }
.ann-tag.event { background: #f5f3ff; color: var(--secondary); }
.ann-tag.academic { background: #ecfdf5; color: var(--success); }

.ann-item .ann-title {
    flex: 1;
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

.ann-item .ann-date {
    font-size: 12px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* ===== Course Cards ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

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

.course-card-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.course-card-banner.purple { background: linear-gradient(135deg, var(--secondary), #a78bfa); }
.course-card-banner.green { background: linear-gradient(135deg, #059669, #34d399); }
.course-card-banner.orange { background: linear-gradient(135deg, #d97706, #fbbf24); }

.course-card-banner .course-type {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
}

.course-card-banner h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.course-card-body {
    padding: 16px 20px;
}

.course-card-body .course-teacher {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.course-card-body .course-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-400);
}

.course-card-body .course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-progress {
    flex: 1;
    margin-right: 16px;
}

.course-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    overflow: hidden;
}

.course-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s;
}

.course-progress .progress-text {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
    background: white;
    padding: 0 24px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.tab-item {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-item:hover {
    color: var(--gray-700);
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .tl-time {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.timeline-item .tl-content {
    font-size: 14px;
    color: var(--gray-700);
}

/* ===== International Page ===== */
.lang-flags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.lang-flag-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.lang-flag-btn:hover {
    border-color: var(--primary-light);
}

.lang-flag-btn.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}

.lang-flag-btn .flag-icon {
    font-size: 22px;
}

/* ===== Management Tables ===== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    max-width: 320px;
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: white;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.search-bar .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

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

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

.btn-outline {
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    background: white;
}

.btn-outline:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

/* ===== Info Cards (Portal) ===== */
.info-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    padding: 24px;
    transition: all 0.2s;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card .info-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Charts / Visual ===== */
.chart-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-bg), #f0f4ff);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 140px;
    padding: 20px 24px;
}

.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    transition: height 0.5s;
    position: relative;
}

.chart-bar .bar-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--gray-500);
    white-space: nowrap;
}

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

    .login-right {
        display: none;
    }

    .login-container {
        max-width: 420px;
    }

    .login-left {
        padding: 36px 28px;
    }

    .sidebar {
        width: 64px;
    }

    .sidebar .sidebar-brand h2,
    .sidebar .sidebar-brand span,
    .sidebar .nav-item span,
    .sidebar .nav-section-title,
    .sidebar .nav-badge,
    .sidebar-footer span {
        display: none;
    }

    .sidebar .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .sidebar .sidebar-header {
        justify-content: center;
        padding: 16px 0;
    }

    .sidebar .sidebar-footer {
        display: flex;
        justify-content: center;
    }

    .sidebar-logo {
        margin: 0;
    }

    .content-area {
        padding: 16px;
    }

    .top-header {
        padding: 0 16px;
    }

    .header-menu-btn {
        display: flex;
    }

    .user-name {
        display: none;
    }
}

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

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

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

/* ===== Logout Button ===== */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.logout-btn:hover {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

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

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.feature-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Quick Links ===== */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-600);
    transition: all 0.2s;
}

.quick-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ===== International Programs ===== */
.program-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.program-card:hover {
    box-shadow: var(--shadow-md);
}

.program-card .program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.program-card .program-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.program-card .program-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
    line-height: 1.6;
}

.program-card .program-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-400);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius);
    width: 520px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

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

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-400);
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--gray-100);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
}

/* ===== Notification Badge ===== */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    display: none;
    z-index: 200;
    margin-top: 8px;
}

.notification-dropdown.show {
    display: block;
}

.notification-dropdown .notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.notification-dropdown .notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-50);
    transition: background 0.2s;
    cursor: pointer;
}

.notification-dropdown .notif-item:hover {
    background: var(--gray-50);
}

.notif-item .notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 6px;
    flex-shrink: 0;
}

.notif-item .notif-text {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}

.notif-item .notif-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ===== About page ===== */
.about-section {
    margin-bottom: 32px;
}

.about-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}

.about-section p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
}

.about-milestones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.milestone-item .ms-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    min-width: 56px;
}

.milestone-item .ms-desc {
    font-size: 14px;
    color: var(--gray-600);
}