/* Tip Calculator Custom Styling */

.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.05);
}

/* Light Theme overrides for apple-glass */
html:not(.dark) .apple-glass {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05) !important;
}

.custom-input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f4f4f5 !important;
    transition: all 0.2s ease-in-out;
}

/* Light Theme overrides for custom inputs */
html:not(.dark) .custom-input {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}

.custom-input:focus {
    border-color: #06b6d4 !important;
    outline: none;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.25) !important;
}

html:not(.dark) .custom-input:focus {
    border-color: #0891b2 !important;
    box-shadow: 0 0 14px rgba(8, 145, 178, 0.15) !important;
}

.tip-preset-btn.active {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: #ffffff !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35) !important;
}

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

html:not(.dark) .result-card-glow {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.05), transparent 70%) !important;
}

/* Premium Receipt styles */
.receipt-card {
    position: relative;
    border-top: 4px solid #06b6d4 !important;
}

.receipt-dashed-line {
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
    height: 1px;
    margin: 1.5rem 0;
}

html:not(.dark) .receipt-dashed-line {
    border-top: 2px dashed rgba(0, 0, 0, 0.08) !important;
}

/* Premium Custom Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 9999px;
    outline: none;
    transition: background 0.2s;
}

html:not(.dark) input[type="range"] {
    background: rgba(0, 0, 0, 0.1) !important;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s ease;
}

html:not(.dark) input[type="range"]::-webkit-slider-thumb {
    background: #0891b2;
    box-shadow: 0 0 10px rgba(8, 145, 178, 0.3);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(0.95);
}
