/* 设置容器 */
.settings-container {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 设置选项卡 */
.settings-tabs {
    width: 220px;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 15px 0;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.tab-item:hover {
    background-color: #f3f4f6;
}

.tab-item.active {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.tab-icon.general {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23475569"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /></svg>');
}

.tab-icon.gpu {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23475569"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z" /></svg>');
}

.tab-icon.tasks {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23475569"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" /></svg>');
}

.tab-icon.logs {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23475569"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 14v3m4-3v3m4-3v3M3 21h18M3 10h18M3 7l9-4 9 4M4 10h16v11H4V10z" /></svg>');
}

.tab-icon.system {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23475569"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01" /></svg>');
}

.tab-icon.about {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23475569"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>');
}

.tab-label {
    font-size: 0.95rem;
    font-weight: 500;
}

/* 设置内容区 */
.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

/* 设置面板 */
.settings-panel {
    display: none;
    height: 100%;
}

.settings-panel.active {
    display: block;
}

/* 设置表单 */
.settings-form {
    padding: 20px;
}

.settings-group {
    margin-bottom: 30px;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 15px;
}

.settings-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1e3a8a;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* 开关样式 */
.switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch-group label:first-child {
    margin-bottom: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:focus + .slider {
    box-shadow: 0 0 1px #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 保存按钮 */
.header-actions button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.header-actions button:hover {
    background-color: #1d4ed8;
}

/* 危险按钮 */
.danger-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.danger-btn:hover {
    background-color: #dc2626;
}

/* 关于面板 */
.about-content {
    padding: 30px;
    text-align: center;
}

.app-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: #3b82f6;
    border-radius: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M13 5.41V17a1 1 0 01-2 0V5.41l-3.3 3.3a1 1 0 01-1.4-1.42l5-5a1 1 0 011.4 0l5 5a1 1 0 11-1.4 1.42L13 5.4zM3 17a1 1 0 012 0v3h14v-3a1 1 0 012 0v3a2 2 0 01-2 2H5a2 2 0 01-2-2v-3z" /></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
}

.about-content h3 {
    font-size: 1.5rem;
    margin: 0 0 5px;
    color: #1e3a8a;
}

.version {
    color: #6b7280;
    margin-bottom: 15px;
}

.about-content p {
    color: #4b5563;
    max-width: 500px;
    margin: 0 auto 30px;
}

.info-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9fafb;
    border-radius: 4px;
    text-align: left;
}

.info-label {
    font-weight: 500;
    color: #4b5563;
}

.info-value {
    color: #1f2937;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.action-buttons button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.action-buttons button:hover {
    background-color: #1d4ed8;
}

/* 确认对话框 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.confirm-dialog.show {
    display: flex;
}

.dialog-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dialog-content h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn {
    background-color: #e5e7eb;
    color: #4b5563;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn:hover {
    background-color: #d1d5db;
}

.confirm-btn:hover {
    background-color: #dc2626;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }
    
    .settings-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .tab-item {
        flex-direction: column;
        padding: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
        min-width: 80px;
        text-align: center;
    }
    
    .tab-item.active {
        border-left-color: transparent;
        border-bottom-color: #3b82f6;
    }
    
    .tab-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .settings-form {
        padding: 15px;
    }
    
    .about-content {
        padding: 20px;
    }
} 