/* ==========================================================================
   UNIVERSAL DATA FILTER — global styles
   (Presunuto z Energetika.SharedUI/Components/Filters/UniversalDataFilter.razor.css
    — scoped CSS nedosahne do child komponent UniversalFilterPrimaryRow,
    UniversalFilterAdvanced, UniversalFilterSvjContext. Prefix efb-* je unikatni.)
   ========================================================================== */

.efb-card {
    background: var(--wh-surface);
    border-radius: 20px;
    border: 1px solid var(--wh-border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

/* --- Header strip --- */
.efb-header {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.efb-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.efb-icon-wrap {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.efb-header-title {
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.efb-advanced-toggle {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: background 0.15s;
    letter-spacing: 0.02em;
}

.efb-advanced-toggle:hover {
    background: rgba(255,255,255,0.25);
}

/* --- Primary row --- */
.efb-primary-row {
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.efb-search-wrap {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}

.efb-select-wrap {
    min-width: min(170px, 100%);
    max-width: 240px;
    flex: 1;
}

.efb-date-wrap {
    flex: 2;
    min-width: min(300px, 100%);
}

.efb-refresh-wrap {
    margin-left: auto;
}

/* --- Inline primary row extras --- */
.efb-tod-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.efb-days-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.efb-inline-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--wh-text-2);
    text-transform: uppercase;
    white-space: nowrap;
}

/* --- SVJ context bar --- */
.efb-svj-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(79, 180, 229,0.07) 0%, rgba(79, 180, 229,0.04) 100%);
    border-top: 1px solid rgba(79, 180, 229,0.18);
}

.efb-svj-bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--wh-bolt-sky-deep);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding: 4px 10px;
    background: rgba(79, 180, 229,0.10);
    border-radius: 8px;
    border: 1px solid rgba(79, 180, 229,0.25);
}

/* --- Advanced section --- */
.efb-advanced-body {
    background: linear-gradient(135deg, rgba(79, 180, 229,0.03) 0%, rgba(79, 180, 229,0.03) 100%);
    border-top: 1px solid rgba(79, 180, 229, 0.1);
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.efb-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.efb-filter-group--wide {
    flex: 1;
    min-width: 320px;
}

.efb-filter-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--wh-text-2);
    text-transform: uppercase;
}

/* --- Day phase toggle (☀ 24h 🌙) --- */
.efb-day-phase-toggle {
    display: flex;
    background: var(--wh-surface-alt);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
}

.efb-day-phase-toggle button {
    border: none;
    background: transparent;
    border-radius: 9px;
    width: 38px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--wh-text-2);
    transition: all 0.15s ease;
}

.efb-day-phase-toggle button:hover {
    background: var(--wh-surface);
}

.efb-day-phase-toggle button.phase--day-active {
    background: linear-gradient(135deg, var(--wh-bolt-yellow), var(--wh-bolt-orange));
    color: white;
    box-shadow: 0 2px 8px rgba(245, 217, 10,0.45);
}

.efb-day-phase-toggle button.phase--all-active {
    background: linear-gradient(135deg, var(--wh-bolt-sky), var(--wh-bolt-sky-deep));
    color: white;
    box-shadow: 0 2px 8px rgba(79, 180, 229,0.35);
}

.efb-day-phase-toggle button.phase--night-active {
    background: linear-gradient(135deg, var(--wh-night-3), var(--wh-night-2));
    color: var(--wh-night-text);
    box-shadow: 0 2px 8px rgba(16, 27, 45, 0.45);
}

/* --- Days of week chips --- */
.efb-days-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.efb-day-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.efb-day-chip {
    border: 1.5px solid var(--wh-border);
    background: var(--wh-surface);
    border-radius: 9px;
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wh-text-2);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.efb-day-chip:hover {
    border-color: var(--wh-bolt-sky);
    color: var(--wh-bolt-sky);
}

.efb-day-chip--active {
    background: linear-gradient(135deg, var(--wh-bolt-sky), var(--wh-bolt-sky-deep));
    border-color: var(--wh-bolt-sky);
    color: white !important;
    box-shadow: 0 2px 6px rgba(79, 180, 229,0.3);
}

.efb-day-chip--weekend.efb-day-chip--active {
    background: linear-gradient(135deg, var(--wh-bolt-yellow), var(--wh-bolt-orange));
    border-color: var(--wh-bolt-orange);
    box-shadow: 0 2px 6px rgba(242, 148, 65,0.35);
}

/* --- Day presets (Vše / Pracovní / Víkend) --- */
.efb-day-presets {
    display: flex;
    gap: 4px;
}

.efb-preset-btn {
    border: 1.5px solid var(--wh-border);
    background: var(--wh-surface);
    border-radius: 9px;
    padding: 0 10px;
    height: 34px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wh-text-2);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.efb-preset-btn:hover {
    border-color: var(--wh-bolt-sky);
    color: var(--wh-bolt-sky);
}

.efb-preset-btn--active {
    background: linear-gradient(135deg, var(--wh-bolt-sky), var(--wh-bolt-sky-deep));
    border-color: var(--wh-bolt-sky);
    color: white;
    box-shadow: 0 2px 6px rgba(79, 180, 229,0.3);
}

/* --- Chart type toggle --- */
.efb-chart-type-toggle {
    display: flex;
    background: var(--wh-surface-alt);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
}

.efb-chart-btn {
    border: none;
    background: transparent;
    border-radius: 9px;
    width: 38px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--wh-text-2);
    transition: all 0.15s ease;
}

.efb-chart-btn:hover {
    background: var(--wh-surface);
    color: var(--wh-bolt-sky);
}

.efb-chart-btn--active {
    background: linear-gradient(135deg, var(--wh-bolt-sky), var(--wh-bolt-sky-deep));
    color: white;
    box-shadow: 0 2px 8px rgba(79, 180, 229,0.35);
}
