/* ============================================================
   SCITBOSS SHOES - Design System (shared)
   DEVELOP BY SCITBOSS - WWW.SCITBOSS.COM - WWW.KYPRO.TOP
   ============================================================ */
:root {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --primary-soft: #ffe4e6;
    --accent: #0f172a;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --ok: #16a34a;
    --ok-soft: #dcfce7;
    --warn: #d97706;
    --warn-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg: 0 20px 50px rgba(15,23,42,.18);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-h: 60px;
    --sidebar-w: 260px;
}
[data-theme="dark"] {
    --bg: #0b1220;
    --surface: #111a2e;
    --surface-2: #0f172a;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #1e293b;
    --accent: #e2e8f0;
    --primary-soft: #3f1220;
    --ok-soft: #052e16;
    --warn-soft: #3f2d05;
    --danger-soft: #3f0d0d;
    --info-soft: #0c2447;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; font-size: .85em; }

/* Layout helpers */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.row.between { justify-content: space-between; }
.row.center { align-items: center; }
.grid-cards { display: grid; gap: 1rem; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.muted { color: var(--muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.small { font-size: .82rem; }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .6rem 1.05rem; border-radius: 10px; border: 1px solid transparent;
    font-size: .9rem; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all .15s ease; text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color:#fff; }
.btn-dark { background: var(--accent); color: var(--surface); }
[data-theme="dark"] .btn-dark { color:#0f172a; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--ok); color: #fff; }
.btn-light { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-sm { padding: .35rem .65rem; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-icon { padding: .45rem; width: 34px; height: 34px; }

/* Forms */
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], input[type=date], input[type=tel], input[type=search],
select, textarea {
    width: 100%; padding: .6rem .75rem; border: 1px solid var(--line);
    border-radius: 9px; font-size: .92rem; font-family: inherit;
    background: var(--surface); color: var(--text); transition: border .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,29,72,.15);
}
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
.form-hint { font-size: .76rem; color: var(--muted); margin-top: .25rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .25rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1/-1; }
.check-inline { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .88rem; }
.check-inline input { margin: 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 1.25rem; }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
table.data tr:hover td { background: var(--surface-2); }
table.data .thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Badges */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: capitalize; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; }

/* Alerts / flash */
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .88rem; border: 1px solid transparent; }
.alert.success { background: var(--ok-soft); color: var(--ok); }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }

/* Pagination */
.pagination { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: 1rem; }
.pagination a, .pagination span { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; background: var(--surface); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Empty state */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { font-size: 2.4rem; margin-bottom: .5rem; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.6); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 1rem; }
.modal { background: var(--surface); border-radius: var(--radius); max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }
.modal-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.modal-body { padding: 1.25rem; }
.modal-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .6rem; }

/* Toast */
.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 120; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--accent); color: #fff; padding: .75rem 1rem; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .88rem; min-width: 220px; animation: slideIn .2s ease; }
.toast.success { background: var(--ok); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Utility */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.stat .label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 1.7rem; font-weight: 800; margin-top: .25rem; }
.stat .sub { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
