/* ======================================================================
   Liberty Networks B2B Dashboard — Global Styles
   Matches the hand-crafted HTML prototype (LN_B2B_Dashboard.html)
   ====================================================================== */

body { font-family: 'Inter', system-ui, sans-serif; background: #f8fafc; }

/* Glass card effect */
.glass {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

/* KPI card hover */
.kpi-card { transition: all 0.3s cubic-bezier(.4, 0, .2, 1); }
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Table row hover */
.table-row { transition: background 0.15s; }
.table-row:hover { background: #f1f5f9; }

/* Tab buttons */
.tab-btn { transition: all 0.2s; }
.tab-btn.active {
    background: #fb6021;
    color: #fff;
    box-shadow: 0 2px 12px rgba(251, 96, 33, 0.3);
}

/* Gradient text — Liberty orange gradient */
.gradient-text {
    background: linear-gradient(135deg, #fb6021 0%, #c74a17 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ApexCharts font override */
.apexcharts-tooltip { font-family: 'Inter', sans-serif !important; }

/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

/* Entry animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up  { animation: fadeUp 0.6s ease-out forwards; }
.delay-1  { animation-delay: 0.1s; opacity: 0; }
.delay-2  { animation-delay: 0.2s; opacity: 0; }
.delay-3  { animation-delay: 0.3s; opacity: 0; }
.delay-4  { animation-delay: 0.4s; opacity: 0; }

/* Pills */
.pill-up      { background: #dcfce7; color: #166534; }
.pill-down    { background: #fee2e2; color: #991b1b; }
.pill-neutral { background: #f1f5f9; color: #475569; }

/* ======================================================================
   Filter bar styles
   ====================================================================== */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 10px;
    margin-bottom: 12px;
}
.filter-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    white-space: nowrap;
}

.toggle-group {
    display: inline-flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.toggle-btn {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: white;
    color: #64748b;
    transition: all 0.15s;
    border-right: 1px solid #e2e8f0;
}
.toggle-btn:last-child { border-right: none; }
.toggle-btn.active {
    background: #fb6021;
    color: white;
    font-weight: 600;
}
.toggle-btn:hover:not(.active) {
    background: #f8fafc;
    color: #1e293b;
}

.filter-select {
    padding: 5px 26px 5px 10px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}
.filter-select:focus {
    outline: none;
    border-color: #fb6021;
    box-shadow: 0 0 0 2px rgba(251, 96, 33, 0.15);
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}
.filter-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #fb6021;
    cursor: pointer;
}
.filter-check.checked { color: #1e293b; }

.filter-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
}

input[type="text"].filter-search {
    padding: 5px 10px !important;
    font-size: 11px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: white !important;
    color: #1e293b !important;
    width: 180px;
    line-height: 1.4;
}
input[type="text"].filter-search:focus {
    outline: none !important;
    border-color: #fb6021 !important;
    box-shadow: 0 0 0 2px rgba(251, 96, 33, 0.15) !important;
}
input[type="text"].filter-search::placeholder { color: #94a3b8; }

/* Tabular numbers */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ======================================================================
   Blazor reconnect UI
   ====================================================================== */
#blazor-error-ui {
    background: #fef2f2;
    color: #991b1b;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
.loading-progress, .loading-progress-text { display: none; }
