/* 
 * Prism Common Styles
 * Shared CSS for all Prism pages with dark/light mode support
 */

/* ===== GRADIENT TEXT EFFECTS ===== */
.prism-gradient-text {
    background: linear-gradient(135deg, #e14eca 0%, #1d8cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.prism-title {
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(225, 78, 202, 0.3);
}

.white-content .prism-title {
    text-shadow: 0 2px 10px rgba(225, 78, 202, 0.15);
}

/* ===== SECTION TITLES ===== */
.prism-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(225, 78, 202, 0.2);
    line-height: 1.2;
}

.white-content .prism-section-title {
    text-shadow: 0 2px 10px rgba(225, 78, 202, 0.15);
}

.prism-section-subtitle {
    font-size: 1.1rem;
    color: #adb5bd;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 300;
}

.white-content .prism-section-subtitle {
    color: #6c757d;
}

/* ===== CARD STYLES ===== */
.prism-card {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.08) 0%, rgba(29, 140, 248, 0.03) 100%);
    border: 1px solid rgba(29, 140, 248, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prism-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(225, 78, 202, 0.05) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prism-card:hover::before {
    opacity: 1;
}

.prism-card:hover {
    border-color: rgba(29, 140, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(29, 140, 248, 0.15);
}

.white-content .prism-card {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(29, 140, 248, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.white-content .prism-card:hover {
    border-color: rgba(29, 140, 248, 0.3);
    box-shadow: 0 4px 20px rgba(29, 140, 248, 0.1);
}

/* ===== CARD SMALL ===== */
.prism-card-sm {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.08) 0%, rgba(29, 140, 248, 0.03) 100%);
    border: 1px solid rgba(29, 140, 248, 0.2);
    border-radius: 12px;
    /* padding: 10px; */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prism-card-sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(225, 78, 202, 0.05) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prism-card-sm:hover::before {
    opacity: 1;
}

.prism-card-sm:hover {
    border-color: rgba(29, 140, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(29, 140, 248, 0.15);
}

.white-content .prism-card-sm {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(29, 140, 248, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.white-content .prism-card-sm:hover {
    border-color: rgba(29, 140, 248, 0.3);
    box-shadow: 0 4px 20px rgba(29, 140, 248, 0.1);
}

/* ===== CARD WITH STRONGER GLOW ===== */
.prism-card-glow {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.1) 0%, rgba(29, 140, 248, 0.05) 100%);
    border: 1px solid rgba(29, 140, 248, 0.3);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prism-card-glow:hover {
    border-color: rgba(29, 140, 248, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(29, 140, 248, 0.25);
}

.white-content .prism-card-glow {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(29, 140, 248, 0.2);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.white-content .prism-card-glow:hover {
    border-color: rgba(29, 140, 248, 0.4);
    box-shadow: 0 6px 30px rgba(29, 140, 248, 0.15);
}

/* ===== SUBTLE CARD (for working interfaces) ===== */
.prism-card-subtle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.prism-card-subtle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(29, 140, 248, 0.3);
}

.white-content .prism-card-subtle {
    background: rgba(226, 227, 228, 0.5);
    border: 1px solid rgba(29, 37, 59, 0.2);
}

.white-content .prism-card-subtle:hover {
    background: rgba(226, 227, 228, 0.8);
    border-color: rgba(29, 140, 248, 0.3);
}

/* ===== CARD HEADER ===== */
.prism-card-header {
    padding: 20px 25px;
    margin: -25px -25px 20px -25px;
    border-bottom: 1px solid rgba(29, 140, 248, 0.2);
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.1) 0%, rgba(29, 140, 248, 0.05) 100%);
    border-radius: 12px 12px 0 0;
    position: relative;
}

.prism-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(29, 140, 248, 0.3) 50%, transparent 100%);
}

.white-content .prism-card-header {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-bottom: 1px solid rgba(29, 140, 248, 0.15);
}

.white-content .prism-card-header::after {
    background: linear-gradient(90deg, transparent 0%, rgba(29, 140, 248, 0.2) 50%, transparent 100%);
}

/* ===== CARD TITLE ===== */
.prism-card-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.white-content .prism-card-title {
    color: rgba(29, 37, 59, 0.9);
}

/* ===== CARD BODY ===== */
.prism-card-body {
    padding: 20px 25px;
    position: relative;
}

.white-content .prism-card-body {
    background: rgba(255, 255, 255, 0.5);
    color: rgba(29, 37, 59, 0.9);
}

/* ===== CARD FOOTER ===== */
.prism-card-footer {
    padding: 20px 25px;
    margin: 20px -25px -25px -25px;
    border-top: 1px solid rgba(29, 140, 248, 0.2);
    background: linear-gradient(0deg, rgba(29, 140, 248, 0.1) 0%, rgba(29, 140, 248, 0.05) 100%);
    border-radius: 0 0 12px 12px;
    position: relative;
}

.prism-card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(29, 140, 248, 0.3) 50%, transparent 100%);
}

.white-content .prism-card-footer {
    background: linear-gradient(0deg, rgba(29, 140, 248, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-top: 1px solid rgba(29, 140, 248, 0.15);
}

.white-content .prism-card-footer::before {
    background: linear-gradient(90deg, transparent 0%, rgba(29, 140, 248, 0.2) 50%, transparent 100%);
}

/* ===== BUTTON STYLES ===== */
.prism-btn-primary {
    background: linear-gradient(135deg, #e14eca 0%, #ba54f5 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(225, 78, 202, 0.3);
    cursor: pointer;
}

.prism-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.prism-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.prism-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(225, 78, 202, 0.5);
    color: #ffffff;
}

.prism-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* ===== BUTTON INFO ===== */
.prism-btn-info {
    background: linear-gradient(135deg, #1d8cf8 0%, #4da3ff 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(29, 140, 248, 0.3);
    cursor: pointer;
}

.prism-btn-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.prism-btn-info:hover::before {
    width: 300px;
    height: 300px;
}

.prism-btn-info:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(29, 140, 248, 0.5);
    color: #ffffff;
}

.prism-btn-info:active {
    transform: translateY(0) scale(0.98);
}

/* ===== OWNERSHIP TOGGLE (TOTAL / MY %) ===== */
.prism-ownership-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.55);
    border: 1px solid rgba(29, 140, 248, 0.22);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 0, 0, 0.25);
}

.prism-ownership-toggle .prism-btn-info {
    min-width: 108px;
    margin: 0;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(235, 245, 255, 0.72);
    box-shadow: none;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    line-height: 1.15;
    transform: none;
}

.prism-ownership-toggle .prism-btn-info::before {
    display: none;
}

.prism-ownership-toggle .prism-btn-info:hover {
    background: rgba(29, 140, 248, 0.18);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.prism-ownership-toggle .prism-btn-info.active,
.prism-ownership-toggle .prism-btn-info:active,
.prism-ownership-toggle .prism-btn-info:focus,
.prism-ownership-toggle .prism-btn-info.active:hover {
    background: linear-gradient(135deg, #1d8cf8 0%, #4da3ff 100%);
    color: #ffffff;
    border-color: rgba(108, 187, 255, 0.95);
    box-shadow: 0 8px 18px rgba(29, 140, 248, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: none;
}

.prism-ownership-toggle .prism-btn-info input[type="radio"] {
    display: none;
}

.white-content .prism-ownership-toggle {
    background: rgba(29, 140, 248, 0.1);
    border-color: rgba(29, 140, 248, 0.22);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 5px 14px rgba(29, 37, 59, 0.1);
}

.white-content .prism-ownership-toggle .prism-btn-info {
    color: rgba(29, 37, 59, 0.68);
}

.white-content .prism-ownership-toggle .prism-btn-info:hover {
    background: rgba(29, 140, 248, 0.14);
    color: #1d253b;
}

.white-content .prism-ownership-toggle .prism-btn-info.active,
.white-content .prism-ownership-toggle .prism-btn-info:active,
.white-content .prism-ownership-toggle .prism-btn-info:focus,
.white-content .prism-ownership-toggle .prism-btn-info.active:hover {
    color: #ffffff;
}

/* ===== BUTTON DANGER ===== */
.prism-btn-danger {
    background: linear-gradient(135deg, #fd5d93 0%, #ff7aa8 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(253, 93, 147, 0.3);
    cursor: pointer;
}

.prism-btn-danger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.prism-btn-danger:hover::before {
    width: 300px;
    height: 300px;
}

.prism-btn-danger:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(253, 93, 147, 0.5);
    color: #ffffff;
}

.prism-btn-danger:active {
    transform: translateY(0) scale(0.98);
}

/* ===== BUTTON WARNING ===== */
.prism-btn-warning {
    background: linear-gradient(135deg, #ff8d72 0%, #ffa366 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 141, 114, 0.3);
    cursor: pointer;
}

.prism-btn-warning::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.prism-btn-warning:hover::before {
    width: 300px;
    height: 300px;
}

.prism-btn-warning:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 141, 114, 0.5);
    color: #ffffff;
}

.prism-btn-warning:active {
    transform: translateY(0) scale(0.98);
}

/* ===== BUTTON SUCCESS ===== */
.prism-btn-success {
    background: linear-gradient(135deg, #00f2c3 0%, #00bf9a 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 242, 195, 0.3);
    cursor: pointer;
}

.prism-btn-success::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.prism-btn-success:hover::before {
    width: 300px;
    height: 300px;
}

.prism-btn-success:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 242, 195, 0.5);
    color: #ffffff;
}

.prism-btn-success:active {
    transform: translateY(0) scale(0.98);
}

/* ===== BUTTON SECONDARY ===== */
.prism-btn-secondary {
    background: transparent;
    border: 2px solid #e14eca;
    color: #e14eca;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.prism-btn-secondary:hover {
    background: rgba(225, 78, 202, 0.15);
    transform: translateY(-2px) scale(1.02);
    color: #e14eca;
    box-shadow: 0 8px 25px rgba(225, 78, 202, 0.25);
    border-color: #ba54f5;
}

.prism-btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.prism-btn-secondary.active {
    background: linear-gradient(135deg, #804686 0%, #b309ae 100%);
    border-color: #804686;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(225, 78, 202, 0.25);
}

.prism-btn-secondary.active:hover {
    background: linear-gradient(135deg, #804686 0%, #b309ae 100%);
    border-color: #804686;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(225, 78, 202, 0.25);
}

.white-content .prism-btn-secondary {
    border-color: #e14eca;
    color: #e14eca;
}

.white-content .prism-btn-secondary:hover {
    background: rgba(225, 78, 202, 0.1);
    border-color: #ba54f5;
    color: #e14eca;
}

/* ===== BUTTON SMALL ===== */
.prism-btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Split allocation remove icon button */
.split-remove-btn {
    padding: 6px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(253, 93, 147, 0.28);
}

/* Split remaining banner */
.split-remaining {
    margin: 10px 0 20px;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.2px;
}

.split-remaining .split-remaining-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.9;
}

.split-remaining .split-remaining-amount {
    font-size: 1.05rem;
}

.split-remaining.valid {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
    color: #22c55e;
}

.split-remaining.invalid {
    background: rgba(239, 68, 68, 0.12);
    border-left-color: #ef4444;
    color: #ef4444;
}

/* ===== ACTION BUTTONS (for inline actions in lists/tables) ===== */
.prism-action-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prism-action-btn i {
    font-size: 1em;
}

.prism-action-btn-info {
    color: #1d8cf8;
}

.prism-action-btn-info:hover {
    background: rgba(29, 140, 248, 0.2);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(29, 140, 248, 0.3);
}

.prism-action-btn-danger {
    color: #fd5d93;
}

.prism-action-btn-danger:hover {
    background: rgba(253, 93, 147, 0.2);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(253, 93, 147, 0.3);
}

.prism-action-btn-success {
    color: #00f2c3;
}

.prism-action-btn-success:hover {
    background: rgba(0, 242, 195, 0.2);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 242, 195, 0.3);
}

.prism-action-btn-warning {
    color: #ff8d72;
}

.prism-action-btn-warning:hover {
    background: rgba(255, 141, 114, 0.2);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 141, 114, 0.3);
}

