/* ==========================================================================
   Dashboard Page-Specific Styles
   Styles unique to dashboard pages not covered by component CSS files.
   ========================================================================== */

/* Header */
header {
    margin-bottom: 30px;
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.footer-sources {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-sources a {
    color: #64748b;
    text-decoration: none;
}

.footer-sources a:hover {
    color: var(--primary);
}

/* Club Statistics */
.period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.period-tab {
    padding: 8px 16px;
    border: 1px solid #bfdbfe;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1e40af;
    transition: all 0.2s;
}

.period-tab:hover {
    background: #eff6ff;
}

.period-tab.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.stat-card-mini {
    background: white;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-card-mini .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.stat-card-mini .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Promotion Matrix */
.promotion-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.promotion-matrix th,
.promotion-matrix td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.promotion-matrix th {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
}

.promotion-matrix td:first-child {
    text-align: left;
    font-weight: 500;
}

.promo-count {
    display: inline-block;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.promo-count.has-value {
    background: #dcfce7;
    color: #166534;
}

/* Top Couples Table */
.top-couples-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.top-couples-table th,
.top-couples-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.top-couples-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.top-couples-table td:nth-child(n+3) {
    text-align: center;
}

/* Medal Colors */
.medal-gold { color: #b45309; }
.medal-silver { color: #6b7280; }
.medal-bronze { color: #a16207; }

/* Couple History Table – fixed layout for consistent column alignment across cards */
.couple-history-table {
    table-layout: fixed;
}

.couple-history-table td:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Personnel Grid */
.personnel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.personnel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.personnel-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
}

.personnel-list li:last-child {
    border-bottom: none;
}
