/* Settings Page Styles */

/* Page Header Card for Settings */
.page-header-card.settings-gradient {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    box-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.4);
}

.page-header-card.settings-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-card.settings-gradient .page-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.page-header-card.settings-gradient .page-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.page-header-card.settings-gradient .page-header-text {
    color: white;
}

.page-header-card.settings-gradient .page-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header-card.settings-gradient .page-header-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.settings-header-info {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.settings-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-header-card.settings-gradient {
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header-card.settings-gradient .page-header-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .settings-header-info {
        justify-content: center;
    }
}

.settings-header {
    margin-bottom: 1.5rem;
}

.settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.dark .settings-title {
    color: #f1f5f9;
}

/* Settings Navigation */
.settings-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dark .settings-nav-item {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.settings-nav-item:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.settings-nav-item.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}

/* Settings Section */
.settings-section {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.dark .settings-section {
    background: #1e293b;
    border-color: #334155;
}

.settings-section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.dark .settings-section-header {
    border-color: #334155;
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.dark .settings-section-title {
    color: #f1f5f9;
}

.settings-section-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.settings-section-body {
    padding: 1.5rem;
}

/* Logo Upload */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-preview {
    width: 100px;
    height: 100px;
    border-radius: 1rem;
    border: 2px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
}

.dark .logo-preview {
    background: #334155;
    border-color: #475569;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Theme Toggle */
.theme-options {
    display: flex;
    gap: 1rem;
}

.theme-option {
    flex: 1;
    max-width: 200px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .theme-option {
    border-color: #475569;
}

.theme-option:hover {
    border-color: #0ea5e9;
}

.theme-option.active {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.dark .theme-option.active {
    background: #1e3a5f;
}

.theme-option-preview {
    height: 60px;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.theme-option-preview.light {
    background: linear-gradient(135deg, #f8fafc 50%, #e2e8f0 50%);
}

.theme-option-preview.dark {
    background: linear-gradient(135deg, #1e293b 50%, #334155 50%);
}

.theme-option-preview.system {
    background: linear-gradient(135deg, #f8fafc 25%, #1e293b 25%, #1e293b 50%, #e2e8f0 50%, #e2e8f0 75%, #334155 75%);
}

.theme-option-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    text-align: center;
}

.dark .theme-option-label {
    color: #f1f5f9;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background: #0ea5e9;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Settings Row */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.dark .settings-row {
    border-color: #334155;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row-info {
    flex: 1;
}

.settings-row-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}

.dark .settings-row-label {
    color: #f1f5f9;
}

.settings-row-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}


/* Settings Card */
.settings-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .settings-card {
    background: #1e293b;
    border-color: #334155;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.dark .settings-card-header {
    background: linear-gradient(to right, #1e293b, #0f172a);
    border-color: #334155;
}

.settings-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-card-icon.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.settings-card-icon.green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.settings-card-icon.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.settings-card-icon.amber {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.settings-card-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.dark .settings-card-title h3 {
    color: #f1f5f9;
}

.settings-card-title p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.settings-card-body {
    padding: 1.5rem;
}

/* Logo Upload */
.logo-upload-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-preview-box {
    width: 120px;
    height: 120px;
    border: 2px dashed #e2e8f0;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}

.dark .logo-preview-box {
    background: #0f172a;
    border-color: #334155;
}

.logo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-preview-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.logo-upload-info {
    flex: 1;
    min-width: 200px;
}

.logo-upload-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.dark .logo-upload-info h4 {
    color: #f1f5f9;
}

.logo-upload-info p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 1rem 0;
}

.logo-upload-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Outline Danger Button */
.btn-outline-danger {
    background: transparent;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.dark .btn-outline-danger {
    border-color: #7f1d1d;
}

.dark .btn-outline-danger:hover {
    background: #450a0a;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

.settings-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-form-group.full-width {
    grid-column: 1 / -1;
}

.settings-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.dark .settings-form-label {
    color: #e5e7eb;
}

.settings-form-label svg {
    color: #9ca3af;
}

.settings-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.dark .settings-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.settings-input:focus {
    outline: none;
    border-color: #0ea5e9;
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.dark .settings-input:focus {
    background: #1e293b;
}

.settings-input::placeholder {
    color: #9ca3af;
}

textarea.settings-input {
    resize: vertical;
    min-height: 80px;
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.dark .settings-form-actions {
    border-color: #334155;
}


/* Theme Selector */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.theme-option-card {
    position: relative;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .theme-option-card {
    background: #0f172a;
    border-color: #334155;
}

.theme-option-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.theme-option-card.active {
    border-color: #8b5cf6;
    background: #faf5ff;
}

.dark .theme-option-card.active {
    background: #2e1065;
    border-color: #8b5cf6;
}

.theme-preview {
    display: flex;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
}

.theme-preview.light {
    background: #f1f5f9;
}

.theme-preview.light .theme-preview-sidebar {
    width: 25%;
    background: white;
    border-right: 1px solid #e2e8f0;
}

.theme-preview.light .theme-preview-content {
    flex: 1;
    padding: 0.5rem;
}

.theme-preview.light .theme-preview-header {
    height: 12px;
    background: white;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.theme-preview.light .theme-preview-body {
    height: calc(100% - 20px);
    background: white;
    border-radius: 4px;
}

.theme-preview.dark {
    background: #0f172a;
    border-color: #334155;
}

.theme-preview.dark .theme-preview-sidebar {
    width: 25%;
    background: #1e293b;
    border-right: 1px solid #334155;
}

.theme-preview.dark .theme-preview-content {
    flex: 1;
    padding: 0.5rem;
}

.theme-preview.dark .theme-preview-header {
    height: 12px;
    background: #1e293b;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.theme-preview.dark .theme-preview-body {
    height: calc(100% - 20px);
    background: #1e293b;
    border-radius: 4px;
}

.theme-preview.system {
    background: linear-gradient(135deg, #f1f5f9 50%, #0f172a 50%);
    border-color: #94a3b8;
}

.theme-preview.system .theme-preview-sidebar {
    width: 25%;
    background: linear-gradient(180deg, white 50%, #1e293b 50%);
}

.theme-preview.system .theme-preview-content {
    flex: 1;
    padding: 0.5rem;
}

.theme-preview.system .theme-preview-header {
    height: 12px;
    background: linear-gradient(135deg, white 50%, #1e293b 50%);
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.theme-preview.system .theme-preview-body {
    height: calc(100% - 20px);
    background: linear-gradient(135deg, white 50%, #1e293b 50%);
    border-radius: 4px;
}

.theme-option-info {
    text-align: center;
}

.theme-option-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.dark .theme-option-name {
    color: #f1f5f9;
}

.theme-option-desc {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.theme-option-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: #8b5cf6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.theme-option-card.active .theme-option-check {
    opacity: 1;
    transform: scale(1);
}

/* Font Size Selector */
.font-size-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.font-size-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .font-size-option {
    background: #0f172a;
    border-color: #334155;
}

.font-size-option:hover {
    border-color: #94a3b8;
}

.font-size-option.active {
    border-color: #f59e0b;
    background: #fffbeb;
}

.dark .font-size-option.active {
    background: #451a03;
    border-color: #f59e0b;
}

.font-size-preview {
    font-weight: 700;
    color: #1e293b;
}

.dark .font-size-preview {
    color: #f1f5f9;
}

.font-size-preview.small {
    font-size: 1rem;
}

.font-size-preview.normal {
    font-size: 1.5rem;
}

.font-size-preview.large {
    font-size: 2rem;
}

.font-size-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.font-size-demo {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.dark .font-size-demo {
    background: #0f172a;
    border-color: #334155;
}

.font-size-demo .demo-text {
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

.dark .font-size-demo .demo-text {
    color: #94a3b8;
}


/* Settings Toggle List */
.settings-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-toggle-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.dark .settings-toggle-item {
    background: #0f172a;
}

.settings-toggle-item:hover {
    background: #f1f5f9;
}

.dark .settings-toggle-item:hover {
    background: #1e293b;
}

.settings-toggle-item.danger {
    background: #fef2f2;
}

.dark .settings-toggle-item.danger {
    background: #450a0a;
}

.settings-toggle-item.danger:hover {
    background: #fee2e2;
}

.dark .settings-toggle-item.danger:hover {
    background: #7f1d1d;
}

.settings-toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #64748b;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.dark .settings-toggle-icon {
    background: #1e293b;
    border-color: #334155;
}

.settings-toggle-item.danger .settings-toggle-icon {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.dark .settings-toggle-item.danger .settings-toggle-icon {
    background: #7f1d1d;
    border-color: #991b1b;
}

.settings-toggle-info {
    flex: 1;
    min-width: 0;
}

.settings-toggle-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.dark .settings-toggle-label {
    color: #f1f5f9;
}

.settings-toggle-desc {
    display: block;
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.125rem;
}

/* Modern Toggle Switch */
.toggle-switch-modern {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.toggle-switch-modern input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    display: block;
    width: 52px;
    height: 28px;
    background: #cbd5e1;
    border-radius: 9999px;
    position: relative;
    transition: all 0.3s ease;
}

.dark .toggle-track {
    background: #475569;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch-modern input:checked + .toggle-track {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.toggle-switch-modern input:checked + .toggle-track .toggle-thumb {
    transform: translateX(24px);
}

.toggle-switch-modern input:focus + .toggle-track {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Action Danger Button */
.btn-action-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-action-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}


/* Action Primary Button */
.btn-action-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

/* Action Secondary Button */
.btn-action-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .btn-action-secondary {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.btn-action-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.dark .btn-action-secondary:hover {
    background: #334155;
}

/* Export/Import Icons */
.settings-toggle-icon.export {
    background: #d1fae5;
    color: #059669;
    border-color: #a7f3d0;
}

.dark .settings-toggle-icon.export {
    background: #064e3b;
    border-color: #065f46;
}

.settings-toggle-icon.import {
    background: #dbeafe;
    color: #2563eb;
    border-color: #bfdbfe;
}

.dark .settings-toggle-icon.import {
    background: #1e3a8a;
    border-color: #1e40af;
}


/* ==================== */
/* Backup Section Styles */
/* ==================== */

/* Backup Overview Card */
.backup-overview-card {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.backup-overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.backup-overview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.backup-overview-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.backup-overview-info {
    flex: 1;
}

.backup-overview-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.backup-overview-info p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.backup-last-info {
    text-align: right;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.backup-last-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.backup-last-date {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Backup Stats Grid */
.backup-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .backup-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .backup-overview-header {
        flex-wrap: wrap;
    }
    
    .backup-last-info {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

.backup-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.backup-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.backup-stat-icon.blue {
    background: rgba(59, 130, 246, 0.3);
}

.backup-stat-icon.green {
    background: rgba(16, 185, 129, 0.3);
}

.backup-stat-icon.purple {
    background: rgba(139, 92, 246, 0.3);
}

.backup-stat-icon.amber {
    background: rgba(245, 158, 11, 0.3);
}

.backup-stat-info {
    display: flex;
    flex-direction: column;
}

.backup-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.backup-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Backup Actions Grid */
.backup-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .backup-actions-grid {
        grid-template-columns: 1fr;
    }
}

.backup-action-card {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.dark .backup-action-card {
    background: #1e293b;
    border-color: #334155;
}

.backup-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.15);
}

.backup-action-card.export {
    border-top: 4px solid #059669;
}

.backup-action-card.import {
    border-top: 4px solid #3b82f6;
}

.backup-action-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.backup-action-card.export .backup-action-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.backup-action-card.import .backup-action-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #3b82f6;
}

.backup-action-content {
    flex: 1;
}

.backup-action-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.dark .backup-action-content h4 {
    color: #f1f5f9;
}

.backup-action-content > p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.backup-action-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.backup-action-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    padding: 0.375rem 0;
}

.dark .backup-action-features li {
    color: #94a3b8;
}

.backup-action-features li svg {
    color: #059669;
    flex-shrink: 0;
}

/* Backup Dropzone */
.backup-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.dark .backup-dropzone {
    background: #0f172a;
    border-color: #475569;
}

.backup-dropzone svg {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.backup-dropzone span {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
}

.backup-dropzone .dropzone-or {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.backup-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.dark .backup-dropzone.dragover {
    background: #1e3a8a;
    border-color: #3b82f6;
}

.backup-dropzone.dragover svg {
    color: #3b82f6;
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Backup Action Buttons */
.backup-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.backup-action-btn.export {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 4px 14px -4px rgba(5, 150, 105, 0.4);
}

.backup-action-btn.export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -4px rgba(5, 150, 105, 0.5);
}

.backup-action-btn.import {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.dark .backup-action-btn.import {
    background: transparent;
    color: #60a5fa;
    border-color: #60a5fa;
}

.backup-action-btn.import:hover {
    background: #3b82f6;
    color: white;
}

/* Backup History */
.backup-history-empty {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.backup-history-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.backup-history-empty p {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 0.25rem 0;
}

.backup-history-empty span {
    font-size: 0.8125rem;
}

.backup-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.backup-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.dark .backup-history-item {
    background: #0f172a;
}

.backup-history-item:hover {
    background: #f1f5f9;
}

.dark .backup-history-item:hover {
    background: #1e293b;
}

.backup-history-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.backup-history-icon.export {
    background: #d1fae5;
    color: #059669;
}

.dark .backup-history-icon.export {
    background: #064e3b;
}

.backup-history-icon.import {
    background: #dbeafe;
    color: #3b82f6;
}

.dark .backup-history-icon.import {
    background: #1e3a8a;
}

.backup-history-info {
    flex: 1;
    min-width: 0;
}

.backup-history-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.dark .backup-history-title {
    color: #f1f5f9;
}

.backup-history-date {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.backup-history-meta {
    text-align: right;
}

.backup-history-size {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.dark .backup-history-size {
    background: #334155;
}

/* Danger Zone */
.danger-zone-card {
    background: white;
    border: 2px solid #fecaca;
    border-radius: 1rem;
    overflow: hidden;
}

.dark .danger-zone-card {
    background: #1e293b;
    border-color: #7f1d1d;
}

.danger-zone-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
}

.dark .danger-zone-header {
    background: #450a0a;
    border-color: #7f1d1d;
}

.danger-zone-header svg {
    color: #dc2626;
}

.danger-zone-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
    margin: 0;
}

.danger-zone-content {
    padding: 1.5rem;
}

.danger-zone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .danger-zone-item {
        flex-direction: column;
        align-items: stretch;
    }
}

.danger-zone-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.dark .danger-zone-info h4 {
    color: #f1f5f9;
}

.danger-zone-info p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.danger-zone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #dc2626;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.danger-zone-btn:hover {
    background: #dc2626;
    color: white;
}

/* Import Preview Modal */
.import-preview {
    padding: 1rem 0;
}

.import-preview-desc {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0 0 1rem 0;
}

.dark .import-preview-desc {
    color: #94a3b8;
}

.import-preview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .import-preview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.import-stat {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.dark .import-stat {
    background: #0f172a;
    border-color: #334155;
}

.import-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ea5e9;
}

.import-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.import-preview-warning {
    font-size: 0.875rem;
    color: #d97706;
    background: #fffbeb;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fde68a;
    margin: 0;
}

.dark .import-preview-warning {
    background: #451a03;
    border-color: #92400e;
}


/* ========================================
   Mobile Responsive Enhancements
   ======================================== */

/* Prevent horizontal scroll - Base mobile styles */
@media (max-width: 767px) {
    .page-header-card.settings-gradient {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header-card.settings-gradient .page-header-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .settings-header-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Settings navigation - horizontal scroll is OK for tabs */
    .settings-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Form grid single column */
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form actions stack */
    .settings-form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .settings-form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Logo upload responsive */
    .logo-upload-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .logo-upload-info {
        text-align: center;
    }
    
    .logo-upload-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .logo-upload-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Theme selector responsive */
    .theme-selector {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Font size selector responsive */
    .font-size-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .font-size-option {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    /* Toggle items responsive */
    .settings-toggle-item {
        flex-wrap: wrap;
    }
    
    .settings-toggle-info {
        flex: 1;
        min-width: 150px;
    }
    
    /* Backup section responsive */
    .backup-overview-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .backup-last-info {
        width: 100%;
        text-align: center;
    }
    
    .backup-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .backup-actions-grid {
        grid-template-columns: 1fr;
    }
    
    /* Danger zone responsive */
    .danger-zone-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .danger-zone-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Import preview responsive */
    .import-preview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .page-header-card.settings-gradient {
        padding: 0.875rem;
        border-radius: 0.875rem;
    }
    
    .page-header-card.settings-gradient .page-header-icon {
        width: 40px;
        height: 40px;
    }
    
    .page-header-card.settings-gradient .page-header-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .page-header-card.settings-gradient .page-header-title {
        font-size: 1.125rem;
    }
    
    .page-header-card.settings-gradient .page-header-subtitle {
        font-size: 0.8125rem;
    }
    
    .settings-header-info {
        gap: 0.375rem;
    }
    
    .settings-info-item {
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
    }
    
    .settings-nav {
        gap: 0.25rem;
    }
    
    .settings-nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .settings-nav-item svg {
        width: 16px;
        height: 16px;
    }
    
    .settings-card {
        border-radius: 0.75rem;
        margin-bottom: 0.875rem;
    }
    
    .settings-card-header {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .settings-card-icon {
        width: 36px;
        height: 36px;
    }
    
    .settings-card-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .settings-card-title h3 {
        font-size: 0.875rem;
    }
    
    .settings-card-title p {
        font-size: 0.6875rem;
    }
    
    .settings-card-body {
        padding: 0.875rem;
    }
    
    /* Logo section */
    .logo-preview-box {
        width: 80px;
        height: 80px;
    }
    
    .logo-upload-info h4 {
        font-size: 0.875rem;
    }
    
    .logo-upload-info p {
        font-size: 0.75rem;
    }
    
    /* Form inputs */
    .settings-form-group {
        gap: 0.375rem;
    }
    
    .settings-form-label {
        font-size: 0.8125rem;
    }
    
    .settings-input {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Theme options */
    .theme-option-card {
        padding: 0.75rem;
    }
    
    .theme-preview {
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .theme-option-name {
        font-size: 0.8125rem;
    }
    
    .theme-option-desc {
        font-size: 0.6875rem;
    }
    
    /* Font size options */
    .font-size-option {
        padding: 0.75rem;
    }
    
    .font-size-preview.small {
        font-size: 0.875rem;
    }
    
    .font-size-preview.normal {
        font-size: 1.25rem;
    }
    
    .font-size-preview.large {
        font-size: 1.5rem;
    }
    
    .font-size-label {
        font-size: 0.75rem;
    }
    
    /* Toggle items */
    .settings-toggle-item {
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .settings-toggle-icon {
        width: 32px;
        height: 32px;
    }
    
    .settings-toggle-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .settings-toggle-label {
        font-size: 0.8125rem;
    }
    
    .settings-toggle-desc {
        font-size: 0.6875rem;
    }
    
    /* Toggle switch smaller */
    .toggle-track {
        width: 44px;
        height: 24px;
    }
    
    .toggle-thumb {
        width: 20px;
        height: 20px;
    }
    
    .toggle-switch-modern input:checked + .toggle-track .toggle-thumb {
        transform: translateX(20px);
    }
    
    /* Backup section */
    .backup-overview-card {
        padding: 0.875rem;
        border-radius: 0.875rem;
    }
    
    .backup-overview-icon {
        width: 40px;
        height: 40px;
    }
    
    .backup-overview-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .backup-overview-info h3 {
        font-size: 0.9375rem;
    }
    
    .backup-overview-info p {
        font-size: 0.75rem;
    }
    
    .backup-last-info {
        padding: 0.5rem 0.75rem;
    }
    
    .backup-last-label {
        font-size: 0.625rem;
    }
    
    .backup-last-date {
        font-size: 0.8125rem;
    }
    
    .backup-stats-grid {
        gap: 0.375rem;
    }
    
    .backup-stat-item {
        padding: 0.625rem;
        gap: 0.375rem;
    }
    
    .backup-stat-icon {
        width: 32px;
        height: 32px;
    }
    
    .backup-stat-value {
        font-size: 1.125rem;
    }
    
    .backup-stat-label {
        font-size: 0.5625rem;
    }
    
    .backup-action-card {
        padding: 0.875rem;
        border-radius: 0.875rem;
    }
    
    .backup-action-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.75rem;
    }
    
    .backup-action-content h4 {
        font-size: 0.9375rem;
    }
    
    .backup-action-content > p {
        font-size: 0.8125rem;
    }
    
    .backup-action-features li {
        font-size: 0.6875rem;
        padding: 0.25rem 0;
    }
    
    .backup-dropzone {
        padding: 0.875rem;
    }
    
    .backup-dropzone svg {
        width: 32px;
        height: 32px;
    }
    
    .backup-dropzone span {
        font-size: 0.8125rem;
    }
    
    .backup-action-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Backup history */
    .backup-history-item {
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .backup-history-icon {
        width: 28px;
        height: 28px;
    }
    
    .backup-history-title {
        font-size: 0.75rem;
    }
    
    .backup-history-date {
        font-size: 0.625rem;
    }
    
    .backup-history-size {
        font-size: 0.625rem;
        padding: 0.1875rem 0.5rem;
    }
    
    /* Danger zone */
    .danger-zone-card {
        border-radius: 0.75rem;
    }
    
    .danger-zone-header {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .danger-zone-header svg {
        width: 18px;
        height: 18px;
    }
    
    .danger-zone-header h3 {
        font-size: 0.875rem;
    }
    
    .danger-zone-content {
        padding: 0.875rem;
    }
    
    .danger-zone-info h4 {
        font-size: 0.8125rem;
    }
    
    .danger-zone-info p {
        font-size: 0.75rem;
    }
    
    .danger-zone-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Import preview */
    .import-preview-stats {
        gap: 0.375rem;
    }
    
    .import-stat {
        padding: 0.625rem;
    }
    
    .import-stat-value {
        font-size: 1.125rem;
    }
    
    .import-stat-label {
        font-size: 0.625rem;
    }
    
    .import-preview-warning {
        font-size: 0.8125rem;
        padding: 0.625rem 0.75rem;
    }
}
