/* Settings Page Styles */

.settings-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 200px);
}

.settings-header {
    margin-bottom: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.settings-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: left;
}

.settings-tagline {
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: left;
}

.settings-section {
    background: linear-gradient(145deg, #1e1e2e, #252536);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.setting-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.setting-icon {
    font-size: 1.25rem;
}

.setting-name {
    color: #e5e7eb;
    font-weight: 500;
}

.setting-input {
    width: 70px;
    padding: 0.5rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.setting-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-save {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4),
                0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-save:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5),
                0 4px 10px rgba(239, 68, 68, 0.4);
}

.btn-save:active {
    transform: scale(1.02) translateY(0);
}

.btn-save:disabled {
    background: linear-gradient(135deg, #4b5563, #374151);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-reset-defaults {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4),
                0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-reset-defaults:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5),
                0 4px 10px rgba(245, 158, 11, 0.4);
}

.btn-reset-defaults:active {
    transform: scale(1.02) translateY(0);
}

.btn-reset-defaults:disabled {
    background: linear-gradient(135deg, #4b5563, #374151);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Settings Divider */
.settings-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 1rem 0;
}

/* Toggle Switch Styles */
.setting-toggle {
    padding: 1rem 0;
}

.setting-toggle label {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.95rem;
}

.toggle-control {
    position: relative;
}

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

.toggle-label {
    display: block;
    width: 52px;
    height: 28px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #9ca3af;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-input:checked + .toggle-label {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
}

.toggle-input:checked + .toggle-label .toggle-switch {
    left: 27px;
    background: #ffffff;
}

.toggle-input:focus + .toggle-label {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Toast notification */
.settings-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    animation: slideUp 0.3s ease;
    z-index: 1000;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Export/Import Styles */
.export-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-export {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-export-csv {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-export-csv:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-export-json {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-export-json:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-export:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.file-input {
    display: none;
}

.btn-import {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-import:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-import.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.import-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.import-result {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    color: #10b981;
}

.setting-danger {
    border-bottom: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.btn-clear {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-clear:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirmation-content {
    background: linear-gradient(145deg, #1e1e2e, #252536);
    padding: 2rem;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirmation-content h3 {
    color: #ef4444;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.confirmation-content p {
    color: #9ca3af;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-confirm-danger {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-cancel:not(.btn-icon-small) {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .settings-page {
        padding: 1rem;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .confirmation-content {
        padding: 1.5rem;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
}
