* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --dark: #111827;
    --dark-light: #1f2937;
    --background: #f5f7fb;
    --white: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #16a34a;
    --blue: #2563eb;
    --orange: #ea580c;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--dark);
    color: white;
    padding: 20px 15px;
    overflow-y: auto;
}

.logo {
    padding: 10px 15px 25px;
    border-bottom: 1px solid #374151;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 22px;
}

.logo span {
    color: #fb7185;
}

.logo p {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 5px;
}

.menu-title {
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d1d5db;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: 0.2s;
}

.menu-item:hover,
.menu-item.active {
    background: var(--primary);
    color: white;
}

.menu-icon {
    width: 20px;
    text-align: center;
}

/* =========================
   MAIN
========================= */

.main {
    margin-left: 250px;
    min-height: 100vh;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.page-title h2 {
    font-size: 20px;
}

.page-title p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* =========================
   CONTENT
========================= */

.content {
    padding: 30px;
}

.welcome {
    background: linear-gradient(
        135deg,
        #111827,
        #1f2937
    );
    color: white;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 25px;
}

.welcome h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.welcome p {
    color: #d1d5db;
}

/* =========================
   STAT CARDS
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-info h3 {
    font-size: 28px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.icon-red {
    background: #ffe4e6;
    color: var(--primary);
}

.icon-blue {
    background: #dbeafe;
    color: var(--blue);
}

.icon-green {
    background: #dcfce7;
    color: var(--success);
}

.icon-orange {
    background: #ffedd5;
    color: var(--orange);
}

/* =========================
   CARDS
========================= */

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}

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

.card-header h3 {
    font-size: 17px;
}

.card-header p {
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   BUSINESS LIST
========================= */

.business-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.business-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
}

.business-item h4 {
    margin-bottom: 6px;
}

.business-item p {
    color: var(--muted);
    font-size: 13px;
}

.business-code {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    margin-top: 10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 800px) {

    .sidebar {
        width: 70px;
        padding: 15px 8px;
    }

    .logo h1,
    .logo p,
    .menu-title,
    .menu-item span {
        display: none;
    }

    .logo {
        border: none;
        padding: 10px;
    }

    .menu-item {
        justify-content: center;
    }

    .main {
        margin-left: 70px;
    }

    .business-list {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

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

    .content {
        padding: 15px;
    }

    .topbar {
        padding: 0 15px;
    }

}