/* White content mode */
.white-content .prism-action-btn-info {
    color: #1d8cf8;
}

.white-content .prism-action-btn-info:hover {
    background: rgba(29, 140, 248, 0.15);
}

.white-content .prism-action-btn-danger {
    color: #fd5d93;
}

.white-content .prism-action-btn-danger:hover {
    background: rgba(253, 93, 147, 0.15);
}

.white-content .prism-action-btn-success {
    color: #00bf9a;
}

.white-content .prism-action-btn-success:hover {
    background: rgba(0, 242, 195, 0.15);
}

.white-content .prism-action-btn-warning {
    color: #ff8d72;
}

.white-content .prism-action-btn-warning:hover {
    background: rgba(255, 141, 114, 0.15);
}

/* ===== BUTTON GLOW ANIMATION ===== */
.prism-btn-glow {
    animation: prism-pulse-glow 3s ease-in-out infinite;
}

@keyframes prism-pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(225, 78, 202, 0.3);
    }
    50% {
        box-shadow: 0 10px 35px rgba(225, 78, 202, 0.5);
    }
}

/* ===== BADGES ===== */
.prism-badge-primary {
    background: linear-gradient(135deg, #e14eca 0%, #ba54f5 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.prism-badge-info {
    background: rgba(29, 140, 248, 0.2);
    color: #1d8cf8;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.white-content .prism-badge-info {
    background: rgba(29, 140, 248, 0.15);
    color: #1d8cf8;
}

.prism-badge-success {
    background: rgba(0, 242, 195, 0.2);
    color: #00f2c3;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.white-content .prism-badge-success {
    background: rgba(0, 242, 195, 0.15);
    color: #00bf9a;
}

.prism-badge-warning {
    background: rgba(255, 141, 114, 0.2);
    color: #ff8d72;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.white-content .prism-badge-warning {
    background: rgba(255, 141, 114, 0.15);
    color: #ff8d72;
}

.prism-badge-danger {
    background: rgba(253, 93, 147, 0.2);
    color: #fd5d93;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.white-content .prism-badge-danger {
    background: rgba(253, 93, 147, 0.15);
    color: #fd5d93;
}

.prism-badge-cash {
    background-color: #059437;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    display: inline-block;
}

.white-content .prism-badge-cash {
    background-color: #059437;
    color: #ffffff;
}

.prism-badge-split {
    background: linear-gradient(135deg, #e14eca 0%, #ba54f5 100%);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

.white-content .prism-badge-split {
    background: linear-gradient(135deg, #e14eca 0%, #ba54f5 100%);
    color: #ffffff;
}

/* Split Transaction Rows */
.split-child-row {
    background-color: rgba(168, 85, 247, 0.05) !important;
}

.split-child-row td:first-child {
    padding-left: 40px !important;
    position: relative;
}

.split-child-row td:first-child::before {
    content: '└─';
    position: absolute;
    left: 20px;
    color: #ba54f5;
    font-weight: bold;
}

.white-content .split-child-row {
    background-color: rgba(168, 85, 247, 0.08) !important;
}

.split-allocation-label {
    background: rgba(186, 84, 245, 0.15);
    color: #ba54f5;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65em;
    font-weight: 600;
    display: inline-block;
    margin-right: 6px;
}

.white-content .split-allocation-label {
    background: rgba(186, 84, 245, 0.2);
    color: #7b2cbf;
}

.split-allocation-item {
    transition: background-color 0.2s ease;
}

.split-allocation-item:hover {
    background: rgba(168, 85, 247, 0.1) !important;
}

/* ===== DIVIDERS ===== */
.prism-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.prism-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.white-content .prism-divider::before {
    background: rgba(29, 37, 59, 0.2);
}

.prism-divider span {
    background: #1e1e2f;
    padding: 5px 15px;
    position: relative;
    z-index: 1;
    color: #ff8d72;
    font-weight: 600;
    font-size: 0.9em;
    border-radius: 20px;
    border: 1px solid #ff8d72;
}

.white-content .prism-divider span {
    background: #f5f6fa;
    color: #ff8d72;
    border-color: #ff8d72;
}

/* ===== AND BADGE ===== */
.prism-and-badge {
    background: #00f2c3;
    color: #1e1e2f;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    margin: 0 5px;
    display: inline-block;
}

.white-content .prism-and-badge {
    background: #00f2c3;
    color: #1e1e2f;
}

/* ===== INPUT STYLES ===== */
.prism-input {
    font-size: 1.1em;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid rgba(29, 140, 248, 0.5);
    background: transparent;
    padding: 10px 0;
    width: 100%;
    color: #fff;
    transition: all 0.3s ease;
}

.prism-input:focus {
    outline: none;
    border-bottom-color: #1d8cf8;
    box-shadow: 0 3px 10px rgba(29, 140, 248, 0.2);
}

.prism-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.white-content .prism-input {
    color: #1d253b;
    border-bottom-color: rgba(29, 140, 248, 0.4);
}

.white-content .prism-input::placeholder {
    color: rgba(29, 37, 59, 0.5);
}

.white-content .prism-input:focus {
    border-bottom-color: #1d8cf8;
}

/* ===== SEARCH INPUT WITH FULL BORDER ===== */
.prism-search-input {
    font-size: 1.05em;
    font-weight: 500;
    border: 2px solid rgba(29, 140, 248, 0.3);
    background: rgba(29, 140, 248, 0.05);
    padding: 12px 20px;
    border-radius: 25px;
    width: 100%;
    color: #fff;
    transition: all 0.3s ease;
}

.prism-search-input:focus {
    outline: none;
    border-color: #1d8cf8;
    background: rgba(29, 140, 248, 0.08);
    box-shadow: 0 5px 20px rgba(29, 140, 248, 0.25);
}

.prism-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.white-content .prism-search-input {
    color: #1d253b;
    border-color: rgba(29, 140, 248, 0.25);
    background: rgba(29, 140, 248, 0.03);
}

.white-content .prism-search-input::placeholder {
    color: rgba(29, 37, 59, 0.5);
}

.white-content .prism-search-input:focus {
    border-color: #1d8cf8;
    background: rgba(29, 140, 248, 0.06);
    box-shadow: 0 3px 15px rgba(29, 140, 248, 0.15);
}

/* ===== HIGHLIGHT BOX ===== */
.prism-highlight-box {
    background: rgba(0, 242, 195, 0.1);
    border: 1px solid rgba(0, 242, 195, 0.3);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.prism-highlight-box:hover {
    background: rgba(0, 242, 195, 0.15);
    border-color: rgba(0, 242, 195, 0.4);
}

.white-content .prism-highlight-box {
    background: rgba(0, 242, 195, 0.08);
    border: 1px solid rgba(0, 242, 195, 0.25);
}

.white-content .prism-highlight-box:hover {
    background: rgba(0, 242, 195, 0.12);
    border-color: rgba(0, 242, 195, 0.35);
}

/* ===== EMOJI ANIMATION ===== */
.prism-emoji-bounce {
    display: inline-block;
    animation: prism-bounce 2s ease-in-out infinite;
}

@keyframes prism-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== WELCOME TEXT ANIMATION ===== */
.prism-welcome-animate {
    animation: prism-slide-fade-in 1s ease-out;
}

@keyframes prism-slide-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        transform: translateX(-30px);
        transform: rotate(30deg);
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        transform: translateX(0);
        transform: rotate(0deg);
        transform: scale(1);
    }
}

/* ===== GLOW EFFECT FOR ICONS ===== */
.prism-icon-glow {
    filter: drop-shadow(0 0 10px rgba(29, 140, 248, 0.5));
    transition: filter 0.3s ease;
}

.prism-icon-glow:hover {
    filter: drop-shadow(0 0 15px rgba(29, 140, 248, 0.8));
}

.white-content .prism-icon-glow {
    filter: drop-shadow(0 0 8px rgba(29, 140, 248, 0.3));
}

.white-content .prism-icon-glow:hover {
    filter: drop-shadow(0 0 12px rgba(29, 140, 248, 0.5));
}

/* ===== CONDITION/GROUP STYLES ===== */
.prism-condition-row {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.prism-condition-row:hover {
    border-color: rgba(29, 140, 248, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.white-content .prism-condition-row {
    background: rgba(226, 227, 228, 0.4);
    border: 1px solid rgba(29, 37, 59, 0.15);
}

.white-content .prism-condition-row:hover {
    background: rgba(226, 227, 228, 0.7);
    border-color: rgba(29, 140, 248, 0.3);
}

.prism-condition-group {
    border: 2px dashed rgba(29, 140, 248, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(29, 140, 248, 0.05);
    transition: all 0.2s ease;
}

.prism-condition-group:hover {
    background: rgba(29, 140, 248, 0.08);
    border-color: rgba(29, 140, 248, 0.4);
}

.white-content .prism-condition-group {
    background: rgba(29, 140, 248, 0.04);
    border: 2px dashed rgba(29, 140, 248, 0.25);
}

.white-content .prism-condition-group:hover {
    background: rgba(29, 140, 248, 0.06);
    border-color: rgba(29, 140, 248, 0.35);
}

/* ===== ARROW INDICATOR ===== */
.prism-arrow {
    font-size: 1.5em;
    color: #00f2c3;
    margin: 0 15px;
    display: inline-block;
}

.white-content .prism-arrow {
    color: #00bf9a;
}

/* ===== UTILITIES ===== */
.prism-text-muted {
    color: #adb5bd !important;
}

.white-content .prism-text-muted {
    color: #6c757d !important;
}

.prism-text-primary {
    color: #1d8cf8 !important;
}

.prism-text-success {
    color: #00f2c3 !important;
}

.white-content .prism-text-success {
    color: #00bf9a !important;
}

.prism-text-warning {
    color: #ff8d72 !important;
}

.prism-text-danger {
    color: #fd5d93 !important;
}

.prism-text-secondary {
    color: #6c757d !important;
}

.white-content .prism-text-secondary {
    color: #525f7f !important;
}


/* ===== SCROLLBAR STYLING (optional enhancement) ===== */
.prism-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.prism-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.prism-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(29, 140, 248, 0.3);
    border-radius: 10px;
}

.prism-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 140, 248, 0.5);
}

.white-content .prism-scrollbar::-webkit-scrollbar-track {
    background: rgba(29, 37, 59, 0.1);
}

.white-content .prism-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(29, 140, 248, 0.4);
}

.white-content .prism-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 140, 248, 0.6);
}

.white-content .alert-info {
    background: rgba(29, 140, 248, 0.08) !important;
    border-color: rgba(29, 140, 248, 0.3) !important;
    color: #222a42 !important;
}

.white-content .alert-info .prism-text-muted {
    color: rgba(34, 42, 66, 0.7) !important;
}

/* Right Sidebar Styling */
/* ===== RIGHT SIDEBAR STYLES ===== */

/* ===== RIGHT SIDEBAR STYLES ===== */

/* Sidebar Container */
.right-sidebar {
    position: fixed;
    top: 0;
    right: -500px; /* Hidden by default */
    width: 500px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1d2e 0%, #151823 100%);
    border-left: 2px solid rgba(29, 140, 248, 0.4);
    box-shadow: -5px 0 40px rgba(0, 0, 0, 0.6);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1051;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.right-sidebar.active {
    right: 0;
}

.white-content .right-sidebar {
    background: linear-gradient(180deg, #f5f6fa 0%, #ffffff 100%);
    border-left: 2px solid rgba(29, 140, 248, 0.3);
    box-shadow: -5px 0 40px rgba(0, 0, 0, 0.15);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(29, 140, 248, 0.3);
    background: linear-gradient(180deg, #222537 0%, #1a1d2e 100%);
    flex-shrink: 0;
    position: relative;
}

.sidebar-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #e14eca 0%, #1d8cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.white-content .sidebar-header {
    background: linear-gradient(180deg, #e8eaf0 0%, #f5f6fa 100%);
    border-bottom: 2px solid rgba(29, 140, 248, 0.2);
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #1d8cf8;
    font-size: 1.3em;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.sidebar-close:hover {
    background: rgba(29, 140, 248, 0.15);
    transform: rotate(90deg);
}

.white-content .sidebar-close {
    color: #1d8cf8;
}

.white-content .sidebar-close:hover {
    background: rgba(29, 140, 248, 0.1);
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px 30px;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(29, 140, 248, 0.3);
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 140, 248, 0.5);
}

.white-content .sidebar-content::-webkit-scrollbar-track {
    background: rgba(29, 37, 59, 0.1);
}

.white-content .sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(29, 140, 248, 0.4);
}

.white-content .sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 140, 248, 0.6);
}

/* Sidebar Overlay (optional - currently commented out in HTML) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SIDEBAR CONTENT COMPONENTS ===== */

/* Section Headers within Sidebar */
.sidebar-section-header {
    font-size: 1.1em;
    font-weight: 600;
    color: #00f2c3;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 242, 195, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-section-header i {
    font-size: 1.2em;
}

.white-content .sidebar-section-header {
    color: #00bf9a;
    border-bottom-color: rgba(0, 191, 154, 0.3);
}

/* Transaction Item in Sidebar */
.sidebar-transaction-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-transaction-item:hover {
    background: rgba(29, 140, 248, 0.15);
    border-color: rgba(29, 140, 248, 0.4);
    transform: translateX(-3px);
}

.white-content .sidebar-transaction-item {
    background: rgba(226, 227, 228, 0.7);
    border: 1px solid rgba(29, 37, 59, 0.2);
}

.white-content .sidebar-transaction-item:hover {
    background: rgba(29, 140, 248, 0.1);
    border-color: rgba(29, 140, 248, 0.3);
}

.sidebar-transaction-date {
    font-size: 0.85em;
    color: #adb5bd;
    margin-bottom: 5px;
}

.white-content .sidebar-transaction-date {
    color: #6c757d;
}

.sidebar-transaction-merchant {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 5px;
    color: #fff;
}

.white-content .sidebar-transaction-merchant {
    color: #1d253b;
}

.sidebar-transaction-amount {
    font-size: 1.1em;
    font-weight: 700;
    color: #00f2c3;
}

.sidebar-transaction-amount.negative {
    color: #fd5d93;
}

.white-content .sidebar-transaction-amount {
    color: #00bf9a;
}

.white-content .sidebar-transaction-amount.negative {
    color: #fd5d93;
}

/* Stats Summary in Sidebar */
.sidebar-stats-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.sidebar-stat-card {
    background: rgba(29, 140, 248, 0.1);
    border: 1px solid rgba(29, 140, 248, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-stat-card:hover {
    border-color: rgba(29, 140, 248, 0.5);
    transform: translateY(-2px);
    background: rgba(29, 140, 248, 0.15);
}

.white-content .sidebar-stat-card {
    background: rgba(29, 140, 248, 0.08);
    border: 1px solid rgba(29, 140, 248, 0.2);
}

.sidebar-stat-label {
    font-size: 0.85em;
    color: #adb5bd;
    margin-bottom: 5px;
}

.white-content .sidebar-stat-label {
    color: #6c757d;
}

.sidebar-stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #1d8cf8;
}

.white-content .sidebar-stat-value {
    color: #1d8cf8;
}

/* Empty State */
.sidebar-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #adb5bd;
}

.sidebar-empty-state i {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.sidebar-empty-state p {
    font-size: 1.1em;
    margin: 0;
}

.white-content .sidebar-empty-state {
    color: #6c757d;
}

/* Loading State */
.sidebar-loading {
    text-align: center;
    padding: 60px 20px;
}

.sidebar-loading .spinner {
    border: 4px solid rgba(29, 140, 248, 0.2);
    border-top: 4px solid #1d8cf8;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CATEGORY TRANSACTION SIDEBAR ENHANCEMENTS ===== */
.category-transactions-shell {
    position: relative;
}

.category-transactions-scroll {
    position: relative;
}

.category-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 6;
    position: -webkit-sticky;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 4px 0 6px;
    margin: 0 -20px 6px -20px;
    background: linear-gradient(180deg, rgba(17, 22, 36, 0) 0%, rgba(17, 22, 36, 0.06) 100%);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.white-content .category-sticky-bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 246, 250, 0.35) 100%);
    border-bottom-color: rgba(29, 140, 248, 0.12);
}

