/* CBN Donor Management — Custom CSS */
/* Theme: CBN Blue (#2b9bc8) + White Sidebar */

* { font-family: 'Bai Jamjuree', sans-serif; }

/* ===== DaisyUI Custom Theme ===== */
[data-theme="cbndonor"] {
    --p: 198 78% 47%;    /* CBN Blue primary */
    --pf: 198 78% 39%;
    --pc: 0 0% 100%;
    --s: 198 60% 90%;
    --sf: 198 60% 80%;
    --sc: 198 78% 30%;
    --a: 37 90% 50%;     /* Amber accent */
    --af: 37 90% 42%;
    --ac: 0 0% 100%;
    --n: 220 14% 20%;
    --nf: 220 14% 15%;
    --nc: 0 0% 95%;
    --b1: 0 0% 100%;
    --b2: 210 20% 98%;
    --b3: 210 15% 95%;
    --bc: 220 14% 20%;
    --su: 160 70% 38%;
    --wa: 37 90% 50%;
    --er: 0 70% 50%;
    --in: 198 78% 47%;
    --rounded-btn: 0.5rem;
    --rounded-box: 0.75rem;
}

/* ===== Sidebar Styles ===== */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    transition: all 0.15s;
    text-decoration: none;
}

.sidebar-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.sidebar-item.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 600;
}

.sidebar-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.5;
}

.sidebar-item:hover svg {
    opacity: 0.7;
}

.sidebar-item.active svg {
    opacity: 1;
    color: #0284c7;
}

.sidebar-label {
    white-space: nowrap;
}

.sidebar-en {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
    white-space: nowrap;
}

.sidebar-item.active .sidebar-en {
    color: #0284c7;
    opacity: 0.7;
}

.sidebar-section {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    padding: 16px 12px 6px;
    font-weight: 600;
    list-style: none;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== Card Hover ===== */
.card { transition: box-shadow 0.2s ease; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

/* ===== KPI Card Accents ===== */
.kpi-blue { border-left: 3px solid #2b9bc8; }
.kpi-green { border-left: 3px solid #059669; }
.kpi-amber { border-left: 3px solid #d97706; }
.kpi-red { border-left: 3px solid #dc2626; }

/* ===== Tier Badges ===== */
.tier-diamond { background: linear-gradient(135deg,#c084fc,#818cf8); color: #fff; }
.tier-gold { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #78350f; }
.tier-silver { background: linear-gradient(135deg,#d1d5db,#9ca3af); color: #374151; }
.tier-bronze { background: linear-gradient(135deg,#d97706,#b45309); color: #fff; }
.tier-basic { background: #f3f4f6; color: #6b7280; }

/* ===== Pipeline Stage Colors ===== */
.stage-seed { color: #059669; }
.stage-first_fruit { color: #7c3aed; }
.stage-faithful { color: #2b9bc8; }
.stage-steward { color: #d97706; }

/* ===== Donor Profile Timeline ===== */
.timeline-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 20px;
    border-left: 2px solid #e5e7eb;
}
.timeline-item:last-child { border-left: none; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2b9bc8;
}
.timeline-item.donation::before { background: #059669; }
.timeline-item.contact::before { background: #2b9bc8; }
.timeline-item.award::before { background: #d97706; }
.timeline-item.tier-change::before { background: #7c3aed; }

/* ===== Print Styles ===== */
@media print {
    .drawer-side, .navbar, .btn, .no-print { display: none !important; }
    .drawer-content { margin-left: 0 !important; }
    .card { border: 1px solid #e5e7eb !important; box-shadow: none !important; }
}

/* ===== Tab Active Style ===== */
.tabs-bordered .tab-active {
    color: #2b9bc8 !important;
    border-bottom-color: #2b9bc8 !important;
    border-bottom-width: 2px;
    font-weight: 600;
}

.tabs-bordered .tab {
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.tabs-bordered .tab:hover {
    color: #475569;
}

/* ===== Donor Search Dropdown ===== */
#contact-donor-results > div,
#award-donor-results > div,
#task-donor-results > div,
#donor-results > div {
    background: #f0f9ff;
    margin-bottom: 2px;
    border-radius: 6px;
    border: 1px solid #e0f2fe;
}

#contact-donor-results > div:hover,
#award-donor-results > div:hover,
#task-donor-results > div:hover,
#donor-results > div:hover {
    background: #bae6fd;
}


