/* assets/css/app.css */

:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --accent: #00acc1;
    --success: #2e7d32;
    --warning: #f57f17;
    --danger: #c62828;
    --bg: #f5f6fa;
}

body {
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.92rem;
}

/* ── NAVBAR ──────────────────────────── */
.navbar { background: var(--primary) !important; }
.navbar-brand { letter-spacing: .5px; }

/* ── CARDS ──────────────────────────── */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* ── STAT CARDS ──────────────────────── */
.stat-card {
    border-radius: 14px;
    padding: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-card .stat-icon {
    font-size: 2.4rem;
    opacity: .85;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.stat-card .stat-label {
    font-size: .8rem;
    opacity: .85;
    margin-top: 2px;
}
.bg-stat-blue    { background: linear-gradient(135deg, #1a237e, #3949ab); }
.bg-stat-teal    { background: linear-gradient(135deg, #00695c, #00acc1); }
.bg-stat-orange  { background: linear-gradient(135deg, #e65100, #fb8c00); }
.bg-stat-red     { background: linear-gradient(135deg, #b71c1c, #e53935); }

/* ── BADGE STATUS ────────────────────── */
.badge-baik           { background: #c8e6c9; color: #1b5e20; }
.badge-perlu_perhatian{ background: #fff3e0; color: #e65100; }
.badge-rusak          { background: #ffcdd2; color: #b71c1c; }

/* ── TABLE ───────────────────────────── */
.table th { background: #e8eaf6; color: var(--primary); font-weight: 600; }
.table-hover tbody tr:hover { background: #e8eaf6; }

/* ── ASSET DETAIL ────────────────────── */
.asset-detail-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.asset-code-badge {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(255,255,255,.2);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}
.timeline {
    position: relative;
    padding-left: 1.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0; bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.timeline-item {
    position: relative;
    padding-bottom: 1.2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.13rem;
    top: 5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-light);
}
.timeline-item .time {
    font-size: .75rem;
    color: #9e9e9e;
}

/* QR Print Label CSS dipindah ke masing-masing halaman print (qr_bulk.php, print_by_location.php, asset_print_label.php) supaya tidak konflik antar halaman */

/* ── MOBILE TWEAKS ───────────────────── */
@media (max-width: 576px) {
    .container-fluid { padding: .75rem; }
    .stat-card .stat-value { font-size: 1.5rem; }
    h4 { font-size: 1.1rem; }
}

/* ── SCAN QR BUTTON ──────────────────── */
.btn-scan {
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    font-size: 1.1rem;
    padding: .75rem 2rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0,172,193,.4);
}
.btn-scan:hover { background: #0097a7; color: #fff; }

/* ── FORM ────────────────────────────── */
.form-label { font-weight: 500; color: #424242; }
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 .2rem rgba(57,73,171,.2);
}

/* ── ALERTS ──────────────────────────── */
.alert { border: none; border-radius: 10px; }