/* Settings Page Styles */
.settings-page {
    background: #f8f9fa;
}

.settings-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    margin-bottom: 0;
}

.settings-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.settings-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 600;
}

.settings-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

.settings-header i {
    color: #3498db;
    margin-right: 10px;
}

.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Settings Sections */
.settings-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #f1f3f4;
}

.section-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    color: #3498db;
}

.section-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.settings-group {
    padding: 0 24px 24px 24px;
}

/* Setting Items */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f8f9fa;
    gap: 20px;
}

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

.setting-info {
    flex: 1;
}

.setting-label {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.setting-control {
    display: flex;
    align-items: center;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.toggle-switch.active {
    background-color: #3498db;
}

/* Select Dropdown */
.setting-select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    min-width: 140px;
}

.setting-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.info-value.online {
    color: #27ae60;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.settings-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.settings-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.settings-btn.primary {
    background: #3498db;
    color: white;
}

.settings-btn.primary:hover {
    background: #2980b9;
}

.settings-btn.secondary {
    background: #6c757d;
    color: white;
}

.settings-btn.secondary:hover {
    background: #5a6268;
}

.settings-btn.success {
    background: #27ae60;
    color: white;
}

.settings-btn.success:hover {
    background: #219a52;
}

/* Dark Mode Styles */
[data-theme="dark"] {
    background: #1a1a1a;
    color: #e9ecef;
}

[data-theme="dark"] .settings-page {
    background: #1a1a1a;
}

[data-theme="dark"] .main-header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

[data-theme="dark"] .settings-header,
[data-theme="dark"] .settings-section {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .settings-header h2,
[data-theme="dark"] .section-header h3,
[data-theme="dark"] .setting-label,
[data-theme="dark"] .info-value {
    color: #f7fafc;
}

[data-theme="dark"] .settings-header p,
[data-theme="dark"] .section-header p,
[data-theme="dark"] .setting-description,
[data-theme="dark"] .info-label {
    color: #a0aec0;
}

[data-theme="dark"] .section-header,
[data-theme="dark"] .setting-item {
    border-color: #4a5568;
}

[data-theme="dark"] .info-item {
    background: #4a5568;
}

[data-theme="dark"] .setting-select {
    background: #4a5568;
    border-color: #718096;
    color: #f7fafc;
}

[data-theme="dark"] .setting-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

[data-theme="dark"] .toggle-slider {
    background: #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-container {
        padding: 20px 15px;
    }
    
    .section-header,
    .settings-group {
        padding: 16px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-btn {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}