/* Report Page Styles - Part 4: Report Details - Modern Clean Design */

/* Report details */
.report-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.facts-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.facts-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.facts-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.facts-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}

/* Accordion - Modern Clean Design */
.accordion-container {
    margin-top: 1.5rem;
}

.accordion-item {
    margin-bottom: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.accordion-header {
    background: #f9fafb;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f3f4f6;
}

.accordion-title {
    font-weight: 600;
    font-size: 1.0625rem;
    color: #1f2937;
}

.accordion-toggle {
    font-size: 1.125rem;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(90deg);
    color: #374151;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    background-color: #ffffff;
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
    padding: 1.5rem;
}

.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.fact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fact-item.positive {
    color: #27ae60;
}

.fact-item.negative {
    color: #e74c3c;
}

/* Info list */
.info-list {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-key {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.info-value {
    flex: 2;
}

.boolean-value {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.true-value {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.false-value {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.no-data {
    color: #7f8c8d;
    font-style: italic;
}

/* ============================================
   ARCHIVE HISTORY ANALYSIS SECTION
   ============================================ */

.archive-history-section {
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.archive-history-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.archive-history-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.archive-history-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.archive-history-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.9375rem;
    color: #6c757d;
    font-weight: 400;
}

.archive-status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 28px;
    font-size: 0.9375rem;
}

.archive-status-indicator.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

.archive-status-indicator.warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border-left: 4px solid #f39c12;
}

.archive-status-indicator.danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.archive-status-indicator i {
    font-size: 1.25rem;
}

.archive-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.archive-metric-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.archive-metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.archive-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.archive-metric-icon.blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.archive-metric-icon.purple {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.archive-metric-icon.light-blue {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
}

.archive-metric-icon.green {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.archive-metric-icon.orange {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.archive-metric-icon.red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.archive-metric-content {
    flex: 1;
}

.archive-metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 4px;
}

.archive-metric-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.text-success {
    color: #27ae60 !important;
}

.text-warning {
    color: #f39c12 !important;
}

.text-danger {
    color: #e74c3c !important;
}

/* Archive Timeline */
.archive-timeline-section {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.archive-timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.archive-timeline-header i {
    font-size: 1.5rem;
    color: #3498db;
}

.archive-timeline-header h3 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.01em;
}

.archive-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.archive-timeline-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.archive-timeline-year {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c3e50;
    min-width: 60px;
    flex-shrink: 0;
}

.archive-timeline-bar-container {
    flex: 1;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.archive-timeline-bar {
    height: 100%;
    position: relative;
}

.archive-timeline-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

.archive-timeline-item.active .archive-timeline-bar-fill {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}

.archive-timeline-item.low .archive-timeline-bar-fill {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.archive-timeline-item.dormant .archive-timeline-bar-fill {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.archive-timeline-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    font-size: 0.875rem;
    color: #6c757d;
    flex-shrink: 0;
}

.archive-timeline-count {
    font-weight: 600;
    color: #2c3e50;
}

.archive-timeline-separator {
    color: #adb5bd;
}

.archive-timeline-status {
    font-size: 1.125rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.archive-timeline-item.active .archive-timeline-status {
    color: #27ae60;
}

.archive-timeline-item.low .archive-timeline-status {
    color: #f39c12;
}

.archive-timeline-item.dormant .archive-timeline-status {
    color: #e74c3c;
}

.archive-timeline-legend {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.archive-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6c757d;
}

.archive-legend-item i {
    font-size: 1rem;
}

/* Archive Summary Grid */
.archive-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.archive-summary-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.archive-summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.archive-summary-card.blue {
    border-top: 4px solid #3498db;
}

.archive-summary-card.purple {
    border-top: 4px solid #9b59b6;
}

.archive-summary-card.light-green {
    border-top: 4px solid #27ae60;
}

.archive-summary-card.green {
    border-top: 4px solid #27ae60;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.archive-summary-card.orange {
    border-top: 4px solid #f39c12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.archive-summary-card.red {
    border-top: 4px solid #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.archive-summary-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 8px;
}

.archive-summary-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .archive-metrics-grid,
    .archive-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-history-section {
        padding: 24px;
    }
    
    .archive-history-header h2 {
        font-size: 1.5rem;
    }
    
    .archive-metrics-grid,
    .archive-summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .archive-timeline-section {
        padding: 20px;
    }
    
    .archive-timeline-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .archive-timeline-year {
        min-width: auto;
        width: 100%;
    }
    
    .archive-timeline-bar-container {
        width: 100%;
        order: 2;
    }
    
    .archive-timeline-info {
        order: 3;
        min-width: auto;
        width: 100%;
    }
    
    .archive-timeline-status {
        order: 1;
        position: absolute;
        right: 12px;
    }
    
    .archive-timeline-legend {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .archive-history-section {
        padding: 20px;
    }
    
    .archive-history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .archive-history-header h2 {
        font-size: 1.375rem;
    }
    
    .archive-metric-card {
        padding: 16px;
    }
    
    .archive-metric-value {
        font-size: 1.5rem;
    }
    
    .archive-timeline-section {
        padding: 16px;
    }
    
    .archive-summary-card {
        padding: 20px;
    }
    
    .archive-summary-value {
        font-size: 1.5rem;
    }
    
    .report-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .facts-container {
        padding: 1.5rem;
    }
    
    .facts-header h2 {
        font-size: 1.5rem;
    }
    
    .facts-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .accordion-header {
        padding: 1rem 1.25rem;
    }
    
    .accordion-title {
        font-size: 1rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 1.25rem;
    }
    
    .fact-item {
        padding: 0.875rem 0;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .archive-history-section {
        padding: 16px;
        border-radius: 10px;
    }
    
    .archive-history-header h2 {
        font-size: 1.25rem;
    }
    
    .archive-metric-card {
        flex-direction: column;
        text-align: center;
        padding: 14px;
    }
    
    .archive-metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .archive-metric-value {
        font-size: 1.375rem;
    }
    
    .facts-container {
        padding: 1.25rem;
    }
    
    .facts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .facts-header h2 {
        font-size: 1.375rem;
    }
    
    .accordion-header {
        padding: 0.875rem 1rem;
    }
    
    .accordion-title {
        font-size: 0.9375rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 1rem;
    }
}