.category-metrics-collapsible {
    max-height: 1200px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.category-metrics-collapsible.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.category-metrics-toggle-wrapper {
    padding: 6px 20px 0 20px;
    display: flex;
    justify-content: flex-end;
}

.category-metrics-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.category-metrics-toggle:hover {
    background: rgba(29, 140, 248, 0.15);
}

.white-content .category-metrics-toggle {
    color: #1d8cf8;
    background: rgba(29, 140, 248, 0.08);
    border-color: rgba(29, 140, 248, 0.2);
    box-shadow: 0 8px 16px rgba(29, 140, 248, 0.12);
}

.category-sticky-month {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    padding: 0 8px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.white-content .category-sticky-month {
    text-shadow: 0 1px 8px rgba(29, 140, 248, 0.18);
}

.category-month-header {
    text-align: center;
    margin: 0 0 10px 0;
    padding: 8px 0 6px;
    font-weight: 700;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.category-month-header::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.white-content .category-month-header {
    color: #1d1f2c;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller */
@media (max-width: 768px) {
    .right-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .sidebar-header {
        padding: 20px;
    }
    
    .sidebar-content {
        padding: 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .sidebar-stats-summary {
        grid-template-columns: 1fr;
    }
}

/* ===== MODERN TOGGLE SWITCH ===== */
.prism-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.prism-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.prism-toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(29, 140, 248, 0.3);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.prism-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 2px;
    background: #adb5bd;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prism-toggle-input:checked + .prism-toggle-slider {
    background: linear-gradient(135deg, #1d8cf8 0%, #5e72e4 100%);
    border-color: #1d8cf8;
}

.prism-toggle-input:checked + .prism-toggle-slider::before {
    transform: translateX(24px);
    background: #fff;
    box-shadow: 0 2px 6px rgba(29, 140, 248, 0.4);
}

.prism-toggle-input:focus + .prism-toggle-slider {
    box-shadow: 0 0 0 3px rgba(29, 140, 248, 0.2);
}

.prism-toggle-label {
    font-size: 0.95em;
    font-weight: 500;
    color: #adb5bd;
    transition: color 0.3s ease;
    margin: 0;
}

.prism-toggle-input:checked ~ .prism-toggle-label {
    color: #1d8cf8;
}

.prism-toggle:hover .prism-toggle-slider {
    border-color: rgba(29, 140, 248, 0.5);
}

.prism-toggle:hover .prism-toggle-label {
    color: #fff;
}

.prism-toggle-input:checked ~ .prism-toggle-label {
    color: #1d8cf8;
}

/* White content mode */
.white-content .prism-toggle-slider {
    background: rgba(226, 227, 228, 0.5);
    border-color: rgba(29, 140, 248, 0.2);
}

.white-content .prism-toggle-slider::before {
    background: #525f7f;
}

.white-content .prism-toggle-label {
    color: #525f7f;
}

.white-content .prism-toggle:hover .prism-toggle-label {
    color: #1d253b;
}

.white-content .prism-toggle-input:checked ~ .prism-toggle-label {
    color: #1d8cf8;
}

/* ===== REPORT TABLE STYLES ===== */
/* Modern financial report table styling with category hierarchy */
.report-table-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(29, 140, 248, 0.15);
}

.report-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.report-table thead th {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.15) 0%, rgba(29, 140, 248, 0.08) 100%);
    padding: 16px 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(29, 140, 248, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.report-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

/* Section headers (INCOME, OPERATING EXPENSES, etc) */
.report-section-header {
    padding: 24px 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #5fcdf8 !important;
    background: linear-gradient(90deg, rgba(29, 140, 248, 0.08) 0%, transparent 100%) !important;
    border-left: 4px solid #1d8cf8;
}

/* Individual category rows */
.report-category-row td {
    padding-left: 36px !important;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.report-category-row:hover {
    background: rgba(29, 140, 248, 0.05);
}

.report-category-row:hover td {
    color: #ffffff;
}

/* Subtotal rows (Total Rental Income, Total Operating Expenses, etc) */
.report-subtotal-row {
    background: linear-gradient(90deg, rgba(127, 146, 193, 0.25) 0%, rgba(127, 146, 193, 0.15) 100%) !important;
    border-top: 1px solid rgba(127, 146, 193, 0.4) !important;
    border-bottom: 1px solid rgba(127, 146, 193, 0.4) !important;
}

.report-subtotal-row td {
    padding: 14px 12px !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #d0d8f0;
}

/* Grand total rows (All Income, All Operating Expenses) */
.report-grandtotal-row {
    background: linear-gradient(90deg, rgba(219, 152, 85, 0.35) 0%, rgba(219, 152, 85, 0.25) 100%) !important;
    border-top: 2px solid rgba(219, 152, 85, 0.6) !important;
    border-bottom: 2px solid rgba(219, 152, 85, 0.6) !important;
}

.report-grandtotal-row td {
    padding: 16px 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    color: #ffd89b;
}

/* Net Operating Income row */
.report-noi-row {
    background: linear-gradient(90deg, rgba(39, 151, 213, 0.4) 0%, rgba(39, 151, 213, 0.3) 100%) !important;
    border-top: 3px solid rgba(39, 151, 213, 0.8) !important;
    border-bottom: 3px solid rgba(39, 151, 213, 0.8) !important;
}

.report-noi-row td {
    padding: 18px 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    color: #5fcdf8;
}

/* Net Cash Flow row (final result) */
.report-ncf-row {
    background: linear-gradient(90deg, rgba(87, 131, 65, 0.45) 0%, rgba(87, 131, 65, 0.35) 100%) !important;
    border-top: 4px solid rgba(68, 101, 52, 1) !important;
    border-bottom: 4px solid rgba(68, 101, 52, 1) !important;
}

.report-ncf-row td {
    padding: 20px 12px !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: 1.2px;
    color: #a5d98a;
}

/* Spacer rows */
.report-spacer-row {
    height: 40px;
    background: transparent !important;
}

.report-spacer-row td {
    border: none !important;
    padding: 0 !important;
}

/* Property breakdown tooltip indicator */
.property-breakdown-indicator {
    color: #1d8cf8;
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.8;
}

/* White content mode overrides */
.white-content .report-table-container {
    background: rgba(226, 227, 228, 0.3);
    border: 1px solid rgba(29, 140, 248, 0.2);
}

.white-content .report-table thead th {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%);
    color: #1d253b;
}

.white-content .report-table tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #525f7f;
}

.white-content .report-section-header {
    color: #1d8cf8;
    background: linear-gradient(90deg, rgba(29, 140, 248, 0.1) 0%, transparent 100%) !important;
}

.white-content .report-grandtotal-row td {
    color: #d68745;
}

.white-content .report-noi-row td {
    color: #1d8cf8;
}

.white-content .report-ncf-row td {
    color: #5a8f41;
}

/* ===== REPORT CONTROLS ===== */
/* Modern control panel for report filters */
.report-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 20px;
}

.report-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-control-label {
    font-size: 0.9rem;
    color: #adb5bd;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.white-content .report-controls {
    background: rgba(226, 227, 228, 0.3);
}

.white-content .report-control-label {
    color: #6c757d;
}

/* ===== MODERN DROPDOWN STYLING ===== */
/* Bootstrap-select dropdown modernization */
.report-controls .bootstrap-select .dropdown-toggle {
    background: rgba(29, 140, 248, 0.08);
    border: 1px solid rgba(29, 140, 248, 0.3);
    border-radius: 8px;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.report-controls .bootstrap-select .dropdown-toggle:hover,
.report-controls .bootstrap-select .dropdown-toggle:focus {
    background: rgba(29, 140, 248, 0.15);
    border-color: rgba(29, 140, 248, 0.5);
    box-shadow: 0 0 0 3px rgba(29, 140, 248, 0.1);
}

.report-controls .bootstrap-select .dropdown-toggle .filter-option {
    color: #ffffff;
}

.report-controls .bootstrap-select .dropdown-menu {
    background: #27293d !important;
    border: 1px solid rgba(29, 140, 248, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    margin-top: 8px;
}

.report-controls .bootstrap-select .dropdown-menu li a {
    color: #e0e0e0 !important;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.report-controls .bootstrap-select .dropdown-menu li a:hover {
    background: rgba(29, 140, 248, 0.15) !important;
    color: #ffffff !important;
}

.report-controls .bootstrap-select .dropdown-menu li.selected a {
    background: rgba(29, 140, 248, 0.25) !important;
    color: #5fcdf8 !important;
}

.report-controls .bootstrap-select .dropdown-menu li.active a {
    background: rgba(29, 140, 248, 0.25) !important;
    color: #5fcdf8 !important;
}

.report-controls .bootstrap-select .bs-searchbox .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(29, 140, 248, 0.3);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 12px;
}

.report-controls .bootstrap-select .bs-searchbox .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(29, 140, 248, 0.5);
    outline: none;
}

.report-controls .bootstrap-select .bs-searchbox .form-control::placeholder {
    color: #adb5bd;
}

/* White content mode overrides for dropdowns */
.white-content .report-controls .bootstrap-select .dropdown-toggle {
    background: rgba(29, 140, 248, 0.06);
    border-color: rgba(29, 140, 248, 0.25);
    color: #1d253b;
}

.white-content .report-controls .bootstrap-select .dropdown-toggle:hover,
.white-content .report-controls .bootstrap-select .dropdown-toggle:focus {
    background: rgba(29, 140, 248, 0.12);
    border-color: rgba(29, 140, 248, 0.4);
}

.white-content .report-controls .bootstrap-select .dropdown-toggle .filter-option {
    color: #1d253b;
}

.white-content .report-controls .bootstrap-select .dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(29, 140, 248, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.white-content .report-controls .bootstrap-select .dropdown-menu li a {
    color: #525f7f !important;
}

.white-content .report-controls .bootstrap-select .dropdown-menu li a:hover {
    background: rgba(29, 140, 248, 0.1) !important;
    color: #1d253b !important;
}

.white-content .report-controls .bootstrap-select .dropdown-menu li.selected a,
.white-content .report-controls .bootstrap-select .dropdown-menu li.active a {
    background: rgba(29, 140, 248, 0.2) !important;
    color: #1d8cf8 !important;
}

.white-content .report-controls .bootstrap-select .bs-searchbox .form-control {
    background: rgba(226, 227, 228, 0.5);
    border-color: rgba(29, 140, 248, 0.2);
    color: #1d253b;
}

.white-content .report-controls .bootstrap-select .bs-searchbox .form-control:focus {
    background: rgba(226, 227, 228, 0.8);
    border-color: rgba(29, 140, 248, 0.4);
}

.white-content .report-controls .bootstrap-select .bs-searchbox .form-control::placeholder {
    color: #6c757d;
}

/* ===== MODERN SELECT DROPDOWN ===== */
.prism-select-wrapper {
    position: relative;
    width: 100%;
}

.prism-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #1d8cf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.prism-select-wrapper:hover::after {
    border-top-color: #4da3ff;
}

.prism-select-wrapper:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: #4da3ff;
}

.prism-select {
    font-size: 1.05em;
    font-weight: 500;
    border: 2px solid rgba(29, 140, 248, 0.3);
    background: rgba(29, 140, 248, 0.05);
    padding: 12px 45px 12px 20px;
    border-radius: 25px;
    width: 100%;
    color: #fff;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
}

.prism-select:hover {
    border-color: rgba(29, 140, 248, 0.5);
    background: rgba(29, 140, 248, 0.08);
}

.prism-select:focus {
    border-color: #1d8cf8;
    background: rgba(29, 140, 248, 0.1);
    box-shadow: 0 5px 20px rgba(29, 140, 248, 0.25);
}

.prism-select option {
    background: #27293d;
    color: #fff;
    padding: 12px;
}

.white-content .prism-select {
    color: #1d253b;
    border-color: rgba(29, 140, 248, 0.25);
    background: rgba(29, 140, 248, 0.03);
}

.white-content .prism-select:hover {
    border-color: rgba(29, 140, 248, 0.4);
    background: rgba(29, 140, 248, 0.06);
}

.white-content .prism-select:focus {
    border-color: #1d8cf8;
    background: rgba(29, 140, 248, 0.08);
    box-shadow: 0 3px 15px rgba(29, 140, 248, 0.15);
}

.white-content .prism-select option {
    background: #ffffff;
    color: #1d253b;
}

.white-content .prism-select-wrapper::after {
    border-top-color: #1d8cf8;
}

/* ===== STATS METRIC CARD STYLES ===== */
/* Used in: investment-stats.html */

.stats-page {
    font-family: "DM Sans", sans-serif;
}

.stats-page .prism-card,
.stats-page .prism-card-glow {
    border-radius: 16px;
}

.stats-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(29, 140, 248, 0.35);
}

