/* Settings Components */
.settings-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.settings-item-info {
    flex: 1;
}

.settings-item-info h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.settings-item-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.settings-item-control {
    min-width: 120px;
    display: flex;
    justify-content: flex-end;
}

/* Profile Image */
.profile-image-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 0.5rem;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.color-option:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.color-option.active {
    background-color: var(--bg-light);
    box-shadow: 0 0 0 2px var(--primary);
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.color-preview.no-color {
    background: linear-gradient(45deg, var(--bg-light) 25%, transparent 25%),
                linear-gradient(-45deg, var(--bg-light) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, var(--bg-light) 75%),
                linear-gradient(-45deg, transparent 75%, var(--bg-light) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

/* Font Size Control */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.font-size-value {
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* Banner List */
.banner-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.banner-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
}

.banner-preview {
    width: 120px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 16px;
}

.banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info {
    flex: 1;
}

.banner-info h5 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

.banner-actions {
    display: flex;
    gap: 0.5rem;
}

/* File Upload */
.file-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Theme Switch */
.theme-switch-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.theme-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.theme-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.theme-switch input:checked + .switch-slider + .theme-label {
    color: var(--text-primary);
}

/* Background Sections */
.background-section {
    margin-bottom: 2rem;
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.color-option {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.color-option.active {
    border-color: var(--theme-color);
    background: rgba(var(--theme-color), 0.1);
}

.color-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.color-option.active .color-preview {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(var(--theme-color), 0.25);
}

.no-color {
    background: linear-gradient(45deg, var(--bg-light) 25%, transparent 25%), 
                linear-gradient(-45deg, var(--bg-light) 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, var(--bg-light) 75%), 
                linear-gradient(-45deg, transparent 75%, var(--bg-light) 75%);
    background-size: 6px 6px;
    background-position: 0 0, 0 3px, 3px -3px, -3px 0px;
    color: var(--text-secondary);
    font-size: 16px;
}

.color-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Wallpaper Grid */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.wallpaper-option {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.wallpaper-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wallpaper-option.active {
    background: rgba(var(--theme-color), 0.1);
}

.wallpaper-option.active .wallpaper-preview {
    border: 3px solid var(--theme-color);
    box-shadow: 0 0 0 3px rgba(var(--theme-color), 0.25);
}

.wallpaper-preview {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-color);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.no-wallpaper {
    background: linear-gradient(45deg, var(--bg-light) 25%, transparent 25%), 
                linear-gradient(-45deg, var(--bg-light) 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, var(--bg-light) 75%), 
                linear-gradient(-45deg, transparent 75%, var(--bg-light) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    color: var(--text-secondary);
    font-size: 20px;
}



/* Responsive */
@media (max-width: 768px) {
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-item-control {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .profile-image-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .theme-switch {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .color-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .color-preview {
        width: 40px;
        height: 40px;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .wallpaper-preview {
        width: 80px;
        height: 60px;
    }
    
    .banner-item {
        flex-direction: column;
    }
    
    .banner-preview {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 100%;
        height: 120px;
    }
    
    .banner-actions {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .theme-switch {
        padding: 0.75rem;
    }
    
    .theme-label {
        font-size: 0.8rem;
    }
    
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .color-preview {
        width: 35px;
        height: 35px;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .wallpaper-preview {
        width: 90px;
        height: 68px;
    }
}