/* Transparency Dashboard Specialized Styles - Solid Dark Green Version */

:root {
    --ocoad-amber: #fbb424;
    --ocoad-green-solid: #043C2E;
    --ocoad-green-light: #10b981;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
}

.transparency-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--ocoad-green-solid); /* Solid #043C2E as requested */
    color: #ffffff;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.transparency-section h2, 
.transparency-section h3 {
    font-family: 'Outfit', sans-serif;
}

/* Base Headers */
.transparency-section p {
    color: var(--slate-300);
}

/* Glassmorphism Cards - Optimized for Solid Dark Green */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 22px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Text Glow & Gradients */
.bg-text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--ocoad-amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.2));
}

.text-glow-amber {
    color: var(--ocoad-amber);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Impact Sector Grid */
.sector-icon-bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 70px;
    opacity: 0.03;
    color: #ffffff;
    pointer-events: none;
    transition: all 0.5s ease;
}

.glass-card:hover .sector-icon-bg {
    opacity: 0.07;
    transform: scale(1.1) rotate(-10deg);
}

/* Financial Flow (Sankey Style) */
.financial-flow-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.flow-node-main {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 18px;
    text-align: center;
}

.flow-line-vertical {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--ocoad-amber), transparent);
    margin: 0 auto;
    position: relative;
}

.flow-line-vertical::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ocoad-amber);
    font-size: 20px;
}

.flow-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.flow-branch {
    padding: 15px;
    border-radius: 16px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.branch-programs {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.branch-admin {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Map Styling */
#transparency-map {
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pulse {
    width: 14px;
    height: 14px;
    background: var(--ocoad-amber);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--ocoad-amber);
}

.marker-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--ocoad-amber);
    border-radius: 50%;
    animation: marker-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes marker-ping {
    75%, 100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Glass Popup */
.leaflet-popup-content-wrapper {
    background: rgba(4, 60, 46, 0.9) !important; /* Brand Green Popup */
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: #fff !important;
    padding: 10px;
}

.leaflet-popup-tip {
    background: rgba(4, 60, 46, 0.9) !important;
}

.audit-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ocoad-amber);
    margin-top: 8px;
    transition: all 0.3s ease;
}

.audit-tag:hover {
    background: var(--ocoad-amber);
    color: #000;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .flow-split {
        grid-template-columns: 1fr;
    }
    
    .transparency-section {
        padding: 60px 0;
    }
}

/* RTL Adjustments */
.rtl .sector-icon-bg {
    right: auto;
    left: -20px;
}
