/* ===== メンバー育成機能拡張 CSS ===== */

/* タブナビゲーション */
.coaching-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.coaching-tabs button {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
}

.coaching-tabs button:hover {
    color: var(--color-primary);
    background: #f8f9ff;
}

.coaching-tabs button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.tab-content {
    animation: fadeIn 0.3s;
}

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

/* 週次レポート */
.weekly-report-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.report-filters {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.member-select-fixed {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s;
}

.member-select-fixed:hover {
    border-color: var(--color-primary);
}

.member-select-fixed:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.member-select-fixed option {
    background: white !important;
    color: var(--color-text-strong) !important;
    padding: 10px;
}

.member-select-fixed option:hover {
    background: #EBF4FF !important;
    color: var(--color-text-strong) !important;
}

.member-select-fixed option:checked {
    background: var(--color-primary) !important;
    color: white !important;
    font-weight: 600;
}

.member-select-fixed option:active {
    background: #EBF4FF !important;
    color: var(--color-text-strong) !important;
}

/* 週次レポート表示 */
.weekly-report {
    margin-top: 30px;
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.report-header h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.report-period {
    font-size: 16px;
    color: #666;
}

.report-section {
    margin-bottom: 40px;
}

.report-section h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

/* 統計カード */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.stat-card.success {
    border-color: var(--color-success-alt);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 達成率テーブル */
.achievement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

.achievement-table th,
.achievement-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.achievement-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.achievement-table tbody tr:hover {
    background: #f8f9ff;
}

.achievement-excellent {
    color: var(--color-success-alt);
    font-weight: bold;
    font-size: 18px;
}

.achievement-good {
    color: #3b82f6;
    font-weight: bold;
    font-size: 18px;
}

.achievement-fair {
    color: var(--color-warning);
    font-weight: 600;
    font-size: 18px;
}

.achievement-poor {
    color: #ef4444;
    font-weight: 600;
    font-size: 18px;
}

/* プログレスバー */
.progress-bar-mini {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transition: width 0.5s ease;
    border-radius: 5px;
}

/* 活動詳細テーブル */
.activity-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.activity-detail-table th,
.activity-detail-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.activity-detail-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.activity-detail-table tbody tr:hover {
    background: #f8f9ff;
}

.activity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e3f2fd;
    color: #1976d2;
}

.content-cell {
    max-width: 400px;
    white-space: normal;
    line-height: 1.5;
}

/* レポートアクション */
.report-actions {
    margin-top: 30px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.no-report {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.no-report p {
    margin-top: 20px;
}

/* メモセクション */
.notes-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.member-selector {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.member-selector label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.notes-content {
    margin-top: 30px;
}

.note-section {
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.note-section:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.note-section.shared-note {
    border-color: #3b82f6;
}

.note-section.private-note {
    border-color: #c2185b;
}

.note-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.note-badge.shared {
    background: #e3f2fd;
    color: #1976d2;
}

.note-badge.private {
    background: #fce4ec;
    color: #c2185b;
}

.note-body {
    padding: 25px;
    background: white;
}

.note-content {
    min-height: 120px;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    margin-bottom: 20px;
}

.empty-note {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

.note-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.3s;
}

.note-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-edit {
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.no-member-selected {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.no-member-selected p {
    margin-top: 20px;
}

/* 育成履歴のHTMLタグ修正 */
.coaching-field p {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .coaching-tabs {
        flex-wrap: wrap;
    }
    
    .coaching-tabs button {
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    .report-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievement-table {
        font-size: 12px;
    }
    
    .achievement-table th,
    .achievement-table td {
        padding: 10px 8px;
    }
    
    .report-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
