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

:root {
    --primary-color: #7d0c00;
    --secondary-color: #0067b8;
    --neutral-color: #545454;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Sidebar Styles */
#sidebar {
    width: 256px;
}

#sidebar.closed {
    transform: translateX(-100%);
}

@media (min-width: 1024px) {
    #sidebar.closed {
        transform: translateX(0);
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.nav-item i {
    width: 20px;
    color: #6b7280;
}

.nav-item:hover {
    background-color: #f3f4f6;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.nav-item.active i {
    color: white;
}

.badge {
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: auto;
}

/* Stats Cards */
.stats-card {
    padding: 24px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-4px);
}

.stats-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

/* Forum Cards */
.forum-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

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

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

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

.resource-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    position: relative;
}

/* Buttons */
.btn-outline {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-primary {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 12, 0, 0.3);
}

/* Badge Styles */
.badge-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Avatar Initials */
.avatar-initials {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    #mainContent {
        margin-left: 0 !important;
    }
}

.bg-antiquewhite {
    background-color: antiquewhite;
}