* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================================
   LOGIN
========================================= */

.login-body {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e3a8a,
            #2563eb
        );

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);

    border-radius: 20px;

    padding: 40px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.30);

    text-align: center;
}

.login-logo {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

    border-radius: 18px;

    background: #2563eb;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 35px;
}

.login-card h2 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-label {
    display: block;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.input-group-text {
    background: #f3f4f6;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
    padding: 12px;
}

.btn-login {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 13px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-login:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* =========================================
   DASHBOARD
========================================= */

.dashboard-body {
    background: #f5f7fb;
    color: #1f2937;
}

.app-container {
    min-height: 100vh;
    display: flex;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    width: 250px;
    min-height: 100vh;

    background: #111827;

    color: white;

    display: flex;
    flex-direction: column;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.brand {
    height: 85px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 20px;
}

.brand-icon {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: #2563eb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}

.brand h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.brand span {
    font-size: 10px;
    color: #9ca3af;
    letter-spacing: 1px;
}

.menu-title {
    font-size: 10px;

    color: #6b7280;

    font-weight: 700;

    letter-spacing: 1px;

    padding: 20px 20px 8px;
}

.sidebar-menu {
    padding: 0 12px;
}

.menu-item {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 12px 14px;

    margin-bottom: 4px;

    border-radius: 8px;

    color: #d1d5db;

    text-decoration: none;

    font-size: 14px;

    transition: 0.2s;
}

.menu-item:hover {
    background: #1f2937;
    color: white;
}

.menu-item.active {
    background: #2563eb;
    color: white;
}

.menu-item i {
    font-size: 17px;
}

.sidebar-bottom {
    margin-top: auto;

    padding: 15px;
}

.user-sidebar {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px;

    background: #1f2937;

    border-radius: 10px;

    margin-bottom: 10px;
}

.user-avatar,
.top-user-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #2563eb;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 12px;
}

.user-info span {
    font-size: 10px;
    color: #9ca3af;
}

.logout-btn {
    display: flex;

    justify-content: center;

    gap: 8px;

    padding: 10px;

    color: #fca5a5;

    text-decoration: none;

    font-size: 13px;
}

.logout-btn:hover {
    color: #ef4444;
}


/* =========================================
   MAIN
========================================= */

.main-content {
    margin-left: 250px;

    width: calc(100% - 250px);

    padding: 25px 30px;
}

.topbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.topbar h2 {
    font-size: 25px;

    font-weight: 700;

    margin-bottom: 3px;
}

.topbar p {
    color: #6b7280;

    font-size: 13px;

    margin: 0;
}

.topbar-user {
    display: flex;

    align-items: center;

    gap: 10px;
}

.topbar-user strong {
    display: block;

    font-size: 13px;
}

.topbar-user small {
    color: #6b7280;

    font-size: 11px;
}

.notification {
    width: 38px;
    height: 38px;

    border-radius: 9px;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6b7280;

    margin-right: 8px;

    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}


/* =========================================
   STATS
========================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 20px;
}

.stat-card {
    background: white;

    border-radius: 12px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow:
        0 3px 12px rgba(0,0,0,.04);
}

.stat-icon {
    width: 48px;
    height: 48px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.stat-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.stat-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.stat-card span {
    display: block;

    color: #6b7280;

    font-size: 12px;

    margin-bottom: 5px;
}

.stat-card h3 {
    margin: 0;

    font-size: 21px;

    font-weight: 700;
}


/* =========================================
   DASHBOARD CARDS
========================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns: 1.7fr 1fr;

    gap: 20px;

    margin-bottom: 20px;
}

.dashboard-card {
    background: white;

    border-radius: 12px;

    padding: 20px;

    box-shadow:
        0 3px 12px rgba(0,0,0,.04);
}

.card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.card-header h4 {
    font-size: 16px;

    font-weight: 700;

    margin: 0 0 4px;
}

.card-header span {
    color: #9ca3af;

    font-size: 11px;
}

.card-header > i {
    font-size: 20px;

    color: #2563eb;
}


/* =========================================
   TABLE
========================================= */

.custom-table {
    margin: 0;
}

.custom-table th {
    color: #6b7280;

    font-size: 11px;

    font-weight: 600;

    border-bottom: 1px solid #e5e7eb;
}

.custom-table td {
    padding: 14px 8px;

    font-size: 12px;

    vertical-align: middle;
}

.amount {
    font-weight: 700;
}

.empty-state {
    text-align: center;

    padding: 30px !important;

    color: #9ca3af;
}

.empty-state i {
    font-size: 28px;
}


/* =========================================
   STOCK
========================================= */

.stock-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #f1f1f1;
}

.stock-item:last-child {
    border-bottom: none;
}

.stock-product {
    display: flex;

    align-items: center;

    gap: 10px;
}

.stock-icon {
    width: 35px;
    height: 35px;

    background: #fef2f2;

    color: #ef4444;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-product strong {
    display: block;

    font-size: 12px;
}

.stock-product small {
    color: #9ca3af;

    font-size: 10px;
}

.stock-number {
    color: #ef4444;

    font-weight: 700;

    font-size: 13px;
}

.empty-stock {
    text-align: center;

    padding: 35px 10px;

    color: #16a34a;
}

.empty-stock i {
    font-size: 30px;
}

.empty-stock p {
    font-size: 12px;

    color: #6b7280;
}


/* =========================================
   QUICK ACTIONS
========================================= */

.quick-actions {
    margin-bottom: 20px;
}

.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.quick-grid a {
    text-decoration: none;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    padding: 16px;

    display: flex;

    align-items: center;

    gap: 10px;

    color: #374151;

    font-size: 12px;

    transition: .2s;
}

.quick-grid a:hover {
    border-color: #2563eb;

    color: #2563eb;

    background: #eff6ff;
}

.quick-grid i {
    font-size: 20px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .sidebar {
        width: 70px;
    }

    .brand div:not(.brand-icon),
    .menu-item span,
    .menu-title,
    .user-info,
    .logout-btn {
        display: none;
    }

    .brand {
        justify-content: center;
    }

    .main-content {
        margin-left: 70px;

        width: calc(100% - 70px);

        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

}