.stats-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(225, 78, 202, 0.18) 0%, rgba(225, 78, 202, 0) 70%);
    pointer-events: none;
}

.stats-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -120px -100px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(29, 140, 248, 0.2) 0%, rgba(29, 140, 248, 0) 70%);
    pointer-events: none;
}

.stats-hero > .row {
    position: relative;
    z-index: 1;
}

.stats-hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 700;
    color: #5fcdf8;
}

.stats-hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0;
}

.stats-hero-subtitle {
    color: #c3d0e8;
    font-size: 1.02rem;
    max-width: 58ch;
}

.stats-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stats-hero-spotlight {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(29, 140, 248, 0.2) 0%, rgba(29, 140, 248, 0.06) 100%);
    border: 1px solid rgba(29, 140, 248, 0.35);
    box-shadow: 0 16px 32px rgba(3, 10, 30, 0.28);
}

.stats-hero-spotlight-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.66rem;
    color: #9cb7df;
    font-weight: 700;
}

.stats-hero-spotlight-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
}

.stats-hero-spotlight-footnote {
    font-size: 0.82rem;
    color: #adb5bd;
}

.stats-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
    background: rgba(29, 140, 248, 0.12);
    color: #1d8cf8;
    border: 1px solid rgba(29, 140, 248, 0.25);
    transition: all 0.3s ease;
}

