:root {
    --bg: #050505;
    --card-bg: #0a0a0a;
    --accent: #0066FF;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.1);
    --success: #25D366;
    --warning: #FFD700;
    --danger: #FF3B30;
    --radius: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* LOGIN OVERLAY */
#login-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: clamp(24px, 5vw, 48px);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

/* DASHBOARD LAYOUT */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(15px, 4vw, 30px);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: clamp(20px, 5vw, 40px);
    border-bottom: 1px solid var(--border);
}

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

.logo-text {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: clamp(16px, 4vw, 22px);
}

.logo-sub {
    font-size: 8px;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: 800;
    text-transform: uppercase;
}

/* CARDS */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(15px, 3vw, 24px);
    margin-bottom: 20px;
    transition: var(--transition);
}

h2 {
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

/* FORMS */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
input, select, textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 16px;
    color: white;
    font-family: 'Outfit', sans-serif;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    transition: var(--transition);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    min-height: 48px;
    user-select: none;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,102,255,0.4); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary { background: rgba(255,255,255,0.06); color: white; border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.btn-status {
    padding: 10px;
    font-size: 10px;
    opacity: 0.6;
    border: 1px solid transparent;
}
.btn-status.active {
    opacity: 1;
    background: var(--accent);
    color: white;
    box-shadow: 0 5px 15px rgba(0,102,255,0.3);
}

/* LIST & ITEMS */
.repair-list { display: flex; flex-direction: column; gap: 12px; }
.repair-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.repair-item:hover { border-color: var(--accent); background: rgba(0,102,255,0.03); transform: translateX(5px); }

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* STATS BAR */
#stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

/* PRINT LABEL */
@media print {
    body * { visibility: hidden; }
    #label-container, #label-container * { visibility: visible; }
    #label-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 90mm;
        height: 29mm;
        background: white !important;
        color: black !important;
        display: flex;
        padding: 2mm;
        font-family: Arial, sans-serif;
    }
    @page { size: 90mm 29mm; margin: 0; }
}

#label-container {
    background: white;
    color: black;
    width: 90mm;
    height: 29mm;
    display: none;
    border: 1px solid #ccc;
}

/* PROGRESS BAR */
.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--accent);
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 10px var(--accent);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    header { gap: 15px; }
    .btn { padding: 12px 20px; font-size: 12px; }
    .repair-item { padding: 15px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .repair-item > div:last-child { width: 100%; text-align: left !important; }
    .status-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
    .status-grid { grid-template-columns: 1fr; }
    header { flex-direction: column; align-items: flex-start; }
    header > div:last-child { width: 100%; display: flex; gap: 10px; }
    header > div:last-child .btn { flex: 1; }
}
