/* social_forestry_jfm.css */

:root {
    --sfj-emerald: #059669;
    --sfj-forest: #0a2e1a;
    --sfj-gold: #f1c40f;
    --sfj-fog: #e5e7eb;
    --sfj-cream: #fdfbf7;
    --sfj-shadow: 0 10px 30px rgba(10, 46, 26, 0.08);
}

.sfj-page {
    background: var(--sfj-cream);
    min-height: 100vh;
    padding-bottom: 80px;
}

.sfj-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 50px;
}

/* ── INTRO CARD ── */
.sfj-intro-card {
    background: #fff;
    border: 1px solid var(--sfj-fog);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--sfj-shadow);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}
.sfj-intro-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--sfj-emerald), var(--sfj-gold));
}
.sfj-intro-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--sfj-forest);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sfj-intro-title i {
    color: var(--sfj-emerald);
}
.sfj-intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 15px;
}

/* ── SECTION TITLES ── */
.sfj-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sfj-forest);
    margin-bottom: 15px;
}
.sfj-section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.6;
}

/* ── TIMELINE ── */
.sfj-timeline-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}
.sfj-timeline-node {
    flex: 1 1 calc(33.333% - 20px);
    background: #fff;
    border: 1px solid var(--sfj-fog);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    min-width: 280px;
}
.sfj-timeline-node:hover {
    transform: translateY(-5px);
    box-shadow: var(--sfj-shadow);
    border-color: var(--sfj-emerald);
}
.sfj-timeline-year {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--sfj-emerald);
    border-bottom: 2px solid var(--sfj-fog);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}
.sfj-timeline-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}
.sfj-timeline-heading {
    font-weight: 700;
    color: var(--sfj-forest);
    margin-bottom: 8px;
}

/* ── DASHBOARD LAYOUT ── */
.sfj-dashboard-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--sfj-fog);
    box-shadow: var(--sfj-shadow);
    overflow: hidden;
    min-height: 500px;
}
@media (max-width: 900px) {
    .sfj-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* ── LEFT PANEL: FDA LIST ── */
.sfj-fda-list {
    background: #f9fafb;
    border-right: 1px solid var(--sfj-fog);
    display: flex;
    flex-direction: column;
}
.sfj-fda-header {
    padding: 25px;
    background: var(--sfj-forest);
    color: #fff;
}
.sfj-fda-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.sfj-fda-header span {
    font-size: 0.85rem;
    opacity: 0.8;
}
.sfj-fda-scroll {
    overflow-y: auto;
    max-height: 500px;
}
.sfj-fda-scroll::-webkit-scrollbar {
    width: 6px;
}
.sfj-fda-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.sfj-fda-card {
    padding: 20px 25px;
    border-bottom: 1px solid var(--sfj-fog);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}
.sfj-fda-card:hover {
    background: #f3f4f6;
}
.sfj-fda-card.active {
    background: #fff;
    border-left: 4px solid var(--sfj-emerald);
}
.sfj-fda-abbr {
    width: 50px;
    height: 50px;
    background: rgba(5, 150, 69, 0.1);
    color: var(--sfj-emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
}
.sfj-fda-card.active .sfj-fda-abbr {
    background: var(--sfj-emerald);
    color: #fff;
}
.sfj-fda-info h5 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sfj-forest);
}
.sfj-fda-info span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

/* ── RIGHT PANEL: CHART ── */
.sfj-performance-panel {
    padding: 35px;
    display: flex;
    flex-direction: column;
}
.sfj-perf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sfj-fog);
}
#sfj-perf-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sfj-forest);
}
.sfj-perf-total {
    background: rgba(241, 196, 15, 0.15);
    color: #b48c00;
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1rem;
}

.sfj-bar-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 100%;
    padding-bottom: 30px;
    position: relative;
}
.sfj-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
    group: bar;
}
.sfj-bar {
    width: 100%;
    background: var(--sfj-emerald);
    border-radius: 6px 6px 0 0;
    transition: height 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}
.sfj-bar:hover {
    background: var(--sfj-gold);
}
.sfj-bar-val {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--sfj-forest);
    opacity: 0;
    transition: opacity 0.3s;
}
.sfj-bar-wrapper:hover .sfj-bar-val {
    opacity: 1;
}
.sfj-bar-label {
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    position: absolute;
    bottom: -25px;
}

/* ── COMPREHENSIVE DATA GRIDS ── */
.sfj-table-wrapper {
    background: #fff;
    border: 1px solid var(--sfj-fog);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--sfj-shadow);
    overflow: hidden;
}

.sfj-table-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sfj-forest);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sfj-table-title i {
    color: var(--sfj-emerald);
}

.sfj-premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    margin-bottom: 20px;
}

.sfj-premium-table th {
    background: var(--sfj-forest);
    color: #fff;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}
.sfj-premium-table th:first-child { border-top-left-radius: 12px; }
.sfj-premium-table th:last-child { border-top-right-radius: 12px; }

.sfj-premium-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--sfj-fog);
    color: #4b5563;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.sfj-premium-table tbody tr:hover td {
    background: #f9fafb;
}
.sfj-premium-table tbody tr:last-child td {
    border-bottom: none;
}

.sfj-num {
    text-align: right;
    font-weight: 800;
    color: var(--sfj-emerald) !important;
}
.sfj-abbr {
    font-weight: 700;
    color: var(--sfj-forest) !important;
}

.sfj-table-note {
    margin-top: 25px;
    padding: 20px;
    background: #fdfbf7;
    border-left: 4px solid var(--sfj-gold);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #6b7280;
    border-radius: 0 8px 8px 0;
}