.prism-card:hover .stats-metric-icon,
.prism-card-glow:hover .stats-metric-icon {
    transform: scale(1.1);
}

.white-content .stats-metric-icon {
    background: rgba(29, 140, 248, 0.08);
    border-color: rgba(29, 140, 248, 0.15);
}

.stats-metric-icon.icon-success {
    background: rgba(0, 242, 195, 0.12);
    color: #00f2c3;
    border-color: rgba(0, 242, 195, 0.25);
}

.white-content .stats-metric-icon.icon-success {
    background: rgba(0, 242, 195, 0.08);
    color: #00bf9a;
    border-color: rgba(0, 242, 195, 0.15);
}

.stats-metric-icon.icon-danger {
    background: rgba(253, 93, 147, 0.12);
    color: #fd5d93;
    border-color: rgba(253, 93, 147, 0.25);
}

.white-content .stats-metric-icon.icon-danger {
    background: rgba(253, 93, 147, 0.08);
    border-color: rgba(253, 93, 147, 0.15);
}

.stats-metric-icon.icon-warning {
    background: rgba(255, 141, 114, 0.12);
    color: #ff8d72;
    border-color: rgba(255, 141, 114, 0.25);
}

.white-content .stats-metric-icon.icon-warning {
    background: rgba(255, 141, 114, 0.08);
    border-color: rgba(255, 141, 114, 0.15);
}

.stats-metric-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #adb5bd;
    margin-bottom: 8px;
    line-height: 1.4;
}

.white-content .stats-metric-label {
    color: #6c757d;
}

.stats-metric-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.white-content .stats-metric-value {
    color: #1d253b;
}

.stats-appreciation-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.stats-appreciation-pct {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.stats-appreciation-amount {
    font-size: 0.95rem;
    font-weight: 600;
    color: #adb5bd;
    padding-bottom: 3px;
}

.white-content .stats-appreciation-amount {
    color: #6c757d;
}

.stats-section-divider {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1d8cf8;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(29, 140, 248, 0.22);
}

.stats-section-divider span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(29, 140, 248, 0.1);
    border: 1px solid rgba(29, 140, 248, 0.24);
}

.white-content .stats-section-divider {
    border-bottom-color: rgba(29, 140, 248, 0.15);
}

.stats-filter-bar {
    background: linear-gradient(180deg, rgba(7, 17, 37, 0.7) 0%, rgba(7, 17, 37, 0.35) 100%);
    border: 1px solid rgba(29, 140, 248, 0.22);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 35px;
    box-shadow: 0 14px 28px rgba(3, 11, 28, 0.22);
}

.stats-filter-label {
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.73rem;
    font-weight: 700;
    color: #5fcdf8;
}

.stats-filter-hint {
    margin-top: 5px;
    font-size: 0.82rem;
    color: #97a9cb;
}

.white-content .stats-filter-bar {
    background: linear-gradient(180deg, rgba(29, 140, 248, 0.06) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(29, 140, 248, 0.16);
    box-shadow: 0 10px 22px rgba(29, 37, 59, 0.08);
}

.white-content .stats-filter-hint {
    color: #5e6f8e;
}

.stats-filter-bar .bootstrap-select > .dropdown-toggle {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(29, 140, 248, 0.35);
    background: rgba(29, 140, 248, 0.1);
    color: #dce7ff;
}

.stats-filter-bar .bootstrap-select .filter-option-inner-inner {
    font-size: 0.9rem;
}

.stats-filter-bar .bootstrap-select .dropdown-menu {
    border-radius: 10px;
}

.white-content .stats-filter-bar .bootstrap-select > .dropdown-toggle {
    background: rgba(29, 140, 248, 0.08);
    border-color: rgba(29, 140, 248, 0.22);
    color: #1d253b;
}

.stats-metric-card {
    min-height: 212px;
}

.stats-visual-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stats-map-container {
    height: 420px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin: -25px -25px -25px -25px;
}

.stats-map-container #map {
    width: 100%;
    height: 100%;
}

.stats-reveal {
    animation: stats-fade-up 0.55s ease;
}

.stats-metric-grid .col-xl-3:nth-child(1),
.stats-metric-grid .col-lg-4:nth-child(1) {
    animation: stats-fade-up 0.35s ease;
}

.stats-metric-grid .col-xl-3:nth-child(2),
.stats-metric-grid .col-lg-4:nth-child(2) {
    animation: stats-fade-up 0.45s ease;
}

.stats-metric-grid .col-xl-3:nth-child(3),
.stats-metric-grid .col-lg-4:nth-child(3) {
    animation: stats-fade-up 0.55s ease;
}

.stats-metric-grid .col-xl-3:nth-child(4) {
    animation: stats-fade-up 0.65s ease;
}

@keyframes stats-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.white-content .stats-hero-subtitle {
    color: #4f6488;
}

.white-content .stats-hero-spotlight {
    background: linear-gradient(155deg, rgba(29, 140, 248, 0.14) 0%, rgba(29, 140, 248, 0.05) 100%);
    border-color: rgba(29, 140, 248, 0.22);
    box-shadow: 0 10px 24px rgba(29, 37, 59, 0.1);
}

.white-content .stats-hero-spotlight-value {
    color: #1d253b;
}

.white-content .stats-hero-spotlight-label {
    color: #5579aa;
}

.white-content .stats-section-divider span {
    background: rgba(29, 140, 248, 0.07);
    border-color: rgba(29, 140, 248, 0.16);
}

.white-content .prism-select-wrapper:hover::after {
    border-top-color: #4da3ff;
}

@media (max-width: 991px) {
    .stats-hero-title {
        font-size: 2rem;
    }

    .stats-hero-subtitle {
        max-width: 100%;
    }

    .stats-map-container {
        height: 360px;
    }
}

@media (max-width: 576px) {
    .stats-hero-title {
        font-size: 1.7rem;
    }

    .stats-hero-badges {
        gap: 8px;
    }

    .stats-filter-bar {
        padding: 16px;
    }

    .stats-map-container {
        height: 320px;
    }
}

/* ===== CHART FULL WIDTH STYLING ===== */
/* Ensure chart takes full width of container */
#cash-flow-chart {
    width: 100%;
    margin: 0 -25px;
    padding: 0;
}

#cash-flow-chart .highcharts-figure {
    width: 100%;
    margin: 0;
}

#cash-flow-chart #container {
    width: 100% !important;
    height: 500px;
}

/* ===== CATEGORY SELECTION UI WITH EMOJIS ===== */
/* Grid layout for category options */
.category-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 4px;
}

/* Individual category option card */
.category-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
    min-height: 90px;
    justify-content: center;
}

.category-option:hover {
    background: rgba(29, 140, 248, 0.15);
    border-color: rgba(29, 140, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 140, 248, 0.2);
}

.category-option.selected {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.25) 0%, rgba(29, 140, 248, 0.15) 100%);
    border-color: #1d8cf8;
    box-shadow: 0 4px 16px rgba(29, 140, 248, 0.35);
}

.category-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Category emoji display */
.category-emoji {
    font-size: 2em;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.category-option:hover .category-emoji {
    transform: scale(1.15);
}

.category-option.selected .category-emoji {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(29, 140, 248, 0.4));
}

/* Category name text */
.category-name {
    font-size: 0.85em;
    font-weight: 600;
    color: #e0e0e0;
    line-height: 1.3;
    word-break: break-word;
}

.category-option:hover .category-name {
    color: #ffffff;
}

.category-option.selected .category-name {
    color: #5fcdf8;
}

