/* =============================================================
   index.css — Dashboard page
   Digital Print Studio M brand
   ============================================================= */

/* ── Stat row ───────────────────────────────────────────── */

.stat-row {
    margin-top: 20px;
    margin-bottom: 8px;
}

.stat-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: none;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 305px;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* Top accent line */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #212121;
    border-radius: 4px 4px 0 0;
}

/* ── Stat card icon ─────────────────────────────────────── */

.stat-icon {
    font-size: 26px;
    color: #212121;
    margin-bottom: 10px;
    line-height: 1;
}

/* ── Stat card content ──────────────────────────────────── */

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    min-height: 0;
}

.stat-card h5 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

/* ── Stat header row (columns) ──────────────────────────── */

.stat-header {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background-color: #212121;
    color: #fff;
    border-radius: 3px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Stat list ──────────────────────────────────────────── */

.stat-list-container {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    margin-bottom: 8px;
}

.stat-content ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.stat-content li,
.stat-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
    border-radius: 0;
    margin: 0;
    font-size: 12px;
    color: #333;
    transition: background 0.15s;
}

.stat-content li:hover,
.stat-list-item:hover {
    background-color: #fafafa;
}

.stat-content li:last-child,
.stat-list-item:last-child {
    border-bottom: none;
}

.stat-list-item span {
    display: block;
    flex-basis: 33.33%;
}

.stat-list-item-left  { text-align: left; }
.stat-list-item-right { text-align: right; }

/* ── Navigator buttons ──────────────────────────────────── */

.navigator {
    position: absolute;
    bottom: 12px;
    left: 0; right: 0;
    text-align: center;
    width: 100%;
}

.navigator button {
    min-width: 72px;
    height: 32px;
    margin: 0 6px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.navigator button:hover {
    background-color: #212121;
}

.navigator button:disabled {
    background-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

/* ── Worker status badges ───────────────────────────────── */

.worker-active {
    background-color: #f0faf0 !important;
    color: #1a5c1a !important;
    font-weight: 600 !important;
}

.worker-inactive {
    background-color: #fdf2f2 !important;
    color: #8b1a1a !important;
}

/* ── TV / fullscreen mode ───────────────────────────────── */

:fullscreen .main-header,
:fullscreen .app-sidebar,
:fullscreen .main-footer {
    display: none !important;
}

:fullscreen .app-content {
    margin-left: 0 !important;
}

:fullscreen .card {
    height: 100vh;
    overflow: auto;
    border: none;
    margin: 0;
    border-radius: 0;
}

:fullscreen .card::before {
    display: none;
}
