/*
 * MQ Photo Queue — Custom Component Styles
 * Edit file ini langsung, tidak perlu npm run build.
 * Tailwind utilities di-handle oleh CDN (tailwindcss/browser).
 * Bootstrap 5 di-handle oleh CDN Bootstrap.
 */

/* ── Base ── */
body {
    background-color: #f7f7f8;
    font-family: "Inter", system-ui, sans-serif;
    color: #1a1a2e;
    font-size: 14px;
}

/* ── Override Bootstrap shadow !important so Tailwind shadow-* wins ── */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
}
.shadow {
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 0.08) !important;
}
.shadow-md {
    box-shadow:
        0 4px 10px -1px rgb(0 0 0 / 0.08),
        0 2px 4px -2px rgb(0 0 0 / 0.05) !important;
}
.shadow-lg {
    box-shadow:
        0 8px 20px -4px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.05) !important;
}
.shadow-xl {
    box-shadow: 0 20px 40px -8px rgb(0 0 0 / 0.16) !important;
}
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.2) !important;
}
.shadow-none {
    box-shadow: none !important;
}

/* ── Fix: Tailwind v4 generates .collapse { visibility:collapse } which breaks Bootstrap ── */
.collapse {
    visibility: visible !important;
}
.collapse:not(.show) {
    display: none !important;
}
.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
    visibility: visible !important;
}

/* ── Navbar ── */
.mq-navbar {
    background: #fff;
    border-bottom: 1px solid #e8e8ec;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 8px rgb(0 0 0 / 0.06);
}
.mq-navbar .container {
    height: 60px;
}

.mq-nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: #6b7280 !important;
    padding: 6px 14px !important;
    border-radius: 8px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}
.mq-nav-link:hover {
    color: #111 !important;
    background: #f7f7f8;
    text-decoration: none;
}
.mq-nav-link.active {
    color: #c0392b !important;
    background: #fdf2f2;
    font-weight: 600;
}

.navbar-toggler {
    border: 1px solid #e8e8ec;
    padding: 4px 8px;
}

/* Offcanvas toggler */
.mq-toggler {
    border: 1px solid #e8e8ec;
    background: #fff;
    border-radius: 8px;
    padding: 4px 9px;
    color: #333;
    line-height: 1;
    transition: background 0.15s;
}
.mq-toggler:hover {
    background: #f7f7f8;
}

/* Offcanvas sidebar */
.mq-offcanvas {
    width: 270px !important;
    border-left: 1px solid #e8e8ec;
}
.mq-offcanvas .offcanvas-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 20px;
}
.mq-oc-user {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}
.mq-offcanvas .offcanvas-body .mq-nav-link {
    width: 100%;
    border-radius: 10px;
    padding: 9px 14px !important;
}

/* ── Buttons ── */
.btn-mq {
    background: #111111;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 16px;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.5;
}
.btn-mq:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

.btn-mq-red {
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 16px;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.5;
}
.btn-mq-red:hover {
    background: #a93226;
    color: #fff;
    text-decoration: none;
}

/* ── Cards ── */
.mq-card {
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.04);
}

/* ── Tables ── */
.mq-table {
    width: 100%;
    border-collapse: collapse;
}
.mq-table thead th {
    background: #111111;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    padding: 12px 14px;
}
.mq-table tbody tr {
    border-bottom: 1px solid #e8e8ec;
    transition: background 0.1s;
}
.mq-table tbody tr:last-child {
    border-bottom: none;
}
.mq-table tbody tr:hover {
    background: #fafafa;
}
.mq-table td {
    padding: 6px 14px;
    vertical-align: middle;
}

/* ── Badges ── */
.mq-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    display: inline-block;
}

/* ── Progress ── */
.mq-progress {
    height: 8px;
    border-radius: 999px;
    background: #f0f0f0;
}
.mq-progress .mq-progress-bar {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* ── Stat icon ── */
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ── Alerts ── */
.mq-alert {
    border-radius: 10px;
    border: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 12px 16px;
}

/* ── Page header ── */
.mq-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.mq-page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111;
}
.mq-page-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 2px 0 0;
}

/* ── Form controls — focus ring ── */
.form-control:focus,
.form-select:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgb(192 57 43 / 0.12);
}

/* ── Mobile responsive table ── */
@media (max-width: 767px) {
    .mq-table thead {
        display: none;
    }
    .mq-table tbody tr {
        display: block;
        border-radius: 12px;
        padding: 8px;
    }
    .mq-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 10px;
        border: none;
    }
    .mq-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        color: #6b7280;
        margin-right: 8px;
        flex-shrink: 0;
    }
}
