/* ==========================================================================
   STYLECONFIG.CSS - Diseno Premium para Centro de Configuracion
   Clave del Peluquero Exitoso
   ========================================================================== */

:root {
    --bg-dark: #0D0D0D;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(212, 175, 55, 0.2);
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --purple: #A78BFA;
    --purple-dark: #7C3AED;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
}

body.config-body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Hero de Configuracion */
.config-hero {
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15), transparent 70%);
    padding: 60px 0 30px;
    text-align: center;
}

.config-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFF 0%, var(--gold) 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.config-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs de Navegacion Lateral / Superior */
.config-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.config-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.config-tab-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.config-tab-btn.active {
    background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
    color: #0D0D0D;
    border-color: var(--gold);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

/* Tarjetas de Configuracion */
.config-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.config-card:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    transform: translateY(-4px);
}

.config-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.config-card-header .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.config-card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.config-card-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Form Controls dentro de configuracion */
.config-field {
    margin-bottom: 20px;
}

.config-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.config-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: #FFFFFF;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.config-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* Switches Toggle */
.config-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-toggle-item:last-child {
    border-bottom: none;
}

.toggle-info h4 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #FFF;
    margin: 0 0 4px;
}

.toggle-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Custom Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
}

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

input:checked + .slider {
    background: linear-gradient(135deg, var(--gold), #B8860B);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #0D0D0D;
}

/* Botones de Accion Dinamicos */
.btn-save-config {
    background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
    color: #0D0D0D;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-save-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #000;
}

.btn-outline-config {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-config:hover {
    background: var(--gold);
    color: #0D0D0D;
}

/* Toast de Alerta */
.config-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(18, 140, 126, 0.95);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}