/* ==========================
   user.css
   ========================== */

.profile-settings-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px; 
}

/* === AUTH CONTAINER === */
.user-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

/* === FORM STYLE === */
.auth-form {
    background: var(--color-container);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-form h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--color-text);
}

/* === CHECKBOX === */
.switch-group {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2a2a2a;
    transition: .3s;
    border-radius: 34px;
    border: 1px solid #444;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px; width: 14px;
    left: 4px; bottom: 3px;
    background-color: #888;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: var(--color-cta);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: var(--color-cta);
    box-shadow: 0 0 8px var(--color-cta);
}

/* === INPUTS === */
.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
}

.input-group input {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: var(--color-text);
    width: 100%;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-cta);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
    background: #222;
}

.input-inline-edit {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-cta, var(--color-cta));
    color: #fff;
    width: 90%;
    outline: none;
    padding: 2px 0;
    font-family: inherit;
    font-size: inherit;
    transition: border-color 0.3s ease;
}

.input-inline-edit:focus {
    border-bottom: 1px solid #fff;
    box-shadow: 0 1px 0 0 rgba(0, 255, 0, 0.5);
}

/* === CHECKBOX === */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 12px;
    margin: 15px 0;
    font-size: 0.9rem;
    width: 100%; 
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px; 
    min-height: 20px;
    cursor: pointer;
    accent-color: var(--color-cta);
    margin: 0; 
}

.checkbox-group label {
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    color: var(--color-text);
    text-align: left;
    flex: 1;
}

.checkbox-group label a {
    display: inline; 
    color: var(--color-cta);
    text-decoration: underline;
}

.auth-form .checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    margin: 5px 0 15px 0;
    font-size: 0.85rem; 
    width: 100%;
}

.auth-form .checkbox-group input[type="checkbox"] {
    width: 16px !important; 
    height: 16px !important;
    min-width: 16px; 
    min-height: 16px;

    cursor: pointer;
    margin: 0;
    
    appearance: none;
    -webkit-appearance: none;
    
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1a1a1a;
    
    position: relative;
    transition: all 0.2s ease;
}

.auth-form .checkbox-group input[type="checkbox"]:hover {
    border-color: var(--color-cta);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

.auth-form .checkbox-group input[type="checkbox"]:checked {
    background-color: var(--color-cta);
    border-color: var(--color-cta);
}

.auth-form .checkbox-group input[type="checkbox"]:checked::after {
    content: "✓"; 
    position: absolute;
    color: #000; 
    font-size: 0.8rem;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.auth-form .checkbox-group label {
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    color: var(--color-neutral); 
    text-align: center;
    flex: 0; 
    white-space: nowrap; 
}

.auth-form .checkbox-group input[type="checkbox"]:checked + label {
    color: var(--color-cta);
    font-weight: bold;
}

.input-group + .checkbox-group {
    margin-top: -5px !important;
    margin-left: 1rem !important; 
    margin-bottom: 6px !important;
    justify-content: flex-start !important; 
    width: fit-content !important; 
}

.input-group + .checkbox-group label {
    text-align: left !important;
    flex: none !important;
}

/* === SLIDER === */
.modern-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    margin: 15px 0;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; 
    height: 20px;
    background: var(--color-cta);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(var(--color-cta-rgb), 0.5);
    border: 2px solid #fff;
    transition: transform 0.2s;
}

.modern-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-cta);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(var(--color-cta-rgb), 0.5);
    cursor: pointer;
}

.modern-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

.slider-value {
    color: var(--color-cta); 
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace; 
    background: rgba(0, 255, 0, 0.1); 
    padding: 2px 10px;
    margin-left:10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    font-size: 1rem;
    min-width: 50px;
    text-align: center;
}

.slider-disabled {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1); 
    transition: opacity 0.3s ease;
}

.slider-disabled label {
    color: #666;
}

/* === SELECTS === */
.auth-form select {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: var(--color-text);
    width: 100%;
    font-size: 16px; 
    cursor: pointer;
    appearance: none; 
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    transition: all 0.3s ease;
}

.auth-form select:focus {
    outline: none;
    border-color: var(--color-cta);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
}

/* === BUTTONS === */
.submit-btn {
    padding: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* === FOOTER SWITCH === */
.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
}

.auth-footer p {
    font-size: 0.85rem;
    color: var(--color-neutral);
    margin-bottom: 0.8rem;
}

/* === MESSAGES === */
.msg_error {
    color: var(--color-danger);
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid var(--color-danger);
    font-size: 0.85rem;
}

.link-cta {
    color: var(--color-cta);
    text-decoration: underline;
    cursor: pointer;
}

.neon-border {
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.05);
}

/* === OTHERS === */
.edit-link {
    position: absolute;
    right: 12px;
    color: var(--color-cta);
    transition: transform 0.2s;
}
.edit-link:hover {
    transform: scale(1.2);
    color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .user-container {
        padding: 10px;
        min-height: 90vh; 
    }

    .auth-form {
        padding: 1.5rem;
        gap: 1rem;
    }

    .input-group input, 
    .auth-form select,
    .submit-btn {
        padding: 1rem; 
        font-size: 16px; 
    }

    .auth-form h2 {
        font-size: 1.3rem;
    }
}

/* === VALIDATION PAGE SPECIFIC === */
.validation-card {
    text-align: center;
    max-width: 450px;
}

.validation-status i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.success-state i {
    color: var(--color-up);
}

.error-state i {
    color: var(--color-down);
}

.validation-status h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.validation-status p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(72, 187, 120, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(72, 187, 120, 0); }
}

/* === LOGS === */
.log-data-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.log-data-item {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #aaa;
}

.log-data-item b {
    color: var(--color-cta);
    font-family: monospace;
}