/* Glass Panel Utility */
.glass-panel {
    background-color: rgba(30, 41, 59, 0.7);
    /* Slate-800 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Base Range Slider */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

.custom-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    border: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
    margin-top: -5px;
    transition: transform 0.1s;
}

.custom-range:focus {
    outline: none;
}

.custom-range:focus::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* Number Input resets */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Safe Area */
.pt-safe {
    padding-top: env(safe-area-inset-top);
}

/* --- Print Styles --- */
@media print {
    body {
        background-color: white !important;
        color: black !important;
    }

    .print-hidden {
        display: none !important;
    }

    .glass-panel {
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }

    .print-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-card {
        page-break-inside: avoid;
    }

    .text-white {
        color: #111827 !important;
    }

    .text-gray-400,
    .text-gray-500,
    .text-gray-300 {
        color: #4b5563 !important;
    }

    /* Force chart background to render cleanly */
    #projectionChart {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .bg-theme-bg,
    .bg-theme-panel {
        background-color: white !important;
    }
}