/* ==================== 教练端公共样式 ==================== */

.coach-container {
    padding: 2rem 0;
}

/* 预约项 */
.appointment-item {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.appointment-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.appointment-item.pending {
    border-left: 4px solid #f59e0b;
}

.appointment-item.confirmed {
    border-left: 4px solid #3b82f6;
}

.appointment-item.completed {
    border-left: 4px solid #10b981;
}

.appointment-item.cancelled {
    border-left: 4px solid #6b7280;
}

.appointment-item.rejected {
    border-left: 4px solid #ef4444;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.appointment-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.appointment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.appointment-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-weak);
}

.appointment-info-item i {
    color: var(--airtable-blue);
}

.appointment-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 排班项 */
.schedule-item {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-item .schedule-date {
    font-weight: 600;
}

.schedule-item .schedule-time {
    color: var(--text-weak);
    font-size: 0.875rem;
}

/* 评价卡片 */
.review-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-student {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-student .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-rating {
    color: #f59e0b;
}

.review-content {
    color: var(--text-weak);
    line-height: 1.6;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-weak);
    margin-top: 0.5rem;
}

/* 评分统计 */
.rating-stats {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.rating-average {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.rating-average .score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--deep-navy);
}

.rating-average .stars {
    color: #f59e0b;
    font-size: 1.25rem;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-bar-item .label {
    width: 40px;
    font-size: 0.875rem;
}

.rating-bar-item .bar {
    flex-grow: 1;
    height: 8px;
    background: var(--light-surface);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-item .bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
    transition: width 0.3s;
}

.rating-bar-item .count {
    width: 30px;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-weak);
}

/* 今日预约列表 */
.today-appointments {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.today-appointment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--light-surface);
    margin-bottom: 0.75rem;
}

.today-appointment-item .time {
    font-weight: 600;
    color: var(--airtable-blue);
    min-width: 60px;
}

.today-appointment-item .student {
    flex-grow: 1;
}

.today-appointment-item .status {
    font-size: 0.75rem;
}

/* 响应式 */
@media (max-width: 767.98px) {
    .appointment-info {
        grid-template-columns: 1fr;
    }
    
    .appointment-actions {
        width: 100%;
    }
    
    .appointment-actions .btn {
        flex: 1;
    }
}
