﻿.admin-container {
    display: flex;
    flex-direction: row;
}

.admin-sidebar {
    width: 280px;
    background-color: #000;
    border-right: 1px solid #333;
    padding: 2rem 0;
    flex-shrink: 0;
    /* --- CHANGES ARE HERE --- */
    position: sticky; /* Keeps the sidebar in place */
    top: 0; /* Aligns it to the top of the viewport */
    height: 100vh; /* Makes it take up the full height of the screen */
}

.admin-nav .nav-link {
    display: block;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-left: 3px solid transparent;
}

    .admin-nav .nav-link:hover,
    .admin-nav .nav-link.active {
        background-color: #1a1a1a;
        border-left: 3px solid #fff;
    }

.admin-content {
    flex-grow: 1;
    padding: 2rem;
    background-color: #000;
    color: #fff;
    /* --- CHANGE IS HERE --- */
    /* This allows the content area to scroll independently */
    overflow-y: auto;
}

/* Add these styles to the end of wwwroot/css/admin.css */

.welcome-message {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.quick-stats-title {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 1rem;
    font-weight: 500;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #0000;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

    .stat-card .card-header {
        border-bottom: 1px solid #444;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

        .stat-card .card-header h3 {
            font-size: 1.2rem;
            color: #ffffff;
            margin: 0;
        }

    .stat-card .card-body p {
        font-size: 3rem;
        font-weight: bold;
        color: #ffffff;
        margin: 0;
    }