/* Check icon for selected category */
.category-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #00f2c3;
    font-size: 1em;
    background: rgba(0, 242, 195, 0.2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkBounce 0.4s ease-out;
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* White content mode overrides */
.white-content .category-option {
    background: rgba(226, 227, 228, 0.5);
    border: 2px solid rgba(29, 140, 248, 0.2);
}

.white-content .category-option:hover {
    background: rgba(29, 140, 248, 0.1);
    border-color: rgba(29, 140, 248, 0.4);
}

.white-content .category-option.selected {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.2) 0%, rgba(29, 140, 248, 0.1) 100%);
    border-color: #1d8cf8;
    box-shadow: 0 4px 16px rgba(29, 140, 248, 0.25);
}

.white-content .category-name {
    color: #525f7f;
}

.white-content .category-option:hover .category-name {
    color: #1d253b;
}

.white-content .category-option.selected .category-name {
    color: #1d8cf8;
}

.white-content .category-check {
    color: #00bf9a;
    background: rgba(0, 242, 195, 0.15);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .category-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .category-option {
        padding: 12px 10px;
        min-height: 80px;
    }

    .category-emoji {
        font-size: 1.6em;
    }

    .category-name {
        font-size: 0.8em;
    }
}

/* ===== REDESIGNED CATEGORY EDIT INTERFACE ===== */

/* Main container for category edit */
.category-edit-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

/* Transaction Header Card */
.transaction-header-card {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.08) 0%, rgba(29, 140, 248, 0.02) 100%);
    border: 1px solid rgba(29, 140, 248, 0.2);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.transaction-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.transaction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.transaction-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.transaction-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.transaction-type {
    margin-top: 4px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-cash {
    background: rgba(255, 191, 0, 0.2);
    color: #ffbf00;
    border: 1px solid rgba(255, 191, 0, 0.4);
}

.badge-bank {
    background: rgba(29, 140, 248, 0.2);
    color: #1d8cf8;
    border: 1px solid rgba(29, 140, 248, 0.4);
}

.transaction-amount {
    font-size: 1.5em;
    font-weight: 700;
    text-align: right;
    line-height: 1;
}

.transaction-amount.positive {
    color: #00f2c3;
    text-shadow: 0 2px 8px rgba(0, 242, 195, 0.3);
}

.transaction-amount.negative {
    color: #fd5d93;
    text-shadow: 0 2px 8px rgba(253, 93, 147, 0.3);
}

/* Category Breadcrumb */
.category-breadcrumb {
    background: rgba(29, 140, 248, 0.08);
    border: 1px solid rgba(29, 140, 248, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
}

.breadcrumb-label {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 0.95em;
    font-weight: 600;
    color: #1d8cf8;
    padding: 4px 0;
}

.breadcrumb-separator {
    font-size: 1.2em;
    color: rgba(29, 140, 248, 0.4);
    font-weight: 300;
}

.breadcrumb-empty {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Category Dropdown Section */
.category-dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    padding: 8px 4px;
}

.category-dropdown-section .form-group {
    margin-bottom: 0;
}

.category-dropdown-section .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-dropdown-section .form-label i {
    font-size: 1.1em;
    color: #1d8cf8;
}

/* Custom Select Dropdown Styles */
.dropdown-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.dropdown-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dropdown-label i {
    font-size: 1.1em;
    color: #1d8cf8;
}

.optional-text {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

.select-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.08) 0%, rgba(29, 140, 248, 0.03) 100%);
    border: 2px solid rgba(29, 140, 248, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
}

.select-trigger:hover {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.15) 0%, rgba(29, 140, 248, 0.05) 100%);
    border-color: rgba(29, 140, 248, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 140, 248, 0.2);
}

.custom-select.open .select-trigger {
    border-color: #1d8cf8;
    box-shadow: 0 0 0 3px rgba(29, 140, 248, 0.2);
}

.select-emoji {
    font-size: 1.8em;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.select-text {
    flex: 1;
    font-size: 0.95em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.select-trigger:hover .select-text {
    color: #fff;
}

.select-arrow {
    flex-shrink: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
    color: #1d8cf8;
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(20, 30, 48, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(29, 140, 248, 0.3);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.open .select-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(29, 140, 248, 0.4);
    border-radius: 4px;
}

.select-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 140, 248, 0.6);
}

.select-group-label {
    padding: 10px 16px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(29, 140, 248, 0.1);
    border-bottom: 1px solid rgba(29, 140, 248, 0.2);
    position: sticky;
    top: 0;
    z-index: 1;
}

.select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.select-option:hover {
    background: linear-gradient(90deg, rgba(29, 140, 248, 0.15) 0%, rgba(29, 140, 248, 0.05) 100%);
    border-left-color: #1d8cf8;
}

.select-option.selected {
    background: linear-gradient(90deg, rgba(29, 140, 248, 0.25) 0%, rgba(29, 140, 248, 0.1) 100%);
    border-left-color: #00f2c3;
}

.select-option.selected::after {
    content: '\2713';
    margin-left: auto;
    color: #00f2c3;
    font-weight: bold;
    font-size: 1.2em;
}

.option-emoji {
    font-size: 1.5em;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.option-text {
    flex: 1;
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.select-option:hover .option-text {
    color: #fff;
}

.select-option.selected .option-text {
    color: #5fcdf8;
    font-weight: 700;
}

/* Legacy dropdown styles for backward compatibility */
.category-select-dropdown {
    width: 100%;
    padding: 14px 16px;
    background: rgba(29, 140, 248, 0.08);
    border: 2px solid rgba(29, 140, 248, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d8cf8' d='M1.41 0L6 4.58 10.59 0 12 1.42l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.category-select-dropdown:hover {
    background: rgba(29, 140, 248, 0.12);
    border-color: rgba(29, 140, 248, 0.4);
    box-shadow: 0 4px 12px rgba(29, 140, 248, 0.15);
}

.category-select-dropdown:focus {
    outline: none;
    border-color: #1d8cf8;
    box-shadow: 0 0 0 3px rgba(29, 140, 248, 0.2);
}

.category-select-dropdown option {
    background: #1e1e2e;
    color: #fff;
    padding: 12px;
    font-size: 0.95em;
}

.category-select-dropdown optgroup {
    background: #171721;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 0.85em;
    padding: 8px 12px;
}

/* Category Icon Preview (for emoji-images/Genmoji) */
.category-icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    background: rgba(29, 140, 248, 0.08);
    border: 2px solid rgba(29, 140, 248, 0.2);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
}

.category-icon-preview:empty {
    display: none;
}

.category-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-icon-preview:has(img) {
    background: rgba(29, 140, 248, 0.12);
    border-color: rgba(29, 140, 248, 0.3);
    box-shadow: 0 2px 8px rgba(29, 140, 248, 0.2);
}

/* Display regular emojis nicely too */
.category-icon-preview:not(:has(img)) {
    font-size: 1.8em;
    line-height: 1;
}

/* Category Tabs (legacy - kept for backward compatibility) */
.category-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.9em;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-tab:hover::before {
    opacity: 1;
}

.category-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.25) 0%, rgba(29, 140, 248, 0.15) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(29, 140, 248, 0.3);
    border: 1px solid rgba(29, 140, 248, 0.4);
}

.tab-icon {
    font-size: 1.2em;
    line-height: 1;
}

.tab-label {
    font-weight: 600;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(29, 140, 248, 0.2);
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 700;
}

.category-tab.active .tab-count {
    background: rgba(29, 140, 248, 0.4);
    color: #fff;
}

/* Category Content Wrapper */
.category-content-wrapper {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* Category Tab Content */
.category-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.category-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Cards Grid */
.sidebar-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 4px;
}

/* Individual Sidebar Category Card */
.sidebar-category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    text-align: center;
    overflow: hidden;
}

.sidebar-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-category-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(29, 140, 248, 0.5);
    box-shadow: 0 8px 24px rgba(29, 140, 248, 0.3);
}

.sidebar-category-card:hover::before {
    opacity: 0.5;
}

.sidebar-category-card.selected {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.3) 0%, rgba(29, 140, 248, 0.15) 100%);
    border-color: #1d8cf8;
    box-shadow: 0 8px 32px rgba(29, 140, 248, 0.4);
    transform: translateY(-2px);
}

.sidebar-category-card.selected::before {
    opacity: 1;
}

.sidebar-category-emoji {
    font-size: 2.5em;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.sidebar-category-card:hover .sidebar-category-emoji {
    transform: scale(1.15) rotate(5deg);
}

.sidebar-category-card.selected .sidebar-category-emoji {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(29, 140, 248, 0.5));
}

.sidebar-category-name {
    font-size: 0.85em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    word-break: break-word;
    z-index: 1;
}

.sidebar-category-card:hover .sidebar-category-name {
    color: #fff;
}

.sidebar-category-card.selected .sidebar-category-name {
    color: #5fcdf8;
    font-weight: 700;
}

.sidebar-category-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00f2c3;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.sidebar-category-check i {
    color: #1a2035;
    font-size: 0.8em;
    font-weight: bold;
}

.sidebar-category-card.selected .sidebar-category-check {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Subcategory Container */
.category-subcategory-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.subcategory-title {
    font-size: 0.95em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subcategory-title i {
    color: #1d8cf8;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(29, 140, 248, 0.4);
    color: #1d8cf8;
    transform: translateX(-2px);
}

.back-button i {
    font-size: 0.9em;
}

/* Footer Actions */
.category-footer-actions {
    flex-shrink: 0;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

/* White Content Mode Overrides */
.white-content .transaction-header-card {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.08) 0%, rgba(29, 140, 248, 0.02) 100%);
    border-color: rgba(29, 140, 248, 0.3);
}

.white-content .transaction-date {
    color: rgba(0, 0, 0, 0.5);
}

.white-content .transaction-name {
    color: #1d253b;
}

.white-content .category-breadcrumb {
    background: rgba(29, 140, 248, 0.05);
    border-color: rgba(29, 140, 248, 0.2);
}

.white-content .breadcrumb-label {
    color: rgba(0, 0, 0, 0.5);
}

.white-content .breadcrumb-empty {
    color: rgba(0, 0, 0, 0.3);
}

.white-content .category-dropdown-section .form-label {
    color: rgba(0, 0, 0, 0.7);
}

.white-content .category-select-dropdown {
    background: rgba(29, 140, 248, 0.05);
    border-color: rgba(29, 140, 248, 0.3);
    color: #1d253b;
}

.white-content .category-select-dropdown:hover {
    background: rgba(29, 140, 248, 0.08);
    border-color: rgba(29, 140, 248, 0.5);
}

.white-content .category-select-dropdown option {
    background: #fff;
    color: #1d253b;
}

.white-content .category-select-dropdown optgroup {
    background: #f4f5f7;
    color: rgba(0, 0, 0, 0.5);
}

.white-content .category-icon-preview {
    background: rgba(29, 140, 248, 0.05);
    border-color: rgba(29, 140, 248, 0.25);
}

.white-content .category-icon-preview:has(img) {
    background: rgba(29, 140, 248, 0.08);
    border-color: rgba(29, 140, 248, 0.35);
    box-shadow: 0 2px 8px rgba(29, 140, 248, 0.15);
}

/* White Content (Light Mode) - Custom Select Overrides */
.white-content .dropdown-label {
    color: rgba(0, 0, 0, 0.7);
}

.white-content .optional-text {
    color: rgba(0, 0, 0, 0.4);
}

.white-content .select-trigger {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.08) 0%, rgba(29, 140, 248, 0.02) 100%);
    border-color: rgba(29, 140, 248, 0.25);
}

