:root {
    --primary: #0d3d27;
    --secondary: #2e7d32;
    --accent: #ff8f00;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --bg-alt: #f5f5f5;
    --text-muted: #6c757d;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-alt);
    color: var(--dark);
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary) !important;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

.btn-primary-custom {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-primary-custom:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Sidebar for Admin/Student */
.sidebar {
    min-height: 100vh;
    background: var(--primary);
    color: white;
    z-index: 1000;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        box-shadow: 10px 0 20px rgba(0, 0, 0, 0.2);
    }
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 4px solid var(--accent);
}

/* Content Protection Styles */
.blur-content {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Dashboard Cards */
.card-stats {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card-stats:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: #2e7d32;
    /* Fallback green */
    color: #ffffff;
    /* Fallback white */
    overflow: hidden;
}

.icon-circle i {
    font-size: 28px !important;
    line-height: 1 !important;
}

/* Vibrant Gradients for Icons */
.grad-1 {
    background: linear-gradient(135deg, #0062E6, #33AEFF) !important;
    color: white !important;
}

.grad-2 {
    background: linear-gradient(135deg, #DD2476, #FF512F) !important;
    color: white !important;
}

.grad-3 {
    background: linear-gradient(135deg, #1D976C, #93F9B9) !important;
    color: white !important;
}

.grad-4 {
    background: linear-gradient(135deg, #F09819, #EDDE5D) !important;
    color: white !important;
}

.grad-5 {
    background: linear-gradient(135deg, #12c2e9, #c471ed, #f64f59) !important;
    color: white !important;
}

/* Navbar */
.top-navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
}

@media (max-width: 767.98px) {
    .top-navbar h1 {
        font-size: 1.5rem;
    }
}

/* Print Protection - Aggressive */
@media print {

    html,
    body {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}