/* Custom Styles for Student Dashboard */

:root {
    --primary-color: #6200ea;
    /* Deep Purple */
    --secondary-color: #00bfa5;
    /* Teal Accent */
    --bg-color: #f4f5f7;
    --card-bg: #ffffff;
    --text-color: #333333;
}

body {
    background-color: var(--bg-color);
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

.login-container {
    margin-top: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #37474f 0%, #263238 100%);
    color: white;
    padding-top: 20px;
    position: fixed;
    height: 100%;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar .brand-logo {
    display: block;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #fff;
    text-decoration: none;
}

.sidebar ul.side-nav-links {
    list-style: none;
    padding: 0;
}

.sidebar ul.side-nav-links li {
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar ul.side-nav-links li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar ul.side-nav-links li a {
    color: #cfd8dc;
    font-size: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar ul.side-nav-links li a i {
    margin-right: 15px;
}

.main-content {
    margin-left: 280px;
    /* Sidebar width */
    width: calc(100% - 280px);
    padding: 20px;
    background-color: var(--bg-color);
}

/* Tabs Styling */
.tabs .tab a {
    color: var(--primary-color);
}

.tabs .tab a:hover,
.tabs .tab a.active {
    background-color: transparent;
    color: var(--primary-color);
}

.tabs .indicator {
    background-color: var(--secondary-color);
}

/* Card Styling */
.card-panel {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
}

.champion-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #ffc107;
    color: #333;
    font-weight: bold;
    font-size: 0.8em;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Points Circle */
.points-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    color: white;
    margin-bottom: 20px;
}

.points-value {
    font-size: 2.5em;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        z-index: 9999;
        /* Ensure it's on top of everything */
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0 !important;
        /* Force override */
        width: 100% !important;
    }

    .nav-wrapper .brand-logo {
        font-size: 1.2rem;
        left: 50% !important;
        /* Center the logo */
        transform: translateX(-50%);
        position: absolute;
    }

    .nav-wrapper {
        display: flex;
        align-items: center;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 15px;
    color: #333;
    z-index: 10000;
    position: relative;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
}