/* Page-specific styles — settings.html */
.page-header {
    background: var(--bg-gradient-primary);
    padding: var(--space-5) 0;
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.page-title {
    color: white;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.page-title-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateX(4px);
}

/* Settings Grid */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.settings-grid {
    display: grid;
    gap: var(--space-3);
}

/* Settings Card */
.settings-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
    transition: all var(--transition-base);
}

.settings-card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--bg-gradient-primary);
    padding: var(--space-3) var(--space-4);
    color: white;
}

.card-header.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.card-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-header-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
}

.card-header h2 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
}

.card-body {
    padding: var(--space-3);
}

/* Setting Item */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--neutral-100);
}

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

.setting-info {
    flex: 1;
    padding-left: var(--space-2);
}

.setting-info h4 {
    color: var(--neutral-800);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: 2px;
}

.setting-info p {
    color: var(--neutral-500);
    font-size: var(--text-xs);
    margin: 0;
}

/* Modern Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-300);
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    right: 2px;
    bottom: 2px;
    background-color: white;
    transition: var(--transition-base);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

input:checked + .toggle-slider {
    background: var(--bg-gradient-secondary);
}

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

input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px var(--secondary-100);
}

/* Action Buttons Grid */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.action-buttons .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
}

/* Danger Zone */
.danger-zone {
    border: 1px solid var(--error);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    background: var(--error-light);
}

.danger-zone-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    color: var(--error);
}

.danger-zone-header svg {
    width: 18px;
    height: 18px;
}

.danger-zone h4 {
    color: var(--error);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

/* Backup Info */
.backup-info {
    background: var(--info-light);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.backup-info-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.backup-info p {
    color: var(--primary-700);
    font-size: var(--text-xs);
    margin: 0;
}

/* Version Info */
.version-info {
    text-align: center;
    padding: var(--space-4) var(--space-4);
    color: var(--neutral-400);
}

.version-info p {
    margin: 2px 0;
    font-size: var(--text-xs);
    color: var(--neutral-400);
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--neutral-100);
    border-radius: var(--radius-full);
    font-size: 10px;
    color: var(--neutral-600);
    margin-top: var(--space-2);
}

/* Button Variants */
.btn-success {
    background: var(--bg-gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--bg-gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-warning:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .setting-info {
        padding-left: 0;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
