:root {
    --chivembe-dark: #1a1a1a;
    --chivembe-red: #E53935;
    --chivembe-red-dark: #C62828;
    --chivembe-gray: #6B7280;
    --chivembe-light: #F9FAFB;
    --chivembe-white: #FFFFFF;
    --sidebar-width: 280px;
    --header-height: 72px;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--chivembe-light);
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--chivembe-dark);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.sidebar-logo img {
    width: 100%;
}

.sidebar-brand-text .brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.sidebar-brand-text .brand-tagline {
    font-size: 0.65rem;
    color: var(--chivembe-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 12px;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-link.active {
    background: var(--chivembe-red);
    color: white;
}

.nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-link .nav-badge {
    margin-left: auto;
    background: var(--chivembe-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.nav-link.active .nav-badge {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.admin-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--chivembe-red) 0%, var(--chivembe-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.admin-info {
    flex: 1;
}

.admin-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.admin-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.admin-menu {
    display: flex;
    gap: 8px;
}

.admin-menu button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--chivembe-white);
    height: var(--header-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: var(--chivembe-light);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--chivembe-dark);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--chivembe-gray);
}

.breadcrumb-nav a {
    color: var(--chivembe-gray);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--chivembe-red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search {
    position: relative;
}

.header-search input {
    width: 280px;
    padding: 10px 16px 10px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 0.875rem;
    background: var(--chivembe-light);
    transition: all 0.3s ease;
}

.header-search input:focus {
    outline: none;
    border-color: var(--chivembe-red);
    background: var(--chivembe-white);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.header-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--chivembe-gray);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    position: relative;
    background: var(--chivembe-light);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--chivembe-gray);
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: var(--chivembe-red);
    color: white;
}

.header-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--chivembe-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page Content */
.page-content {
    padding: 32px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--chivembe-white);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.stat-card .stat-icon.red {
    background: rgba(229, 57, 53, 0.1);
    color: var(--chivembe-red);
}

.stat-card .stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.stat-card .stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.stat-card .stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--chivembe-gray);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--chivembe-dark);
    margin-bottom: 8px;
}

.stat-card .stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-card .stat-change.up {
    color: #22C55E;
}

.stat-card .stat-change.down {
    color: #EF4444;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card {
    background: var(--chivembe-white);
    border-radius: 20px;
    padding: 28px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--chivembe-dark);
}

.card-action {
    background: var(--chivembe-light);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--chivembe-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-action:hover {
    background: var(--chivembe-red);
    color: white;
}

/* Recent Orders Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--chivembe-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table td {
    font-size: 0.875rem;
    color: var(--chivembe-dark);
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: var(--chivembe-light);
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--chivembe-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--chivembe-dark);
    font-size: 0.875rem;
}

.customer-details h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--chivembe-dark);
    margin-bottom: 2px;
}

.customer-details span {
    font-size: 0.75rem;
    color: var(--chivembe-gray);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.status-badge.in-progress {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 16px;
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.red {
    background: rgba(229, 57, 53, 0.1);
    color: var(--chivembe-red);
}

.activity-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.activity-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.activity-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--chivembe-dark);
    margin-bottom: 4px;
}

.activity-content p {
    font-size: 0.8rem;
    color: var(--chivembe-gray);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.75rem;
    color: rgba(107, 114, 128, 0.6);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--chivembe-light);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: var(--chivembe-red);
    transform: translateY(-2px);
}

.quick-action:hover i,
.quick-action:hover span {
    color: white;
}

.quick-action i {
    font-size: 1.5rem;
    color: var(--chivembe-red);
    transition: color 0.3s ease;
}

.quick-action span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--chivembe-dark);
    transition: color 0.3s ease;
}

/* Mobile Menu Toggle */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 20px;
    }

    .header {
        padding: 0 20px;
    }
}