/* Base reset and tweaks */
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 properties & utility classes */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Form layout utils */
.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    /* slate-400 */
    margin-bottom: 0.25rem;
}

.input-group .relative {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .prefix {
    position: absolute;
    left: 0.75rem;
    color: #64748b;
    /* slate-500 */
    font-size: 0.875rem;
    pointer-events: none;
}

.num-input {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    /* navy-800/50 */
    border: 1px solid #334155;
    /* navy-700 */
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    /* space for prefix */
    color: #f8fafc;
    /* slate-50 */
    font-size: 0.875rem;
    transition: all 0.2s;
}

.num-input:focus {
    outline: none;
    border-color: #3b82f6;
    /* brand-500 */
    background: rgba(15, 23, 42, 0.8);
}

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

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

    .print-page {
        padding: 0;
        margin: 0;
    }

    .glass-panel,
    .bg-navy-900,
    .bg-navy-800,
    .bg-gradient-to-br,
    .border-navy-700 {
        background: none !important;
        border: 1px solid #e2e8f0 !important;
        /* slate-200 */
        box-shadow: none !important;
        color: black !important;
    }

    .text-white,
    .text-slate-200,
    .text-slate-300,
    .text-slate-400 {
        color: #0f172a !important;
        /* Slate 900 */
    }

    .text-brand-400,
    .text-brand-500 {
        color: #2563eb !important;
        /* Print-friendly blue */
    }

    .radio-card>div {
        border-color: #cbd5e1 !important;
        color: black !important;
    }

    .num-input {
        border: none !important;
        border-bottom: 1px solid #cbd5e1 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: black !important;
        padding-left: 1.5rem !important;
    }

    .print-col {
        grid-column: span 12 !important;
    }

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

    /* Reveal header brand in print */
    header.print-hide {
        display: block !important;
        position: static !important;
        border: none !important;
    }

    #btn-reset,
    #btn-print {
        display: none !important;
    }

    header h1 {
        color: black !important;
    }
}