/* Custom variables for smooth theming */
:root {
    --switch-bg: #e5e5ea;
    --switch-checked-bg: #34c759;
    --switch-handle: #ffffff;
    --primary-color: #0d6efd;
}

[data-bs-theme="dark"] {
    --switch-bg: #39393d;
    --switch-checked-bg: #30d158;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--bs-body-bg);
}

/* Custom iOS-like toggle switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin: 0;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--switch-bg);
    transition: .3s;
    border-radius: 30px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: var(--switch-handle);
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--switch-checked-bg);
}

input:focus + .slider {
    box-shadow: 0 0 0 0.25rem rgba(52, 199, 89, 0.25);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Custom Range Slider Styling */
.form-range::-webkit-slider-thumb {
    background-color: var(--bs-primary);
}
.form-range::-moz-range-thumb {
    background-color: var(--bs-primary);
}

/* Password output styling */
#passwordOutput {
    font-size: 1.25rem;
    letter-spacing: 2px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Theme Icons */
.theme-icon {
    font-size: 1.1rem;
    color: var(--bs-secondary);
}

/* Layout Utilities */
.tracking-wide {
    letter-spacing: 0.5px;
}

/* Smooth Transitions */
.card, .btn, .progress-bar {
    transition: all 0.3s ease;
}

/* Hide Number Input Arrows */
.hide-arrows::-webkit-inner-spin-button,
.hide-arrows::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.hide-arrows {
    -moz-appearance: textfield;
}

/* Responsividad para móviles pequeños */
@media (max-width: 576px) {
    #passwordOutput {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}
