/* 团队管理页面样式 - 限制在团队管理页面内 */
#team-managementPage .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

#team-managementPage .stats-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#team-managementPage .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

#team-managementPage .stats-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    color: #666;
}

#team-managementPage .stats-content {
    flex: 1;
}

#team-managementPage .stats-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 4px;
}

#team-managementPage .stats-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 团队容器 */
#team-managementPage .teams-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#team-managementPage .teams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

#team-managementPage .teams-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

#team-managementPage .teams-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

#team-managementPage .search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

#team-managementPage .filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* 团队网格 */
#team-managementPage .teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 团队卡片 */
#team-managementPage .team-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#team-managementPage .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

#team-managementPage .team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f5f5f5 0%, #e8e8e8 100%);
}

#team-managementPage .team-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

#team-managementPage .team-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
}

#team-managementPage .team-info h4 {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

#team-managementPage .team-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

#team-managementPage .team-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

#team-managementPage .team-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #7f8c8d;
}

#team-managementPage .meta-icon {
    font-size: 14px;
}

#team-managementPage .team-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f3f4;
}

#team-managementPage .team-stat {
    text-align: center;
}

#team-managementPage .team-stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

#team-managementPage .team-stat-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 2px;
}

#team-managementPage .team-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

#team-managementPage .team-status.active {
    background: #d4edda;
    color: #155724;
}

#team-managementPage .team-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* 团队详情页面样式 */
#teamDetailPage .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

#teamDetailPage .page-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

#teamDetailPage .btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

#teamDetailPage .btn-back:hover {
    background: #5a6268;
}

#teamDetailPage .team-info-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#teamDetailPage .team-info-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

#teamDetailPage .team-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #666;
    flex-shrink: 0;
}

#teamDetailPage .team-basic-info {
    flex: 1;
}

#teamDetailPage .team-basic-info h2 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 24px;
}

#teamDetailPage .team-basic-info p {
    margin: 0 0 16px 0;
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 16px;
}

#teamDetailPage .team-meta-large {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#teamDetailPage .team-meta-item-large {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

/* 标签页导航 */
#teamDetailPage .tab-navigation {
    display: flex;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 24px;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

#teamDetailPage .tab-btn {
    padding: 16px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

#teamDetailPage .tab-btn:hover {
    color: #666;
    background: #f8f9fa;
}

#teamDetailPage .tab-btn.active {
    color: #666;
    border-bottom-color: #666;
    font-weight: 600;
    background: #f8f9fa;
}

#teamDetailPage .tab-content {
    display: none;
    background: white;
    border-radius: 0 0 8px 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#teamDetailPage .tab-content.active {
    display: block;
}

#teamDetailPage .tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#teamDetailPage .tab-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

/* 成员表格 */
#teamDetailPage .members-table-container {
    overflow-x: auto;
}

#teamDetailPage .members-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#teamDetailPage .members-table th,
#teamDetailPage .members-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

#teamDetailPage .members-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

#teamDetailPage .members-table td {
    font-size: 14px;
    color: #2c3e50;
}

#teamDetailPage .members-table tr:hover {
    background: #f8f9fa;
}

#teamDetailPage .member-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    font-size: 12px;
}

/* 工时统计网格 */
#teamDetailPage .timesheet-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

#teamDetailPage .timesheet-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid #e0e0e0;
}

#teamDetailPage .stat-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    color: #666;
}

#teamDetailPage .stat-content {
    flex: 1;
}

#teamDetailPage .stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 4px;
}

#teamDetailPage .stat-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 工时表格 */
#teamDetailPage .timesheet-table-container {
    overflow-x: auto;
}

#teamDetailPage .timesheet-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#teamDetailPage .timesheet-table th,
#teamDetailPage .timesheet-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

#teamDetailPage .timesheet-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

#teamDetailPage .timesheet-table td {
    font-size: 14px;
    color: #2c3e50;
}

#teamDetailPage .timesheet-table tr:hover {
    background: #f8f9fa;
}

/* 项目网格 */
#teamDetailPage .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

#teamDetailPage .project-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#teamDetailPage .project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

#teamDetailPage .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f5f5f5 0%, #e8e8e8 100%);
}

#teamDetailPage .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

#teamDetailPage .project-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

#teamDetailPage .project-code {
    font-size: 12px;
    color: #7f8c8d;
    margin: 4px 0 0 0;
}

#teamDetailPage .project-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

#teamDetailPage .project-status.active {
    background: #d4edda;
    color: #155724;
}

#teamDetailPage .project-status.completed {
    background: #cce5ff;
    color: #004085;
}

#teamDetailPage .project-progress {
    margin-top: 12px;
}

#teamDetailPage .progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

#teamDetailPage .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f5f5f5 0%, #e8e8e8 100%);
    transition: width 0.3s ease;
}

#teamDetailPage .progress-text {
    font-size: 12px;
    color: #7f8c8d;
    text-align: right;
}

/* 状态徽章 */
#teamDetailPage .status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

#teamDetailPage .status-badge.active {
    background: #d4edda;
    color: #155724;
}

#teamDetailPage .status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

#teamDetailPage .status-badge.completed {
    background: #cce5ff;
    color: #004085;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #team-managementPage .teams-grid {
        grid-template-columns: 1fr;
    }
    
    #team-managementPage .teams-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    #team-managementPage .teams-actions {
        flex-direction: column;
    }
    
    #team-managementPage .search-input {
        min-width: auto;
    }
    
    #teamDetailPage .team-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    #teamDetailPage .team-meta-large {
        justify-content: center;
    }
    
    #teamDetailPage .tab-navigation {
        flex-direction: column;
    }
    
    #teamDetailPage .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    #teamDetailPage .tab-btn.active {
        border-right-color: #666;
        border-bottom-color: transparent;
    }
}
