﻿:root {
    --ctrl-h: 44px;
}

.bg-app {
    background: #0b0f16;
}

.text-muted2 {
    color: rgba(255,255,255,.55) !important;
}

.dot {
    opacity: .6;
}

/* KPIs */
.kpi-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.kpi-ico {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.bg-primary-soft {
    background: rgba(13,110,253,.15);
}

.bg-orange-soft {
    background: rgba(255,140,0,.15);
}

.bg-violet-soft {
    background: rgba(124,58,237,.18);
}

.bg-amber-soft {
    background: rgba(255,193,7,.15);
}

.text-orange {
    color: #ff8c00 !important;
}

.text-violet {
    color: #7c3aed !important;
}

.text-amber {
    color: #ffc107 !important;
}

/* Controles (evita que el search se “encoga” en móvil) */
.ctrl-wrap {
    width: 100%;
}

.ctrl-ico {
    left: 14px;
}

.form-control-dark,
.form-select.form-control-dark {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    border-radius: 12px;
    height: var(--ctrl-h);
    width: 100% !important;
    min-width: 0;
}

    .form-control-dark::placeholder {
        color: rgba(255,255,255,.40);
    }

    .form-control-dark:focus,
    .form-select.form-control-dark:focus {
        background: rgba(255,255,255,.04);
        border-color: rgba(13,110,253,.45);
        box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
        color: #fff;
    }

.form-select.form-control-dark {
    padding-right: 2.25rem;
    -webkit-appearance: none;
    appearance: none;
}

/* Tabs */
.nav-pills-dark {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    width: 100%;
}

.tabs-just .nav-link {
    color: rgba(255,255,255,.70);
    border-radius: 10px;
    padding: 10px 14px;
    line-height: 1;
    height: var(--ctrl-h);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* centrado */
    gap: 8px;
    text-align: center;
    white-space: nowrap;
}

    .tabs-just .nav-link.active {
        background: rgba(255,255,255,.10);
        color: #fff;
    }

/* Panel */
.panel-dark {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.panel-dark-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px 18px;
}

.btn-refresh {
    border-radius: 10px;
    padding: 8px 12px;
    height: 40px;
    white-space: nowrap;
}

/* Items */
.log-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    align-items: flex-start;
}

    .log-item:hover {
        border-color: rgba(13,110,253,.30);
    }

.log-left {
    min-width: 110px;
    text-align: left;
}

.time {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
}

.badge-dark {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-link-light {
    color: rgba(255,255,255,.80);
    text-decoration: none;
    white-space: nowrap;
}

    .btn-link-light:hover {
        color: #fff;
    }

.emoji {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
    flex: 0 0 auto;
}

/* ✅ Tablet vertical + móvil: cards como móvil */
@media (max-width: 991.98px) {
    .log-item {
        flex-direction: column;
        gap: 10px;
    }

    .log-left {
        min-width: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .time {
        font-size: 18px;
        margin-bottom: 0;
    }

    .log-item .text-end {
        width: 100%;
        text-align: left !important;
    }

        .log-item .text-end .btn {
            width: 100%;
            justify-content: center;
        }

    .panel-dark-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
}
