/* BCCF Grant Portal public styles */
.bccf-dashboard {
    --bccf-surface: #ffffff;
    --bccf-muted: #6b7280;
    --bccf-border: #e5e7eb;
    --bccf-accent: #2563eb;
    --bccf-accent-light: #dbeafe;
    --bccf-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background-color: #f5f7fb;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--bccf-card-shadow);
    margin: 2rem auto;
    max-width: 1100px;
}

.bccf-dashboard h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #111827;
}

.bccf-dashboard__layout {
    display: flex;
    gap: 2rem;
}

.bccf-portal-nav {
    width: 240px;
    background: #0f172a;
    color: #cbd5f5;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
}

.bccf-portal-nav__logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: #fff;
}

.bccf-portal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bccf-portal-nav a {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.bccf-portal-nav a:hover {
    background: rgba(99, 102, 241, 0.25);
}

.bccf-portal-nav a.is-active {
    background: #2563eb;
    color: #fff;
}

.bccf-dashboard__main {
    flex: 1;
}

.bccf-dashboard__hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    background: linear-gradient(135deg, #312e81, #1e3a8a);
    color: #ffffff;
    padding: 1.75rem;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.3);
}

.bccf-dashboard__hero h1 {
    margin: 0.25rem 0 0.65rem;
    font-size: 1.75rem;
    color: #f9fafb;
}

.bccf-dashboard__hero p {
    margin: 0.25rem 0;
}

.bccf-dashboard__hero .button {
    margin-top: 0.75rem;
}

.bccf-dashboard__hero-meta {
    text-align: right;
}

.bccf-dashboard__hero-meta a {
    color: #bfdbfe;
    font-weight: 600;
}

.bccf-dashboard__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: #c7d2fe;
    margin: 0;
}

.bccf-dashboard__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bccf-summary-card {
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--bccf-card-shadow);
}

.bccf-summary-card__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bccf-muted);
    margin: 0 0 0.4rem;
}

.bccf-summary-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.bccf-dashboard__programs {
    margin-bottom: 2.5rem;
}

.bccf-program-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.bccf-program-card {
    background: var(--bccf-surface);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bccf-program-card__eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--bccf-muted);
    margin-bottom: 0.35rem;
}

.bccf-program-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.bccf-program-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bccf-program-card__status--open {
    color: #047857;
}

.bccf-program-card__status--closed {
    color: #b45309;
}

.bccf-program-card__activity {
    color: var(--bccf-muted);
    font-size: 0.9rem;
}

.bccf-program-card__notice {
    font-size: 0.85rem;
    color: var(--bccf-muted);
}

.bccf-program-card .button {
    width: 100%;
    text-align: center;
}

.bccf-dashboard table.widefat {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.bccf-dashboard table.widefat thead {
    background: var(--bccf-accent);
    color: #fff;
}

.bccf-dashboard table.widefat th,
.bccf-dashboard table.widefat td {
    border-color: rgba(226, 232, 240, 0.4);
    padding: 0.9rem 1rem;
}

.bccf-dashboard .badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--bccf-accent-light);
    color: var(--bccf-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.bccf-dashboard ul {
    margin: 0.5rem 0 0 1rem;
}

.bccf-dashboard__deadlines {
    margin-bottom: 2rem;
}

.bccf-deadline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.bccf-deadline-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--bccf-border);
    box-shadow: var(--bccf-card-shadow);
}

.bccf-deadline-card__program {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.bccf-deadline-card__detail {
    color: var(--bccf-muted);
    margin-bottom: 0.5rem;
}

.bccf-deadline-card__status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bccf-deadline-card__status--open {
    background: #d1fae5;
    color: #065f46;
}

.bccf-deadline-card__status--upcoming {
    background: #fef3c7;
    color: #92400e;
}

.bccf-deadline-card__status--closed {
    background: #fee2e2;
    color: #b91c1c;
}

.bccf-dashboard__timeline {
    margin-top: 2.5rem;
}

.bccf-dashboard__timeline ol {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.bccf-dashboard__timeline li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.bccf-dashboard__timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--bccf-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.bccf-timeline__program {
    font-weight: 600;
    margin: 0;
}

.bccf-timeline__action {
    margin: 0.15rem 0;
    color: var(--bccf-muted);
}

.bccf-timeline__timestamp {
    font-size: 0.85rem;
    color: #94a3b8;
}

.bccf-dashboard__programs .button-secondary {
    background: #f3f4f6;
    color: #111827;
    border: none;
}

@media (max-width: 768px) {
    .bccf-dashboard {
        padding: 1.5rem;
    }

    .bccf-program-card-grid {
        grid-template-columns: 1fr;
    }

    .bccf-dashboard__layout {
        flex-direction: column;
    }

    .bccf-portal-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .bccf-dashboard__hero {
        flex-direction: column;
        text-align: left;
    }

    .bccf-dashboard__hero-meta {
        text-align: left;
    }

    .bccf-dashboard table.widefat th,
    .bccf-dashboard table.widefat td {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}