.white-content .select-trigger:hover {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.12) 0%, rgba(29, 140, 248, 0.04) 100%);
    border-color: rgba(29, 140, 248, 0.4);
}

.white-content .select-text {
    color: #525f7f;
}

.white-content .select-trigger:hover .select-text {
    color: #1d253b;
}

.white-content .select-arrow {
    color: rgba(0, 0, 0, 0.5);
}

.white-content .custom-select.open .select-arrow {
    color: #1d8cf8;
}

.white-content .select-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(29, 140, 248, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.white-content .select-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

.white-content .select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(29, 140, 248, 0.3);
}

.white-content .select-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 140, 248, 0.5);
}

.white-content .select-group-label {
    color: rgba(0, 0, 0, 0.5);
    background: rgba(29, 140, 248, 0.06);
    border-bottom-color: rgba(29, 140, 248, 0.15);
}

.white-content .select-option {
    border-left-color: transparent;
}

.white-content .select-option:hover {
    background: linear-gradient(90deg, rgba(29, 140, 248, 0.1) 0%, rgba(29, 140, 248, 0.03) 100%);
    border-left-color: #1d8cf8;
}

.white-content .select-option.selected {
    background: linear-gradient(90deg, rgba(29, 140, 248, 0.15) 0%, rgba(29, 140, 248, 0.06) 100%);
    border-left-color: #00bf9a;
}

.white-content .select-option.selected::after {
    color: #00bf9a;
}

.white-content .option-text {
    color: #525f7f;
}

.white-content .select-option:hover .option-text {
    color: #1d253b;
}

.white-content .select-option.selected .option-text {
    color: #1d8cf8;
}

.white-content .category-tabs {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.white-content .category-tab {
    color: rgba(0, 0, 0, 0.5);
}

.white-content .category-tab:hover {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.03);
}

.white-content .category-tab.active {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.15) 0%, rgba(29, 140, 248, 0.08) 100%);
    color: #1d8cf8;
}

.white-content .category-card {
    background: linear-gradient(135deg, rgba(226, 227, 228, 0.6) 0%, rgba(226, 227, 228, 0.3) 100%);
    border-color: rgba(29, 140, 248, 0.15);
}

.white-content .category-card:hover {
    border-color: rgba(29, 140, 248, 0.4);
}

.white-content .category-card.selected {
    background: linear-gradient(135deg, rgba(29, 140, 248, 0.2) 0%, rgba(29, 140, 248, 0.1) 100%);
    border-color: #1d8cf8;
}

.white-content .category-card-name {
    color: #525f7f;
}

.white-content .category-card:hover .category-card-name {
    color: #1d253b;
}

.white-content .category-card.selected .category-card-name {
    color: #1d8cf8;
}

.white-content .category-card-check {
    background: #00bf9a;
}

.white-content .category-card-check i {
    color: #fff;
}

.white-content .subcategory-title {
    color: #525f7f;
}

.white-content .back-button {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

.white-content .back-button:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(29, 140, 248, 0.4);
    color: #1d8cf8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .transaction-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .transaction-amount {
        text-align: left;
        margin-top: 8px;
    }

    .category-tabs {
        flex-direction: column;
    }

    .category-tab {
        justify-content: flex-start;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .category-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }

    .category-card {
        padding: 12px 8px;
        min-height: 85px;
    }

    .category-card-emoji {
        font-size: 2em;
        margin-bottom: 6px;
    }

    .category-card-name {
        font-size: 0.8em;
    }

    .subcategory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ── Category Badge Pills ── */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1.5px solid;
    font-size: 0.80rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}
.cat-badge img {
    width: 13px;
    height: 13px;
    vertical-align: middle;
}
.category-badges-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.category-badges-wrap .cat-sep {
    color: #6c757d;
    font-size: 0.75rem;
}

/* ===== GLOBAL SEARCH MODAL STYLES ===== */
/* Used in: navigation.html, navigation.js */

.search-modal-dialog {
    margin: 80px auto;
}

