/*
 * Admin Panel Styles
 */

.admin-login {
    padding-top: 150px;
    min-height: 100vh;
}
.admin-login-box {
    max-width: 400px;
}
.admin-dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
    padding-top: 0; 
}
.admin-sidebar {
    width: 250px;
    background: #333;
    color: #fff;
    padding-top: 30px;
    position: fixed;
    height: calc(100% - 70px);
    top: 70px;
    z-index: 900; /* Ensure sidebar is above main content but below header */
}
.admin-sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    font-family: 'Poppins', sans-serif;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: #F7A400;
    color: #000;
}
.admin-main-content {
    margin-left: 250px;
    flex-grow: 1;
    padding: 30px;
    padding-top: 100px; 
}
.admin-panel h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}
.stat-box h4 {
    color: #777;
    font-size: 0.9em;
}
.stat-box p {
    font-size: 2em;
    font-weight: bold;
    margin-top: 5px;
    color: #333;
}

/* NEW: Admin Table Styles for content/assets */
.admin-panel table th, .admin-panel table td {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
}

.admin-panel table img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

/* Admin Responsive */
@media screen and (width < 950px) {
    .admin-sidebar {
        width: 200px; 
    }
    .admin-main-content {
        margin-left: 200px;
    }
}

@media screen and (width < 768px) {
    .admin-dashboard-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        position: static;
        width: 100%;
        top: 0;
        height: auto;
    }
    .admin-sidebar a {
        display: inline-block;
        width: auto;
    }
    .admin-main-content {
        margin-left: 0;
        padding-top: 30px;
    }
}