/* Minimal admin styles */
:root{--bg:#f5f6f8;--card:#ffffff;--accent:#111827;--muted:#6b7280;--pill:#f3f4f6}
body{font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);margin:0;color:#111}
.admin-header{background:#fff;border-bottom:1px solid #e6e7eb;padding:14px 20px;display:flex;align-items:center;justify-content:space-between}
.admin-brand{font-weight:700;color:var(--accent)}
.admin-nav a{margin-left:12px;color:var(--muted);text-decoration:none}
.admin-container{max-width:1100px;margin:28px auto;padding:18px}
.card{background:var(--card);border-radius:10px;padding:18px;box-shadow:0 8px 20px rgba(17,24,39,0.04);}
.btn{display:inline-block;padding:8px 12px;border-radius:8px;background:var(--accent);color:#fff;text-decoration:none;border:none}
.btn.ghost{background:transparent;color:var(--accent);border:1px solid #e6e7eb}
table{width:100%;border-collapse:collapse}
th,td{padding:12px;border-bottom:1px solid #f1f1f3;text-align:left}
.form-row{margin-bottom:12px}
input[type="text"],input[type="email"],input[type="number"],input[type="file"],select,textarea{width:100%;padding:10px;border:1px solid #e6e7eb;border-radius:8px}
.search-box{display:flex;gap:8px;margin-bottom:12px}
.sizes-grid{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.size-item{min-width:100px}
.notice{padding:10px;background:#ecfdf5;color:#065f46;border-radius:8px;margin-bottom:12px}
.error{padding:10px;background:#fff2f2;color:#991b1b;border-radius:8px;margin-bottom:12px}

body.admin-login{background-image:url('../images/eleastore.jpg');background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed;color:#111}
body.admin-login .admin-container{max-width:420px;margin:120px auto 28px;padding:0;background:transparent}
body.admin-login .login-card{margin:0;padding:30px;background:rgba(255,255,255,0.94);border-radius:18px;box-shadow:0 22px 60px rgba(0,0,0,0.18)}
body.admin-login .btn{background:#111827}
body.admin-login .card h2{margin-top:0}
body.admin-login .error{background:rgba(248,113,113,0.15);color:#b91c1c}
body.admin-login input[type="text"],body.admin-login input[type="email"],body.admin-login input[type="password"],body.admin-login input[type="number"],body.admin-login select,body.admin-login textarea{background:#fff}
body.admin-login .admin-header{display:none}

.badge{display:inline-block;padding:3px 8px;border-radius:6px;font-size:12px;font-weight:600}
.badge-low{background:#fef3c7;color:#92400e}
.badge-over{background:#dbeafe;color:#1e40af}
.badge-ok{background:#d1fae5;color:#065f46}
.alert{padding:12px 14px;border-radius:8px;margin-bottom:12px;font-size:14px}
.alert-warning{background:#fffbeb;color:#92400e;border:1px solid #fde68a}
.low-stock-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0}
.summary-card{background:#f9fafb;border-radius:8px;padding:14px;text-align:center}
.summary-card .summary-value{font-size:24px;font-weight:700}
.summary-card .summary-label{font-size:12px;color:var(--muted);margin-top:4px}
.summary-ok .summary-value{color:#065f46}
.summary-low .summary-value{color:#92400e}
.summary-over .summary-value{color:#1e40af}

@media print{
    .admin-header,.btn,.search-box{display:none!important}
    .admin-container{margin:0;max-width:100%}
    .card{box-shadow:none}
}
