/* Sidebar 样式 */
.sidebar {
    background: linear-gradient(to bottom, #e8e6e3, #e0ddd9);
    transition: all 0.3s ease;
    border-right: 1px solid #d0ccc8;
}

.dark-mode .sidebar {
    background: linear-gradient(to bottom, #2a2a2a, #222222);
    border-right-color: #444444;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dark-mode .card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: #ff6b35;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #ff5722;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dark-mode .btn-secondary {
    color: #aaa;
    border-color: #444;
}

.btn-secondary:hover {
    background: #f5f3f0;
    border-color: #999;
}

.dark-mode .btn-secondary:hover {
    background: #333;
}

.input-field {
    background: #f9f8f7;
    border: 1px solid #e0ddd9;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dark-mode .input-field {
    background: #333;
    border-color: #444;
    color: #f5f3f0;
}

.input-field:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    transform: scale(1.1);
}

.step.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.step.completed {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.dark-mode .step {
    border-color: #666;
    color: #aaa;
}

.dark-mode .step:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.step-connector {
    width: 32px;
    height: 2px;
    background: #ddd;
    transition: all 0.3s ease;
}

.step-connector.active {
    background: #999;
}

.dark-mode .step-connector {
    background: #444;
}

.dark-mode .step-connector.active {
    background: #666;
}

.menu-item {
    padding: 12px 16px;
    margin: 4px 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.dark-mode .menu-item {
    color: #aaa;
}

.menu-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.menu-item.active {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    font-weight: 500;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 60%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.message.assistant .message-bubble {
    background: #f0f0f0;
    color: #333;
}

.dark-mode .message.assistant .message-bubble {
    background: #333;
    color: #ddd;
}

.message.user .message-bubble {
    background: #ff6b35;
    color: white;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.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: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #ff6b35;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background: #f5f3f0;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e0ddd9;
}

.dark-mode th {
    background: #333;
    border-bottom-color: #444;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e0ddd9;
}

.dark-mode td {
    border-bottom-color: #444;
}

tr:hover {
    background: #fafaf8;
}

.dark-mode tr:hover {
    background: #2a2a2a;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f4f8;
    color: #0891b2;
}

.badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.badge.error {
    background: #fee2e2;
    color: #dc2626;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    font-size: 12px;
    margin-right: 8px;
}

.settings-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.dark-mode .settings-tab {
    color: #aaa;
}

.settings-tab.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.settings-panel {
    animation: fadeIn 0.3s ease;
}
