:root {
    /* Color Palette - Academic & Professional */
    --primary: #2D3436;
    --secondary: #0984E3;
    --accent: #00CEC9;
    --success: #00B894;
    --warning: #FAB1A0;
    --error: #D63031;
    --bg-main: #FDFDFD;
    --bg-sidebar: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Typography */
    --font-heading: 'Crimson Pro', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 2rem 1.5rem;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
    text-decoration: none;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: #F1F5F9;
    color: var(--secondary);
}

.nav-link.active {
    background: #EBF8FF;
    color: var(--secondary);
}

.nav-link svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.user-profile-sm {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
}

/* Main Content Area */
.main-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header {
    height: 80px;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(253, 253, 253, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid var(--border-color);
}

.header-search {
    display: flex;
    align-items: center;
    background: #F1F5F9;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    width: 300px;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    padding-left: 0.5rem;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Content Grid */
.content {
    padding: 2rem 3rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Dashboard Widgets */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-trend {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* Main Grid */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
}

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

.table th {
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Components */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: #EBF8FF; color: var(--secondary); }
.badge-success { background: #E6FFFA; color: var(--success); }
.badge-warning { background: #FFF5F5; color: var(--error); }

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background: #0773C7;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: #F8FAFC;
}

/* Avatar Placeholder */
.placeholder-avatar {
    width: 40px;
    height: 40px;
    background: #E2E8F0;
    border-radius: 50%;
    flex-shrink: 0;
}

.placeholder-avatar.sm { width: 32px; height: 32px; }

/* Dashboard Specific Styles */
.dashboard-title-group {
    margin-bottom: 2.5rem;
}

.stat-trend.neutral {
    color: var(--text-muted);
}

.table-student-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-name {
    font-weight: 500;
}

.card-action-link {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.card-action-link:hover {
    text-decoration: underline;
}

.btn-icon-only {
    padding: 0.5rem;
    line-height: 0;
}

.btn-ghost {
    background: transparent;
    border: none;
}

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

.alert-card-title {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: white;
}

.alert-card-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    width: 100%;
    justify-content: center;
}

.btn-accent:hover {
    background: #00b5b1;
}

.header-btn-search {
    padding: 0.5rem 1rem;
}

.profile-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Timeline/Schedule */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.schedule-time {
    font-weight: 700;
    min-width: 60px;
    color: var(--secondary);
    font-size: 0.875rem;
}

.schedule-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.schedule-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

@media (max-width: 768px) {
    .sidebar { display: none; }
    .content { padding: 1rem; }
}
