/* ================================================
   FIORRA SETTINGS - BEAUTIFUL SETTINGS PAGE
   Created with love 💜 
   ================================================ */

:root {
    /* Colors */
    --primary-purple: #9d4edd;
    --primary-pink: #ff6b9d;
    --soft-blue: #7209b7;
    --deep-purple: #5a189a;
    
    /* Gradients */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 999px;
    
    /* Shadows */
    --shadow-glow: 0 8px 32px rgba(157, 78, 221, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ================================================
   GLOBAL STYLES
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================================================
   AURORA BACKGROUND
   ================================================ */

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        #1e1e2e 0%,
        #2d1b4e 25%,
        #4a1f6f 50%,
        #5e2a84 75%,
        #7b2d8f 100%
    );
}

/* ================================================
   SETTINGS CONTAINER
   ================================================ */

.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: var(--spacing-xl);
    min-height: 100vh;
}

/* ================================================
   HEADER
   ================================================ */

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title .icon {
    font-size: 1.8rem;
}

.header-spacer {
    width: 40px;
}

/* ================================================
   MAIN CONTENT
   ================================================ */

.settings-main {
    padding: var(--spacing-md);
}

/* ================================================
   LOADING STATE
   ================================================ */

.loading-state {
    text-align: center;
    padding: var(--spacing-xl);
}

.loading-spinner {
    margin: 0 auto;
    width: 60px;
    height: 60px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #9d4edd;
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #ffd700;
    animation-duration: 2s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    opacity: 0.8;
}

/* ================================================
   SETTINGS SECTIONS
   ================================================ */

.settings-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.settings-section {
    animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 0.3rem;
}

.section-icon {
    font-size: 1.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-left: 2rem;
}

/* ================================================
   SETTING ITEMS
   ================================================ */

.setting-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
	margin-bottom:1rem;
}

.setting-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-soft);
}

.setting-info {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.setting-icon {
    font-size: 2rem;
    line-height: 1;
}

.setting-text {
    flex: 1;
}

.setting-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.setting-description {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* ================================================
   TOGGLE SWITCH
   ================================================ */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    cursor: pointer;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: 0.4s;
}

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

.toggle-input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ff6b9d 0%, #9d4edd 100%);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-slider:hover {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

/* ================================================
   RADIO GROUP
   ================================================ */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-input {
    display: none;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    flex: 1;
}

.radio-option:hover .radio-label {
    background: rgba(255, 255, 255, 0.05);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-circle:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d 0%, #9d4edd 100%);
    transition: transform 0.3s ease;
}

.radio-input:checked + .radio-label .radio-circle {
    border-color: #ff6b9d;
}

.radio-input:checked + .radio-label .radio-circle:after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.radio-text strong {
    font-size: 1rem;
}

.radio-text small {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ================================================
   ACCOUNT INFO
   ================================================ */

.account-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.account-field {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
}

.field-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.field-value {
    font-weight: 500;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-logout {
    width: 100%;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    border: none;
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
}

.btn-logout:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

/* ================================================
   TOAST NOTIFICATION
   ================================================ */

.toast {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.toast-icon {
    font-size: 1.5rem;
    font-weight: 700;
}

.toast-text {
    font-weight: 600;
    font-size: 1rem;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .settings-container {
        padding-bottom: var(--spacing-md);
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .account-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-secondary {
        width: 100%;
    }
}
