/**
 * AIRI Report Styles
 * Styles for the comprehensive AIRI assessment report
 */

/* Report Container */
.result-displays {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Styling */
.separator.break {
    margin-bottom: 30px;
}

.pagebreak {
    page-break-before: always;
}

.pagebreak:first-child {
    page-break-before: avoid;
}

/* Headings */
.result-displays h1,
.result-displays h2,
.result-displays h3,
.result-displays h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
}

.result-displays h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.result-displays h3 {
    font-size: 1.5rem;
    color: #34495e;
}

.result-displays h4 {
    font-size: 1.3rem;
    color: #7f8c8d;
}

/* Tables */
.result-displays table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-displays th,
.result-displays td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.result-displays th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.result-displays .highlight_cell {
    background-color: #ffec33 !important;
    color: #000 !important;
    font-weight: bold;
}

/* Readiness Table Specific */
.result-displays table th:first-child,
.result-displays table td:first-child {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Report Grid */
.report_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.report_grid_one,
.report_grid_two {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Dimension Chart */
.myairi-dimension-chart {
    margin: 20px 0;
}

.myairi-dimension-chart h4 {
    margin-bottom: 15px;
    text-align: center;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dimension-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.dimension-label {
    min-width: 150px;
    font-weight: 500;
    font-size: 0.9rem;
}

.dimension-score-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.dimension-score {
    min-width: 60px;
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

/* Dimension Scores Table */
.dimension-scores-table {
    margin: 20px 0;
}

.dimension-scores-table th {
    background-color: #3498db;
    color: white;
}

.dimension-scores-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* AISG Programs Table */
.airi {
    margin: 20px 0;
}

.airi td.hidden {
    visibility: hidden;
    border: none !important;
}

.airi th {
    background-color: #2c3e50;
    color: white;
}

/* Paragraphs and Text */
.result-displays p {
    margin-bottom: 15px;
    text-align: justify;
}

.result-displays strong {
    color: #2c3e50;
}

.result-displays u {
    text-decoration: none;
    border-bottom: 2px solid #3498db;
}

/* Horizontal Rules */
.result-displays hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 30px 0;
}

/* Print Styles */
@media print {
    .result-displays {
        padding: 0;
        max-width: none;
    }
    
    .pagebreak {
        page-break-before: always;
    }
    
    .pagebreak:first-child {
        page-break-before: avoid;
    }
    
    .result-displays table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .highlight_cell {
        background-color: #ffec33 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .result-displays {
        padding: 15px;
    }
    
    .report_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dimension-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .dimension-label {
        min-width: auto;
        text-align: center;
    }
    
    .dimension-score {
        text-align: center;
    }
    
    .result-displays table {
        font-size: 0.9rem;
    }
    
    .result-displays th,
    .result-displays td {
        padding: 8px 10px;
    }
}

/* Error Messages */
.myairi-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
}

/* Success Messages */
.myairi-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin: 20px 0;
} 

/* Radar Chart Styling */
.myairi-radar-chart {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.airi-premium-chart {
    min-width: 0;
}

.myairi-radar-chart h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.myairi-radar-chart .chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.myairi-radar-chart canvas {
    max-height: 100%;
    max-width: 100%;
}

/* Responsive adjustments for radar charts */
@media (max-width: 768px) {
    .myairi-radar-chart .chart-container {
        height: 250px;
    }
    
    .myairi-radar-chart {
        padding: 15px;
    }
}

/* Chart grid styling */
.report_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .report_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Field Comparison Charts */
.field-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.field-comparison-chart-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.field-comparison-chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.field-comparison-chart-container h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.field-comparison-chart {
    margin-bottom: 15px;
}

.field-comparison-chart .chart-container {
    position: relative;
    height: 120px;
    width: 100%;
}

.field-comparison-scores {
    display: flex;
    justify-content: space-between;
    margin: 15px 0 0 0;
    font-size: 12px;
    color: #666;
}

.field-comparison-scores span {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.field-comparison-scores span:first-child {
    color: #3498db;
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.field-comparison-scores span:last-child {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Responsive adjustments for field comparison charts */
@media (max-width: 768px) {
    .field-comparison-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .field-comparison-chart-container {
        padding: 15px;
    }
    
    .field-comparison-scores {
        flex-direction: column;
        gap: 5px;
    }
    
    .field-comparison-scores span {
        text-align: center;
    }
} 

/* Comprehensive Field Chart */
.comprehensive-field-chart {
    margin: 30px 0;
}

.myairi-comprehensive-field-chart {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.myairi-comprehensive-field-chart h4 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.myairi-comprehensive-field-chart .chart-container {
    position: relative;
    height: 450px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.myairi-comprehensive-field-chart canvas {
    max-height: 100%;
    max-width: 100%;
    min-height: 400px;
}

/* Responsive adjustments for comprehensive field chart */
@media (max-width: 768px) {
    .myairi-comprehensive-field-chart .chart-container {
        height: 250px;
    }
    
    .myairi-comprehensive-field-chart {
        padding: 20px;
    }
    
    .myairi-comprehensive-field-chart h4 {
        font-size: 16px;
    }
} 

/* AIRI Suggestions Table */
.airi-suggestions-table-container {
    margin: 30px 0;
}

.airi-suggestions-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.airi-suggestions-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 800px;
}

.airi-suggestions-table th,
.airi-suggestions-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

.airi-suggestions-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.airi-suggestions-table .pillar-column {
    width: 15%;
    background-color: #34495e;
}

.airi-suggestions-table .dimension-column {
    width: 20%;
    background-color: #f8f9fa;
    font-weight: 600;
}

.airi-suggestions-table .pillar-cell {
    background-color: #ecf0f1;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    vertical-align: middle;
}

.airi-suggestions-table .dimension-cell {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #34495e;
}

.airi-suggestions-table .suggestion-cell {
    background-color: #fff;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.airi-suggestions-table .suggestion-cell:empty {
    background-color: #f8f9fa;
    color: #999;
    font-style: italic;
}

/* Current level highlighting */
.airi-suggestions-table .current-level-highlight {
    background-color: #e8f5e8 !important;
    border: 2px solid #28a745 !important;
    position: relative;
}

.airi-suggestions-table .current-level-highlight::before {
    content: '📍';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: #28a745;
}

/* Current score indicator */
.current-score-indicator {
    margin-top: 5px;
    padding: 3px 8px;
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    font-size: 11px;
    color: #1976d2;
}

.current-score-indicator small {
    font-weight: 500;
}

/* Hover effect for highlighted cells */
.airi-suggestions-table .current-level-highlight:hover {
    background-color: #d4edda !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Responsive adjustments for AIRI suggestions table */
@media (max-width: 768px) {
    .airi-suggestions-table-wrapper {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .airi-suggestions-table th,
    .airi-suggestions-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .airi-suggestions-table .suggestion-cell {
        font-size: 11px;
    }
} 