/* ========================================
   BATTERIES SUMMARY PAGE STYLES
   Dedicated stylesheet for BatteriesSummary.razor
   Dark Industrial Theme - Page-specific styles only
   ======================================== */

/* ========== CONTAINER ========== */
.batteries-summary-container {
    padding: 1rem;
    max-width: 100%;
}

/* ========== HEADER CARD ========== */
.batteries-summary-container .header-card {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.85rem;
}

.batteries-summary-container .header-card .e-card-content {
    padding: 0 !important;
}

.batteries-summary-container .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.batteries-summary-container .header-text h1 {
    margin: 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00bcd4;
    font-weight: 300;
    letter-spacing: 1px;
}

.batteries-summary-container .header-text p {
    margin: 0.25rem 0 0 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== HEADER STATS ========== */
.header-stats {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    appearance: none;
    border: 1px solid transparent;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-chip:hover {
    transform: translateY(-1px);
}

.stat-chip:focus-visible {
    outline: 2px solid rgba(0, 188, 212, 0.8);
    outline-offset: 2px;
}

.stat-chip.selected {
    border-color: currentColor;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.stat-chip.online {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.stat-chip.online.selected {
    background: rgba(76, 175, 80, 0.34);
}

.stat-chip.off {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.stat-chip.off.selected {
    background: rgba(158, 158, 158, 0.34);
}

.stat-chip.offline {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.stat-chip.offline.selected {
    background: rgba(244, 67, 54, 0.34);
}

.stat-chip.starting {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.stat-chip.starting.selected {
    background: rgba(255, 152, 0, 0.34);
}

.stat-chip.total {
    background: rgba(0, 188, 212, 0.2);
    color: #00bcd4;
}

.stat-chip.total.selected {
    background: rgba(0, 188, 212, 0.34);
}

.stat-chip i {
    font-size: 0.6rem;
}

/* ========== HEADER CONTROLS ========== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-input {
    width: 250px;
}

.batteries-summary-container .header-controls {
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: min(100%, 360px);
}

.batteries-summary-container .search-input {
    flex: 0 1 250px;
    min-width: 180px;
}

.batteries-summary-container .header-controls .e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    padding-inline: 0.9rem;
    white-space: nowrap;
    overflow: visible;
}

/* ========== LOADING AND EMPTY STATES ========== */
.batteries-summary-container .loading-card,
.batteries-summary-container .empty-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    color: white;
}

.batteries-summary-container .empty-state {
    text-align: center;
    padding: 3rem;
}

.batteries-summary-container .empty-state i {
    font-size: 4rem;
    color: rgba(0, 188, 212, 0.3);
    margin-bottom: 1rem;
}

.batteries-summary-container .empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.batteries-summary-container .empty-state p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

/* ========== BATTERY GRID ========== */
.batteries-summary-container .battery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .batteries-summary-container .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-chip {
        min-height: 44px;
        justify-content: center;
    }

    .header-controls {
        width: 100%;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .batteries-summary-container .header-controls {
        min-width: 0;
        align-items: stretch;
    }

    .batteries-summary-container .search-input,
    .batteries-summary-container .header-controls .e-btn {
        width: 100%;
        flex: 0 0 auto;
    }
}

