:root {
    --sidebar-width: 250px;
    --sidebar-bg: #343a40;
    --sidebar-hover: #495057;
    --primary-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --purple-color: #6f42c1;
    --orange-color: #fd7e14;
    --teal-color: #20c997;
    --pink-color: #e83e8c;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fc;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: var(--sidebar-bg);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    margin-left: -var(--sidebar-width);
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.sidebar-header small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.sidebar .components {
    padding: 20px 0;
}

.sidebar ul li {
    list-style: none;
    padding: 10px 20px;
}

.sidebar ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li.active > a {
    color: white;
    background: var(--sidebar-hover);
}

.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar ul li ul {
    margin-left: 20px;
    padding: 0;
}

.sidebar ul li ul li {
    padding: 5px 0;
}

.sidebar ul li ul li a {
    font-size: 0.875rem;
    padding: 8px;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    min-height: 100vh;
}

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

/* Top Navigation */
.navbar {
    background: white !important;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#sidebarCollapse {
    background: var(--dark-color);
    border: none;
    padding: 8px 12px;
}

#sidebarCollapse:hover {
    background: var(--sidebar-hover);
}

/* Statistics Cards */
.stats-card {
    border-left: 4px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.border-left-primary {
    border-left-color: var(--primary-color) !important;
}

.border-left-success {
    border-left-color: var(--success-color) !important;
}

.border-left-warning {
    border-left-color: var(--warning-color) !important;
}

.border-left-info {
    border-left-color: var(--info-color) !important;
}

.border-left-purple {
    border-left-color: var(--purple-color) !important;
}

.border-left-orange {
    border-left-color: var(--orange-color) !important;
}

.border-left-teal {
    border-left-color: var(--teal-color) !important;
}

.border-left-pink {
    border-left-color: var(--pink-color) !important;
}

.text-purple {
    color: var(--purple-color) !important;
}

.text-orange {
    color: var(--orange-color) !important;
}

.text-teal {
    color: var(--teal-color) !important;
}

.text-pink {
    color: var(--pink-color) !important;
}

/* Tables */
.table {
    background: white;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
    background: var(--light-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Forms */
.form-control {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* News Items */
.news-item {
    transition: all 0.3s ease;
}

.news-item:hover {
    background: var(--light-color);
    border-radius: 5px;
}

/* Alumni Items */
.alumni-item {
    transition: all 0.3s ease;
}

.alumni-item:hover {
    background: var(--light-color);
    border-radius: 5px;
}

/* Achievement Items */
.achievement-item {
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: var(--light-color);
    border-radius: 5px;
}

/* Charts */
.chart-area {
    position: relative;
    height: 300px;
}

.chart-pie {
    position: relative;
    height: 250px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -var(--sidebar-width);
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .content {
        width: 100%;
        margin-left: 0;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}