/* BBC Chama – custom styles */

body {
    background-color: #f0f4f8;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Sidebar nav */
.sidebar {
    min-height: calc(100vh - 56px);
    background: #1a2744;
    padding-top: 1rem;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    margin: 2px 8px;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Stat cards */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.15s;
}

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

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Contribution status badges */
.badge-paid {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.badge-unpaid {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

/* Member card in dashboard */
.member-card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: box-shadow 0.15s;
}

.member-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.member-card.paid {
    border-left: 4px solid #10b981;
}

.member-card.unpaid {
    border-left: 4px solid #ef4444;
}

/* Month navigation */
.month-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Table tweaks */
.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    border-top: none;
}

/* SMS textarea */
#id_sms_text {
    font-size: 0.85rem;
    background: #1e293b;
    color: #94d2bd;
    border-color: #334155;
}

#id_sms_text::placeholder {
    color: #475569;
}

/* Parse result card */
#parse-result {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 280px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    .stat-card .stat-value {
        font-size: 1.4rem;
    }
}
