/* Shils Admin Panel Modern Styling */
:root {
    --shils-admin-bg: #0f172a;
    --shils-sidebar-bg: #1e293b;
    --shils-sidebar-hover: #334155;
    --shils-accent: #3b82f6;
    --shils-accent-hover: #2563eb;
    --shils-card-bg: #ffffff;
    --shils-body-bg: #f8fafc;
    --shils-text: #0f172a;
    --shils-muted: #64748b;
    --shils-border: #e2e8f0;
}

body.admin-body {
    background-color: var(--shils-body-bg);
    color: var(--shils-text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background-color: var(--shils-sidebar-bg);
    color: #f1f5f9;
    min-height: 100vh;
    transition: all 0.3s ease;
    z-index: 1040;
}

.admin-sidebar .brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 4px 12px;
    font-weight: 500;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link i {
    width: 24px;
    font-size: 1.05rem;
    margin-right: 10px;
}

.admin-sidebar .nav-link:hover {
    color: #ffffff;
    background-color: var(--shils-sidebar-hover);
}

.admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--shils-accent);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.admin-topbar {
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--shils-border);
    padding: 0 1.5rem;
}

.admin-stat-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--shils-border);
    padding: 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.table-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--shils-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    overflow: hidden;
}

.table-card .card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--shils-border);
    padding: 1.1rem 1.4rem;
}

.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--shils-muted);
    background-color: #f8fafc;
    font-weight: 600;
    border-bottom: 1px solid var(--shils-border);
    padding: 0.85rem 1rem;
}

.admin-table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--shils-border);
}

.product-thumb {
    width: 48px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-processing {
    background-color: #e0e7ff;
    color: #3730a3;
}

.badge-delivered {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
    }
    .admin-sidebar.show {
        left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1030;
    }
    .sidebar-overlay.show {
        display: block;
    }
}
