.search-input-wrap {
    background: rgba(12, 17, 27, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.search-input-wrap:focus-within {
    border-color: rgba(41, 182, 246, 0.5);
    box-shadow: 0 4px 20px rgba(41, 182, 246, 0.15);
}
.search-icon {
    color: var(--muted);
    font-size: 0.85rem;
    margin-left: 8px;
}
#search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 10px 8px;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    outline: none;
    direction: rtl;
}
#search-input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}
.search-clear {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    display: none;
    transition: color 0.2s;
}
.search-clear.visible {
    display: block;
}
.search-clear:hover {
    color: #ef5350;
}
.search-results {
    margin-top: 6px;
    background: rgba(12, 17, 27, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.search-results.visible {
    display: block;
}
.search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: rgba(255,255,255,0.06);
}
.search-result-name {
    font-size: 0.82rem;
    font-weight: 700;
}
.search-result-code {
    font-size: 0.7rem;
    color: var(--muted);
    direction: ltr;
    font-weight: 600;
}
.search-no-results {
    padding: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}
.node.search-match .bubble {
    outline: 3px solid #ffab40;
    outline-offset: 4px;
    filter: brightness(1.3);
    animation: searchPulse 1.5s ease-in-out 3;
}
@keyframes searchPulse {
    0%, 100% { outline-color: #ffab40; }
    50% { outline-color: #fff; }
}

/* ===== PROGRESS DASHBOARD ===== */
.progress-dashboard {
    background: rgba(12, 17, 27, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}
.dashboard-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    transition: background 0.2s;
    user-select: none;
}
.dashboard-toggle:hover {
    background: rgba(255,255,255,0.04);
}
.dashboard-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}
.progress-dashboard.collapsed .dashboard-toggle i {
    transform: rotate(180deg);
}
.dashboard-content {
    padding: 0 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 650px;
    opacity: 1;
    overflow: hidden;
}
.dashboard-main-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    width: 100%;
}
.progress-dashboard.collapsed .dashboard-content {
    max-height: 0;
    opacity: 0;
    padding: 0 14px;
}
.progress-ring-container {
    position: relative;
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}
.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.progress-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 6;
}
.progress-ring-fill {
    fill: none;
    stroke: var(--year1);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 213.6;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}
.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text);
}
.progress-stats {
    flex: 1;
    width: auto;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 0.72rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row span:last-child {
    font-weight: 800;
    color: var(--text);
}
.btn-reset-progress {
    background: rgba(239, 83, 80, 0.15);
    border: 1px solid rgba(239, 83, 80, 0.3);
    color: #ef5350;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
    justify-content: center;
}
.btn-reset-progress:hover {
    background: rgba(239, 83, 80, 0.25);
    border-color: rgba(239, 83, 80, 0.5);
}

.data-backup-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-backup {
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    transition: all 0.2s ease;
    width: 100%;
    border: 1px solid transparent;
}

.btn-export-json {
    background: rgba(41, 182, 246, 0.15);
    border-color: rgba(41, 182, 246, 0.35);
    color: #4fc3f7;
}

.btn-export-json:hover {
    background: rgba(41, 182, 246, 0.28);
    border-color: rgba(41, 182, 246, 0.6);
    transform: translateY(-1px);
}

.btn-import-json {
    background: rgba(171, 71, 188, 0.15);
    border-color: rgba(171, 71, 188, 0.35);
    color: #ce93d8;
}

.btn-import-json:hover {
    background: rgba(171, 71, 188, 0.28);
    border-color: rgba(171, 71, 188, 0.6);
    transform: translateY(-1px);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    right: auto;
    transform: none;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}
.toast {
    background: rgba(12, 17, 27, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
    pointer-events: auto;
    animation: slideUpToast 0.3s ease-out forwards;
}
.toast.toast-warning {
    border-color: #ffab40;
    box-shadow: 0 4px 15px rgba(255, 171, 64, 0.2);
}
.toast.toast-warning i {
    color: #ffab40;
}
.toast.toast-info {
    border-color: #4fc3f7;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.2);
}
.toast.toast-info i {
    color: #4fc3f7;
}
.toast.toast-success {
    border-color: #81c784;
    box-shadow: 0 4px 15px rgba(129, 199, 132, 0.2);
}
.toast.toast-success i {
    color: #81c784;
}
.toast-btn-undo {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.toast-btn-undo:hover {
    background: rgba(255,255,255,0.2);
}
@keyframes slideUpToast {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.toast.hiding {
    animation: fadeOutToast 0.3s ease-in forwards;
}
@keyframes fadeOutToast {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* ===== VOLUNTEER HOURS MODAL & COUNTER BADGE ===== */
.v-hours-text {
    color: #4fc3f7;
    font-weight: 800;
    font-size: 0.58rem;
}

.volunteer-counter-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 14px;
}

.v-counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.v-counter-number {
    font-size: 1.2rem;
    font-weight: 900;
    color: #4fc3f7;
}

.v-progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0288d1, #29b6f6, #66bb6a);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.v-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-v-step {
    flex: 1;
    min-width: 60px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.8rem;
}

.btn-v-step:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-v-max {
    flex: 2;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    border-color: #81c784;
}

.v-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.v-input-row label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.v-input-row input {
    width: 70px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-v-save {
    background: linear-gradient(135deg, #0288d1, #0277bd);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-v-save:hover {
    filter: brightness(1.15);
}


        :root {
            --bg-primary: #0a0e1a;
            --bg-secondary: #111827;
            --bg-card: #1a2235;
            --bg-card-hover: #1f2a40;
            --border: #2a3654;
            --text-primary: #e8ecf4;
            --text-secondary: #8b95a8;
            --text-muted: #5a6478;
            --accent: #6366f1;
            --accent-light: #818cf8;
            --accent-glow: rgba(99, 102, 241, 0.15);
            --success: #22c55e;
            --success-bg: rgba(34, 197, 94, 0.1);
            --warning: #f59e0b;
            --warning-bg: rgba(245, 158, 11, 0.1);
            --danger: #ef4444;
            --danger-bg: rgba(239, 68, 68, 0.1);
            --info: #06b6d4;
            --info-bg: rgba(6, 182, 212, 0.1);
            --radius: 12px;
            --radius-sm: 8px;
            --shadow: 0 4px 24px rgba(0,0,0,0.3);
        }