:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #10b981;
    --dark: #1e293b;
    --light-bg: #f8fafc;
}

* { font-family: 'Poppins', sans-serif; }

body { background: var(--light-bg); }

/* ============ NAVBAR ============ */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.navbar-brand { font-weight: 700; font-size: 1.3rem; }
.cart-badge {
    position: absolute; top: -2px; right: -8px; font-size: .6rem;
}

/* ============ HERO ============ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    padding: 80px 0;
}
.hero-section h1 { font-weight: 700; }
.hero-section .btn-light { font-weight: 600; }

/* ============ CARDS ============ */
.laptop-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    height: 100%;
}
.laptop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.laptop-card img, .laptop-card .img-placeholder {
    height: 190px;
    object-fit: cover;
    width: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}
.laptop-card .card-body { padding: 18px; }
.price-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}
.badge-status-available { background: #dcfce7; color: #16a34a; }
.badge-status-maintenance { background: #fef3c7; color: #d97706; }
.badge-status-inactive { background: #fee2e2; color: #dc2626; }

/* ============ SECTION ============ */
.section-title { font-weight: 700; position: relative; padding-bottom: 10px; }
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 60px; height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

/* ============ FOOTER ============ */
.footer-section {
    background: var(--dark);
    color: #cbd5e1;
}

/* ============ AUTH ============ */
.auth-wrapper {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}
.auth-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* ============ ADMIN LAYOUT ============ */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px;
    background: var(--dark);
    color: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    padding: 22px 20px;
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-menu { list-style: none; padding: 15px 0; margin: 0; }
.sidebar-menu li a {
    display: block;
    padding: 12px 22px;
    color: #cbd5e1;
    text-decoration: none;
    transition: .2s;
    font-size: .93rem;
}
.sidebar-menu li a:hover, .sidebar-menu li.active a {
    background: rgba(79,70,229,.25);
    color: #fff;
    border-left: 3px solid var(--primary);
}
.sidebar-menu i { width: 20px; margin-right: 8px; }

.admin-content { flex-grow: 1; min-width: 0; }
.admin-topbar {
    background: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 5px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-body-content { padding: 24px; }

.stat-card {
    border: none;
    border-radius: 14px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}
.stat-card i { font-size: 2rem; opacity: .8; }
.stat-card h3 { font-weight: 700; margin: 8px 0 0; }
.bg-grad-1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.bg-grad-2 { background: linear-gradient(135deg, #10b981, #059669); }
.bg-grad-3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-grad-4 { background: linear-gradient(135deg, #ef4444, #dc2626); }

.table-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

@media (max-width: 991px) {
    .admin-sidebar { position: fixed; left: -260px; z-index: 1050; transition: .3s; }
    .admin-sidebar.show { left: 0; }
}