/* Migration Report Page Styles */

/* ========================================
   Container Styles
   ======================================== */

.migration-report-container {
    padding: 20px;
}

.date-selector-panel {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.loading-indicator {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

/* ========================================
   Table Styles (Section 6.1)
   ======================================== */

/* Table Container */
.migration-report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Table Header Cells */
.migration-table-header {
    background-color: #2c3e50 !important;
    color: white !important;
    text-align: left;
    padding: 16px !important;
    font-weight: 500;
    border-bottom: 2px solid #ddd;
}

/* Table Data Cells */
.migration-table-cell {
    background-color: #f9fafb !important;
    padding: 16px !important;
    border-bottom: 1px solid #f1f1f1;
}

/* ========================================
   Status Badge Styles (Section 6.1)
   ======================================== */

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 90px;
}

/* Status Colors (from StepStatus enum) */
.status-failed {
    background-color: #fce8e6 !important;
    color: #c5221f !important;
}

.status-running {
    background-color: #e8f0fe !important;
    color: #1a73e8 !important;
}

.status-pending {
    background-color: #fef7e0 !important;
    color: #f9ab00 !important;
}

.status-pass {
    background-color: #e6f4ea !important;
    color: #137333 !important;
}

/* ========================================
   Link Styles (Section 6.1)
   ======================================== */

/* Study Name Link */
.study-name-link {
    color: #1a73e8 !important;
    text-decoration: none;
    cursor: pointer;
}

.study-name-link:hover {
    text-decoration: underline !important;
}

/* ========================================
   Statistics Panel Styles (Section 6.2)
   ======================================== */

.weekly-statistics-panel {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.statistics-table {
    width: 100%;
    border-collapse: collapse;
}

/* Statistics Header Cells */
.statistics-header {
    background-color: #f5f7fa !important;
    padding: 12px !important;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid #ddd;
}

/* Statistics Data Cells */
.statistics-cell {
    padding: 12px !important;
    border-bottom: 1px solid #f1f1f1;
}

.success-rate-high {
    color: #137333 !important;
    font-weight: 500;
}

.success-rate-medium {
    color: #f9ab00 !important;
    font-weight: 500;
}

.success-rate-low {
    color: #c5221f !important;
    font-weight: 500;
}

.migrations-panel {
    margin-top: 20px;
}

.active-migrations-panel {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.active-migrations-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
}

.migrations-panel h3,
.weekly-statistics-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
}
