/* In-Hand Salary Calculator Custom CSS
 * EasyToolio Platform - Finance Category
 */

.apple-glass {
    background: rgba(18, 18, 20, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

html:not(.dark) .apple-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.custom-input {
    background: rgba(9, 9, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
    transition: all 0.2s ease-in-out;
}

html:not(.dark) .custom-input {
    background: #ffffff;
    border: 1px solid #d4d4d8;
    color: #18181b;
}

.custom-input:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.regime-btn-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.regime-btn-inactive {
    background: rgba(255, 255, 255, 0.04);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not(.dark) .regime-btn-inactive {
    background: #f4f4f5;
    color: #3f3f46;
    border: 1px solid #e4e4e7;
}

.regime-btn-inactive:hover {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

html:not(.dark) .regime-btn-inactive:hover {
    color: #059669 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.result-card-glow {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 70%);
}

.recommend-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

html:not(.dark) .recommend-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-regime {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

html:not(.dark) .badge-regime {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #047857 !important;
}

/* Custom Range Slider Styling (Chrome, Safari, Edge, Firefox) */
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent !important;
    cursor: pointer;
    margin: 4px 0;
}
input[type=range]:focus {
    outline: none;
}

/* Webkit Track (::-webkit-slider-runnable-track) */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 9999px;
}
html:not(.dark) input[type=range]::-webkit-slider-runnable-track {
    background: #e4e4e7;
    border: 1px solid #d4d4d8;
}

/* Webkit Thumb (::-webkit-slider-thumb) */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
    transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #34d399;
}

/* Firefox Track (::-moz-range-track) */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 9999px;
}
html:not(.dark) input[type=range]::-moz-range-track {
    background: #e4e4e7;
    border: 1px solid #d4d4d8;
}

/* Firefox Thumb (::-moz-range-thumb) */
input[type=range]::-moz-range-thumb {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
    transition: transform 0.15s ease-in-out;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}
