/**
 * 考核评议系统优化 - 样式文件
 * 实现现代化、清晰的界面设计
 */

/* ============================================
   1. 主容器样式
   ============================================ */

.assessment-tabs-container {
    width: 100%;
    min-height: 600px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================
   2. 标签导航样式
   ============================================ */

.tabs-navigation {
    background: white;
    border-bottom: 2px solid #e9ecef;
    padding: 20px;
}

.tabs-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tab-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-item:hover {
    border-color: var(--tab-color, #3498db);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tab-item.active {
    background: linear-gradient(135deg, var(--tab-color, #3498db), rgba(0, 0, 0, 0));
    background-color: var(--tab-color, #3498db);
    border-color: var(--tab-color, #3498db);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tab-item.active .tab-description {
    color: rgba(255, 255, 255, 0.9);
}

.tab-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    font-size: 24px;
    color: var(--tab-color, #3498db);
    transition: all 0.3s ease;
}

.tab-item.active .tab-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tab-info {
    flex: 1;
}

.tab-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

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

/* ============================================
   3. 标签内容区域
   ============================================ */

.tabs-content {
    padding: 30px;
    background: #f8f9fa;
}

/* ============================================
   4. 评议面板样式
   ============================================ */

.evaluation-panel {
    width: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.panel-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.header-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   5. 评议类型选择器
   ============================================ */

.type-selector {
    margin-bottom: 30px;
}

.type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--type-color, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.type-card:hover {
    border-color: var(--type-color, #3498db);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.type-card:hover::before,
.type-card.active::before {
    opacity: 1;
}

.type-card.active {
    border-color: var(--type-color, #3498db);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), white);
}

.type-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--type-color, #3498db), rgba(0, 0, 0, 0.3));
    border-radius: 12px;
    font-size: 28px;
    color: white;
}

.type-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.type-info p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.type-badge {
    display: flex;
    justify-content: flex-start;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* ============================================
   6. 统计卡片
   ============================================ */

.batch-statistics {
    margin-bottom: 30px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.stat-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 32px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

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

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
}

.stat-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    transition: width 0.5s ease;
}

/* ============================================
   7. 批次列表
   ============================================ */

.batch-list {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.batch-items {
    display: grid;
    gap: 20px;
}

.batch-item {
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.batch-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.batch-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.batch-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
}

.status-preparing {
    background: #fff3cd;
    color: #856404;
}

.status-progress {
    background: #cfe2ff;
    color: #084298;
}

.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-closed {
    background: #e2e3e5;
    color: #41464b;
}

.batch-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.info-item i {
    color: #3498db;
    width: 16px;
}

.batch-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-container .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 45px;
    text-align: right;
}

.batch-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   8. 按钮样式
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408b 100%);
}

.btn-warning {
    background: var(--color-warning);
    color: var(--color-text-on-primary);
}

.btn-warning:hover {
    background: var(--color-secondary-dark);
}

.btn-info {
    background: var(--color-info);
    color: var(--color-text-on-primary);
}

.btn-info:hover {
    background: var(--color-primary-dark);
}

.btn-success {
    background: var(--color-success);
    color: var(--color-text-on-primary);
}

.btn-success:hover {
    background: var(--color-accent-dark);
}

.btn-outline {
    background: white;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

/* ============================================
   9. 加载和空状态
   ============================================ */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #3498db;
}

.loading-spinner span {
    font-size: 16px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #dc3545;
}

.error-message i {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-message p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ============================================
   10. 响应式设计
   ============================================ */

/* 平板 */
@media (max-width: 1024px) {
    .tabs-nav {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .type-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 */
@media (max-width: 768px) {
    .tabs-content {
        padding: 15px;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .tabs-nav {
        grid-template-columns: 1fr;
    }
    
    .type-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .batch-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .batch-actions {
        flex-direction: column;
    }
    
    .batch-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   11. 动画效果
   ============================================ */

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

.batch-item {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.loading-spinner i {
    animation: pulse 2s infinite;
}

/* ============================================
   12. 打印样式
   ============================================ */

/* ============================================
   申请用户列表样式
   ============================================ */

.applicants-section {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

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

.batch-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-selector label {
    font-weight: 500;
    color: #495057;
}

.applicants-table-wrapper {
    overflow-x: auto;
}

.applicants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.applicants-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.applicants-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.applicants-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.applicants-table tbody tr:hover {
    background: #f8f9fa;
}

.applicants-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.status-pending {
    background: #e9ecef;
    color: #6c757d;
}

.status-badge.status-assigned {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-progress {
    background: #cfe2ff;
    color: #084298;
}

.status-badge.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.evaluation-types-assign {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.assign-type-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.assign-type-item h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assign-options {
    margin-top: 10px;
}

@media print {
    .panel-header .header-actions,
    .batch-actions {
        display: none;
    }
    
    .batch-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

