/* ===== RESET ===== */
* { margin:0; padding:0; box-sizing:border-box; }

html {
    font-size: 14px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg,#f8fafc,#eef2ff);
    color:#0f172a;
    line-height: 1.4;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    padding: 14px;
    padding-bottom: 80px;
}

/* ===== CARD ===== */
.card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius:16px;
    padding:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
    margin-bottom:14px;
    transition:0.25s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg,#2563eb,#4f46e5);
    color:#fff;
    padding:14px;
    border-radius:0 0 18px 18px;
    text-align:center;
    box-shadow:0 6px 20px rgba(37,99,235,0.25);
}

.header h1 {
    font-size:16px;
    font-weight:600;
}

/* ===== BUTTON ===== */
.btn {
    display:block;
    width:100%;
    padding:11px;
    border-radius:10px;
    font-weight:600;
    border:none;
    cursor:pointer;
    text-align:center;
    text-decoration:none;
    margin-top:8px;
    font-size:13px;
    transition:0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg,#2563eb,#4f46e5);
    color:#fff;
}

.btn-danger {
    background:#ef4444;
    color:#fff;
}

/* ===== INPUT ===== */
.form-group { margin-bottom:12px; }

.form-group input {
    width:100%;
    padding:11px;
    border-radius:10px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
    font-size:13px;
    transition:0.2s;
}

.form-group input:focus {
    border-color:#2563eb;
    background:#fff;
    outline:none;
}

/* ===== GRID ===== */
.grid {
    display:grid;
    grid-template-columns: 1fr;
    gap:10px;
}

/* ===== STAT CARD ===== */
.stat-card {
    padding:14px;
    border-radius:14px;
    text-align:center;
    font-weight:600;
}

.stat-card h3 {
    font-size:18px;
    margin-bottom:3px;
}

.stat-card p {
    font-size:11px;
}

/* 🎨 Colors */
.stat-card:nth-child(1){ background:#eff6ff; }
.stat-card:nth-child(2){ background:#fef9c3; }
.stat-card:nth-child(3){ background:#ecfdf5; }
.stat-card:nth-child(4){ background:#e0f2fe; }
.stat-card:nth-child(5){ background:#ede9fe; }
.stat-card:nth-child(6){ background:#fee2e2; }

/* ===== BADGES ===== */
.badge {
    padding:4px 8px;
    border-radius:16px;
    font-size:10px;
    font-weight:600;
}

.badge-success { background:#dcfce7;color:#16a34a; }
.badge-warning { background:#fef9c3;color:#ca8a04; }
.badge-danger { background:#fee2e2;color:#dc2626; }
.badge-primary { background:#eff6ff;color:#2563eb; }

/* ===== ORDER CARD ===== */
.order-card {
    background:#fff;
    border-radius:14px;
    padding:12px;
    margin-bottom:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.order-card p {
    font-size:12px;
    margin:3px 0;
}

/* ===== ACTION ROW ===== */
.action-row {
    display:flex;
    gap:6px;
    margin-top:8px;
}

.action-row .btn {
    flex:1;
    font-size:11px;
    padding:9px;
}

/* ===== NAVBAR (OPTIONAL REMOVE) ===== */
.navbar {
    position:fixed;
    bottom:0;
    width:100%;
    background:#fff;
    display:flex;
    justify-content:space-around;
    padding:6px 0;
    box-shadow:0 -4px 12px rgba(0,0,0,0.08);
}

.navbar a {
    font-size:10px;
    text-align:center;
    color:#64748b;
}

.navbar a span {
    display:block;
    font-size:14px;
}

.navbar a.active {
    color:#2563eb;
}

/* ===== LOGIN ===== */
.login-wrapper {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    padding:16px;
}

.login-box {
    width:100%;
    max-width:360px;
    text-align:center;
}

/* ===== EMPTY ===== */
.empty-box {
    text-align:center;
    color:#64748b;
    padding:16px;
}

/* =========================
   📱 TABLET (≥576px)
========================= */
@media(min-width:576px) {

    html { font-size: 15px; }

    .grid {
        grid-template-columns: repeat(2,1fr);
    }

    .container {
        padding:18px;
    }
}

/* =========================
   💻 SMALL LAPTOP (≥768px)
========================= */
@media(min-width:768px) {

    html { font-size: 16px; }

    .container {
        max-width:720px;
        margin:auto;
    }

    .grid {
        grid-template-columns: repeat(3,1fr);
    }

    .header h1 {
        font-size:18px;
    }
}

/* =========================
   🖥 DESKTOP (≥1024px)
========================= */
@media(min-width:1024px) {

    .container {
        max-width:900px;
    }

    .card {
        padding:20px;
    }

    .btn {
        font-size:14px;
        padding:12px;
    }
}

/* =========================
   🖥 LARGE SCREEN (≥1280px)
========================= */
@media(min-width:1280px) {

    .container {
        max-width:1100px;
    }
}