/**
 * Mini AI SOC SIEM Custom Styles
 * Complementary styles for Bootswatch themes - does NOT override theme colors
 */

/* ========================================================================
   Dashboard-specific styles
   ======================================================================== */

/* Stat cards with colored left border */
.stat-card {
    border-left: 4px solid;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.alert-card {
    border-left-color: var(--bs-danger, #dc3545);
}

.stat-card.warning-card {
    border-left-color: var(--bs-warning, #ffc107);
}

.stat-card.info-card {
    border-left-color: var(--bs-info, #0dcaf0);
}

.stat-card.success-card {
    border-left-color: var(--bs-success, #198754);
}

/* ========================================================================
   Log and Alert row hover effects
   ======================================================================== */

.log-row,
.alert-row {
    transition: background-color 0.15s ease;
}

.log-row:hover {
    filter: brightness(1.1);
}

.alert-row:hover {
    filter: brightness(1.1);
}

/* ========================================================================
   Smooth transitions for theme changes
   ======================================================================== */

/* Only transition specific properties to avoid performance issues */
.card,
.navbar,
.dropdown-menu,
.modal-content,
.btn {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ========================================================================
   Custom utility classes
   ======================================================================== */

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

.chart-container-tall {
    height: 400px;
}

/* System status items (dashboard health section) */
.system-status-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Refresh indicator */
.refresh-indicator {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Time range buttons */
.time-range-btn {
    min-width: 70px;
}

/* Loading overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border-lg {
    width: 4rem;
    height: 4rem;
}
