/* LangGraph 职称评审系统 - 样式文件 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* 特色卡片样式 */
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9rem;
}

/* 进度条样式 */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* 工作流步骤样式 */
.workflow-step {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: white;
    border-left: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.workflow-step.active {
    border-left-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.workflow-step.completed {
    border-left-color: var(--success-color);
    background: rgba(25, 135, 84, 0.05);
}

.workflow-step.error {
    border-left-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.05);
}

.workflow-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    background: #e9ecef;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.workflow-step.active .workflow-step-icon {
    background: var(--primary-color);
    color: white;
}

.workflow-step.completed .workflow-step-icon {
    background: var(--success-color);
    color: white;
}

.workflow-step.error .workflow-step-icon {
    background: var(--danger-color);
    color: white;
}

.workflow-step-content h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.workflow-step-content p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 日志容器样式 */
.log-container {
    height: 300px;
    overflow-y: auto;
    background: #2c3e50;
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    padding: 1rem;
    border-radius: 8px;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    word-wrap: break-word;
}

.log-entry.started {
    background: rgba(13, 110, 253, 0.2);
    border-left: 3px solid var(--primary-color);
}

.log-entry.progress {
    background: rgba(255, 193, 7, 0.2);
    border-left: 3px solid var(--warning-color);
}

.log-entry.completed {
    background: rgba(25, 135, 84, 0.2);
    border-left: 3px solid var(--success-color);
}

.log-entry.error {
    background: rgba(220, 53, 69, 0.2);
    border-left: 3px solid var(--danger-color);
}

.log-timestamp {
    color: #95a5a6;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* 任务列表样式 */
.task-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(13, 110, 253, 0.05);
}

.task-item.active {
    background: rgba(13, 110, 253, 0.1);
    border-left: 4px solid var(--primary-color);
}

.task-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.task-status.started {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.task-status.processing {
    background: rgba(255, 193, 7, 0.1);
    color: #996404;
}

.task-status.completed {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.task-status.failed {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* 状态徽章样式 */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

/* 文件输入样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
    }
    
    .workflow-step-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .log-container {
        height: 200px;
        font-size: 0.8rem;
    }
}

/* 滚动条样式 */
.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: #34495e;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb {
    background: #7f8c8d;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.8rem;
}

/* 模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e9ecef;
}

/* 代码块样式 */
pre {
    background: #2c3e50 !important;
    color: #ecf0f1 !important;
    border: none;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    max-height: 400px;
    overflow-y: auto;
}

/* 连接状态指示器 */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.connection-status.connected {
    background: rgba(25, 135, 84, 0.9);
    color: white;
}

.connection-status.disconnected {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.connection-status.connecting {
    background: rgba(255, 193, 7, 0.9);
    color: var(--dark-color);
}