.search-modal-content {
    background: linear-gradient(180deg, #1a1d2e 0%, #151823 100%);
    border: 1px solid rgba(29, 140, 248, 0.35);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(29, 140, 248, 0.08);
    overflow: hidden;
}

.white-content .search-modal-content {
    background: linear-gradient(180deg, #f5f6fa 0%, #ffffff 100%);
    border: 1px solid rgba(29, 140, 248, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Search input bar */
.search-modal-bar {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(29, 140, 248, 0.15);
    gap: 14px;
}

.search-modal-icon {
    color: #1d8cf8;
    font-size: 1.2em;
    flex-shrink: 0;
    opacity: 0.7;
}

.search-modal-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0;
    line-height: 1.5;
}

.search-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.white-content .search-modal-input {
    color: #1d253b !important;
}

.white-content .search-modal-input::placeholder {
    color: rgba(29, 37, 59, 0.45) !important;
}

.search-modal-close-btn {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: all 0.2s ease;
}

.search-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-modal-close-btn kbd {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: inherit;
    background: none;
    border: none;
    padding: 0;
}

.white-content .search-modal-close-btn {
    border-color: rgba(29, 37, 59, 0.15);
}

.white-content .search-modal-close-btn:hover {
    background: rgba(29, 37, 59, 0.06);
    border-color: rgba(29, 37, 59, 0.25);
}

.white-content .search-modal-close-btn kbd {
    color: rgba(29, 37, 59, 0.45);
}

/* Results scroll container */
.search-modal-results {
    max-height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

/* Empty / hint state */
.search-modal-empty {
    padding: 28px 22px;
    display: flex;
    justify-content: center;
}

.search-modal-hint {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.search-modal-hint span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.white-content .search-modal-hint span {
    color: rgba(29, 37, 59, 0.35);
}

.search-modal-hint kbd {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: inherit;
}

.white-content .search-modal-hint kbd {
    background: rgba(29, 37, 59, 0.05);
    border-color: rgba(29, 37, 59, 0.12);
    color: rgba(29, 37, 59, 0.4);
}

/* Type group header */
.search-group-header {
    padding: 8px 22px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
}

.search-group-header:first-child {
    border-top: none;
    margin-top: 0;
}

.white-content .search-group-header {
    color: rgba(29, 37, 59, 0.3);
    border-top-color: rgba(29, 37, 59, 0.06);
}

/* Result row */
.search-result-item {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.12s ease;
    text-decoration: none !important;
    color: inherit !important;
}

.search-result-item:hover {
    background: rgba(29, 140, 248, 0.15);
    text-decoration: none !important;
}

.search-result-item.selected {
    background: rgba(29, 140, 248, 0.22);
    border-left: 3px solid #1d8cf8;
    padding-left: 19px; /* compensate for 3px border */
    text-decoration: none !important;
}

.white-content .search-result-item:hover {
    background: rgba(29, 140, 248, 0.1);
}

.white-content .search-result-item.selected {
    background: rgba(29, 140, 248, 0.14);
    border-left: 3px solid #1d8cf8;
    padding-left: 19px;
}

/* Type icon pill */
.search-result-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95em;
}

.search-result-icon.type-property  { background: rgba(29, 140, 248, 0.14); color: #1d8cf8; }
.search-result-icon.type-account   { background: rgba(0, 242, 195, 0.12);  color: #00f2c3; }
.search-result-icon.type-user      { background: rgba(225, 78, 202, 0.12); color: #e14eca; }
.search-result-icon.type-transaction { background: rgba(255, 141, 114, 0.12); color: #ff8d72; }
.search-result-icon.type-default   { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.45); }

.white-content .search-result-icon.type-account { color: #00bf9a; }
.white-content .search-result-icon.type-default { background: rgba(29, 37, 59, 0.07); color: rgba(29, 37, 59, 0.4); }

/* Title & description */
.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px;
    line-height: 1.35;
}

.white-content .search-result-title { color: #1d253b; }

.search-result-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.3;
}

.white-content .search-result-desc { color: rgba(29, 37, 59, 0.45); }

/* Type badge (right side) */
.search-result-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.search-result-badge.type-property    { background: rgba(29, 140, 248, 0.14);  color: #1d8cf8; }
.search-result-badge.type-account     { background: rgba(0, 242, 195, 0.12);   color: #00f2c3; }
.search-result-badge.type-user        { background: rgba(225, 78, 202, 0.12);  color: #e14eca; }
.search-result-badge.type-transaction { background: rgba(255, 141, 114, 0.12); color: #ff8d72; }
.search-result-badge.type-default     { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); }

.white-content .search-result-badge.type-account { color: #00bf9a; background: rgba(0, 191, 154, 0.12); }
.white-content .search-result-badge.type-default { background: rgba(29, 37, 59, 0.06); color: rgba(29, 37, 59, 0.4); }

/* No results state */
.search-no-results {
    padding: 36px 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.28);
}

.search-no-results i {
    font-size: 1.8em;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.search-no-results p {
    font-size: 0.88rem;
    margin: 0;
}

.white-content .search-no-results {
    color: rgba(29, 37, 59, 0.32);
}

/* ===== IMPERSONATION BANNER ===== */
/* Used in: footer.html */
@keyframes prism-impersonate-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 141, 114, 0.4), inset 0 0 20px rgba(255, 141, 114, 0.03); }
    50%       { box-shadow: 0 0 0 6px rgba(255, 141, 114, 0), inset 0 0 20px rgba(255, 141, 114, 0.08); }
}

.prism-impersonation-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    background: linear-gradient(90deg, rgba(255, 141, 114, 0.12) 0%, rgba(255, 141, 114, 0.05) 100%);
    border: 1px solid rgba(255, 141, 114, 0.35);
    border-left: 3px solid #ff8d72;
    border-radius: 8px;
    animation: prism-impersonate-pulse 2.5s ease-in-out infinite;
    font-size: 0.82rem;
    color: #e0e0e0;
    letter-spacing: 0.01em;
    vertical-align: middle;
}

.prism-impersonation-banner .prism-impersonate-icon {
    color: #ff8d72;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.prism-impersonation-banner .prism-impersonate-label {
    color: #adb5bd;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.prism-impersonation-banner .prism-impersonate-user {
    color: #ff8d72;
    font-weight: 700;
    font-size: 0.88rem;
}

.prism-impersonation-banner .prism-btn-stop {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    background: rgba(255, 141, 114, 0.15);
    border: 1px solid rgba(255, 141, 114, 0.4);
    border-radius: 5px;
    color: #ff8d72;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.prism-impersonation-banner .prism-btn-stop:hover {
    background: rgba(255, 141, 114, 0.28);
    border-color: #ff8d72;
    color: #ff8d72;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Light mode overrides */
.white-content .prism-impersonation-banner {
    background: linear-gradient(90deg, rgba(255, 141, 114, 0.1) 0%, rgba(255, 141, 114, 0.03) 100%);
    border-color: rgba(255, 141, 114, 0.3);
    border-left-color: #e07050;
    color: #1d253b;
}

.white-content .prism-impersonation-banner .prism-impersonate-icon {
    color: #e07050;
}

.white-content .prism-impersonation-banner .prism-impersonate-label {
    color: #6c757d;
}

.white-content .prism-impersonation-banner .prism-impersonate-user {
    color: #c05030;
}

.white-content .prism-impersonation-banner .prism-btn-stop {
    background: rgba(255, 141, 114, 0.12);
    border-color: rgba(200, 80, 48, 0.4);
    color: #c05030;
}

.white-content .prism-impersonation-banner .prism-btn-stop:hover {
    background: rgba(255, 141, 114, 0.22);
    border-color: #c05030;
    color: #c05030;
}

/* ===== ASSET TYPE BADGES ===== */
/* Used in: page-user-v2.html, right_sidebar.js */
.asset-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.asset-type-residential {
    background: rgba(29, 140, 248, 0.12);
    color: #1d8cf8;
    border-color: rgba(29, 140, 248, 0.3);
}

.asset-type-commercial {
    background: rgba(255, 141, 114, 0.12);
    color: #ff8d72;
    border-color: rgba(255, 141, 114, 0.3);
}

.asset-type-business {
    background: rgba(186, 84, 245, 0.12);
    color: #ba54f5;
    border-color: rgba(186, 84, 245, 0.3);
}

.white-content .asset-type-residential {
    background: rgba(29, 140, 248, 0.10);
    color: #1060c0;
    border-color: rgba(29, 140, 248, 0.25);
}

.white-content .asset-type-commercial {
    background: rgba(255, 141, 114, 0.10);
    color: #b84800;
    border-color: rgba(255, 141, 114, 0.25);
}

.white-content .asset-type-business {
    background: rgba(186, 84, 245, 0.10);
    color: #7020b8;
    border-color: rgba(186, 84, 245, 0.25);
}

/* ===== SCOPE FILTER DROPDOWN ===== */
/* Used in: index.html, reports.html */

/* Trigger button */
.ncf-filter-btn {
    background: transparent;
    border: 1px solid rgba(29, 140, 248, 0.4);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 5px 12px;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
}
.ncf-filter-btn:hover, .ncf-filter-btn:focus {
    border-color: rgba(29, 140, 248, 0.9);
    color: #fff;
    box-shadow: 0 0 12px rgba(29, 140, 248, 0.2);
    outline: none;
}
.ncf-filter-btn--active {
    border-color: rgba(225, 78, 202, 0.6);
    color: #e14eca;
}
.ncf-filter-btn--active:hover, .ncf-filter-btn--active:focus {
    border-color: rgba(225, 78, 202, 1);
    color: #e14eca;
    box-shadow: 0 0 12px rgba(225, 78, 202, 0.25);
}
.white-content .ncf-filter-btn {
    border-color: rgba(29, 140, 248, 0.35);
    color: rgba(29, 37, 59, 0.55);
}
.white-content .ncf-filter-btn:hover {
    border-color: #1d8cf8;
    color: #1d253b;
}
.white-content .ncf-filter-btn--active {
    border-color: rgba(225, 78, 202, 0.5);
    color: #e14eca;
}

/* Count pill */
.ncf-filter-count {
    display: inline-block;
    background: rgba(225, 78, 202, 0.2);
    color: #e14eca;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    padding: 0 4px;
    margin-left: 5px;
    vertical-align: middle;
    border: 1px solid rgba(225, 78, 202, 0.35);
}

/* Panel */
.ncf-filter-dropdown {
    min-width: 272px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(29, 140, 248, 0.35);
    background: linear-gradient(170deg, rgba(29, 140, 248, 0.12) 0%, rgba(14, 15, 30, 0.98) 40%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(29, 140, 248, 0.18);
    overflow: hidden;
    margin-top: 6px !important;
}
.ncf-filter-dropdown::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(29, 140, 248, 0.6) 50%, transparent 100%);
}
.white-content .ncf-filter-dropdown {
    background: linear-gradient(170deg, rgba(29, 140, 248, 0.07) 0%, rgba(245, 246, 250, 0.99) 40%);
    border-color: rgba(29, 140, 248, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(29, 140, 248, 0.12);
}

/* Header */
.ncf-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px 9px;
    border-bottom: 1px solid rgba(29, 140, 248, 0.12);
}
.ncf-filter-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1d8cf8;
}
.ncf-filter-actions {
    display: flex;
    gap: 5px;
}
.ncf-filter-actions a {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.ncf-filter-actions a:hover {
    border-color: rgba(29, 140, 248, 0.6);
    color: #1d8cf8;
    text-decoration: none;
}
.white-content .ncf-filter-header {
    border-bottom-color: rgba(29, 140, 248, 0.1);
}
.white-content .ncf-filter-label {
    color: #1d8cf8;
}
.white-content .ncf-filter-actions a {
    border-color: rgba(29, 37, 59, 0.15);
    color: rgba(29, 37, 59, 0.45);
}
.white-content .ncf-filter-actions a:hover {
    border-color: #1d8cf8;
    color: #1d8cf8;
}

/* List */
.ncf-filter-list {
    max-height: 232px;
    overflow-y: auto;
    padding: 4px 0;
}

/* Row */
.ncf-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 34px;
    margin: 0;
    cursor: pointer;
    transition: background 0.12s ease;
    font-weight: 400;
    user-select: none;
}
.ncf-filter-item:hover {
    background: rgba(29, 140, 248, 0.07);
}
.white-content .ncf-filter-item:hover {
    background: rgba(29, 140, 248, 0.05);
}
.ncf-filter-item--highlight {
    background: rgba(29, 140, 248, 0.14);
}
.white-content .ncf-filter-item--highlight {
    background: rgba(29, 140, 248, 0.10);
}

/* Hide native checkbox */
.ncf-filter-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Pill indicator */
.ncf-filter-pill {
    flex-shrink: 0;
    width: 22px;
    height: 10px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.white-content .ncf-filter-pill {
    border-color: rgba(29, 37, 59, 0.2);
}
.ncf-filter-item input:checked ~ .ncf-filter-pill {
    background: #1d8cf8;
    border-color: #1d8cf8;
    box-shadow: 0 0 8px rgba(29, 140, 248, 0.45);
}

/* Asset name */
.ncf-filter-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.32);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    transition: color 0.18s ease, opacity 0.18s ease;
}
.ncf-filter-item input:checked ~ .ncf-filter-name {
    color: rgba(255, 255, 255, 0.88);
}
.white-content .ncf-filter-name {
    color: rgba(29, 37, 59, 0.3);
}
.white-content .ncf-filter-item input:checked ~ .ncf-filter-name {
    color: rgba(29, 37, 59, 0.85);
}

/* Search input */
.ncf-filter-search-wrap {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(29, 140, 248, 0.1);
}
.ncf-filter-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(29, 140, 248, 0.2);
    border-radius: 5px;
    padding: 5px 10px 5px 28px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.75);
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 9px center;
}
.ncf-filter-search::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.ncf-filter-search:focus {
    border-color: rgba(29, 140, 248, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}
.white-content .ncf-filter-search-wrap {
    border-bottom-color: rgba(29, 140, 248, 0.08);
}
.white-content .ncf-filter-search {
    background-color: rgba(29, 37, 59, 0.04);
    border-color: rgba(29, 140, 248, 0.18);
    color: rgba(29, 37, 59, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(29,37,59,0.3)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}
.white-content .ncf-filter-search::placeholder {
    color: rgba(29, 37, 59, 0.25);
}
.white-content .ncf-filter-search:focus {
    border-color: rgba(29, 140, 248, 0.4);
    background-color: rgba(29, 140, 248, 0.04);
}
.ncf-filter-no-results {
    padding: 12px 16px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    display: none;
}
.white-content .ncf-filter-no-results {
    color: rgba(29, 37, 59, 0.35);
}

/* Footer */
.ncf-filter-footer {
    padding: 9px 16px 12px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}
.ncf-filter-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(29, 140, 248, 0.25) 50%, transparent 100%);
}
