/* ============================================
   SECTION CARDS
   Centralized styles for content cards/sections
   ============================================ */

/* Base section card */
.section-card {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    margin-bottom: 1rem;
    background: var(--surface-card);
    box-shadow: none;
}

.section-card.card {
    box-shadow: none !important;
}

/* Section card body */
.section-card .card-body,
.section-card .section-body {
    padding: 1.25rem;
}

/* Section card with header */
.section-card .card-header,
.section-card .section-header {
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* ============================================
   DATA TABLES IN CARDS
   ============================================ */

.events-table,
.data-table-card {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    box-shadow: none !important;
}

.events-table .table,
.data-table-card .table {
    margin-bottom: 0;
}

.events-table .table thead th,
.data-table-card .table thead th {
    background: var(--table-header-bg);
    border-bottom: 2px solid var(--table-header-border);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.events-table .table tbody td,
.data-table-card .table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--surface-border-light);
}

.events-table .table tbody tr:hover,
.data-table-card .table tbody tr:hover {
    background-color: var(--table-hover-bg);
}

/* Striped rows */
.events-table .table-striped tbody tr:nth-of-type(odd),
.data-table-card .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--table-stripe-bg);
}

/* ============================================
   DATE CONTROLS CARD
   ============================================ */

.date-controls-card {
    position: sticky;
    top: 1rem;
    z-index: 10;
    margin-bottom: 1rem;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
}

.date-preset-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.date-preset-buttons .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* ============================================
   STATS CARDS
   ============================================ */

.stats-card {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    background: var(--surface-card);
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stats-card .card-body {
    padding: 1.25rem;
}

.stats-card .stats-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   INFO CARDS / DETAIL CARDS
   ============================================ */

.info-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface-border-light);
}

.info-card-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-heading);
}

/* ============================================
   CARD WITH ACCENT BORDER
   ============================================ */

.card-accent-left {
    border-left: 4px solid var(--brand-primary);
}

.card-accent-left-success {
    border-left: 4px solid var(--color-success);
}

.card-accent-left-warning {
    border-left: 4px solid var(--color-warning);
}

.card-accent-left-danger {
    border-left: 4px solid var(--color-danger);
}

.card-accent-left-info {
    border-left: 4px solid var(--color-info);
}

/* ============================================
   EMPTY STATE CARD
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 0;
}
