/* Report page specific styles */

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Header section */
.header {
    background: rgba(255, 255, 255, 0.25);
    color: #2c3e50;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

.header h1 {
    margin: 0 0 10px 0;
    /* Color, size, weight, and alignment now handled by common.css */
}

.header .subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 0;
    font-weight: 400;
}

/* Content sections */
.content {
    padding: 40px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


.content h3 {
    color: #0056b3;
    margin: 25px 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.content p {
    margin: 15px 0;
    line-height: 1.6;
    color: #444;
}

.content ul, .content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.content li {
    margin: 8px 0;
    line-height: 1.5;
    color: #444;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

th, td {
    padding: 12px 15px;
    text-align: left !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(0, 123, 255, 0.05);
    transition: background-color 0.3s ease;
}

/* Status indicators for propagation conditions */
.status-excellent { 
    background-color: #28a745 !important; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 500; 
    font-size: 0.9em;
}

.status-good { 
    background-color: #ffc107 !important; 
    color: #333; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 500; 
    font-size: 0.9em;
}

.status-fair { 
    background-color: #fd7e14 !important; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 500; 
    font-size: 0.9em;
}

.status-poor { 
    background-color: #dc3545 !important; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 500; 
    font-size: 0.9em;
}

.status-closed { 
    background-color: #6c757d !important; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 500; 
    font-size: 0.9em;
}


/* Band analysis table specific styles */
.band-analysis-table {
    width: 100%;
    margin: 15px 0;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.band-analysis-table th {
    text-align: left !important;
    padding: 10px 8px;
    font-size: 0.9em;
}

.band-analysis-table td {
    text-align: left !important;
    vertical-align: middle;
    padding: 10px 8px;
}

/* Chart containers */
.chart-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.chart-container h3 {
    margin-top: 0;
    color: #05208e;
    text-align: center;
    font-weight: 500;
}

.chart-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* HAM-specific styling */
.band-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9em;
    text-align: center;
    min-width: 70px;
}

.condition-excellent { background: #28a745; color: white; }
.condition-good { background: #ffc107; color: #333; }
.condition-fair { background: #fd7e14; color: white; }
.condition-poor { background: #dc3545; color: white; }
.condition-closed { background: #000000; color: white; }

/* Emoji styling for better visibility */
h2:has-text("🎯") { border-left-color: #28a745; }
h2:has-text("📻") { border-left-color: #e74c3c; }
h2:has-text("⏰") { border-left-color: #f39c12; }
h2:has-text("🌍") { border-left-color: #3498db; }
h2:has-text("📊") { border-left-color: #9b59b6; }
h2:has-text("💡") { border-left-color: #f1c40f; }
h2:has-text("🔬") { border-left-color: #95a5a6; }

/* Quick scan boxes */
.quick-summary {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.quick-summary h3 {
    color: #28a745;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.quick-summary ul {
    margin: 0;
    padding-left: 20px;
}

.quick-summary li {
    margin: 8px 0;
    color: #155724;
    font-weight: 500;
}

/* Footer improvements */
.footer {
    background: rgba(255, 255, 255, 0.3);
    color: #6c757d;
    padding: 30px 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Footer improvements */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    text-align: center;
    width: 100%;
}

.data-sources h4 {
    color: #05208e;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.service-info {
    text-align: center;
}

.disclaimer {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 10px;
    font-style: italic;
}

.footer p {
    margin: 5px 0;
    opacity: 0.8;
}

.footer a {
    color: #05208e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #041a73;
    text-decoration: underline;
}

/* Alternative footer layout */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .service-info {
        text-align: center;
    }
}

/* Chart container styles */
.chart-container {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #05208e;
    text-align: center;
    font-size: 1.2em;
    font-weight: 500;
}

.chart-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.chart-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.charts-section {
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Chart grid layout */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    body { padding: 70px 10px 10px 10px; } /* Adjust for smaller nav header */
    .container { margin: 0; border-radius: 0; }
    .header { padding: 20px; }
    /* Header h1 responsive styles now handled by common.css */
    .content { padding: 20px; }
    .charts-section { padding: 20px; }
    .footer { padding: 15px 20px; }
    
    /* Navigation adjustments for mobile */
    .nav-header {
        height: 50px;
        padding: 0 15px;
        gap: 10px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .hamburger-line {
        width: 16px;
    }
    
    .refresh-icon {
        width: 16px;
    }
    
    /* Improved table responsiveness for mobile */
    table { 
        font-size: 0.85em; 
        width: 100%;
        margin: 10px auto;
        display: table;
        table-layout: auto;
    }
    
    th, td { 
        padding: 6px 8px; 
        white-space: nowrap;
    }
    
    
    /* Charts grid responsive */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-container {
        margin: 15px 0;
        padding: 10px;
    }
    
    /* Better handling of images on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Print styles */
@media print {
    body { 
        background: white;
        padding: 0;
    }
    
    .nav-header {
        display: none;
    }
    
    .container {
        box-shadow: none;
        border: none;
        background: white;
        border-radius: 0;
    }
    
    .header {
        background: white;
        border-bottom: 2px solid #333;
    }
    
    h1, h2, h3 { color: black; }
    
    table {
        background: white;
        border: 1px solid #333;
    }
    
    /* Hide charts in print */
    .charts-section {
        display: none;
    }
    
    .chart-container {
        display: none;
    }
    
    .chart-section {
        display: none;
    }
    
    
    
    .footer {
        background: white;
        border-top: 1px solid #333;
    }
}

/* Integrated chart styles for professional layout */
.chart-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    /* border-left: 4px solid #007bff; */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.chart-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #05208e;
    text-align: center;
    font-size: 1.3em;
    font-weight: 500;
}

.chart-section .chart-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-section .chart-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}


/* Responsive chart layout */
@media (max-width: 768px) {
    .chart-section {
        margin: 20px -10px;
        border-radius: 0;
        padding: 20px 15px;
    }
    
    .chart-section .chart-image {
        padding: 10px;
        border-radius: 6px;
    }
    
}

/* iPhone and very small screens specific optimizations */
@media (max-width: 480px) {
    body { 
        padding: 60px 5px 5px 5px; /* Account for nav header */
        font-size: 14px;
    }
    
    /* Navigation adjustments for very small screens */
    .nav-header {
        height: 45px;
        padding: 0 10px;
        gap: 8px;
    }
    
    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .hamburger-line {
        width: 14px;
        height: 1.5px;
    }
    
    .refresh-icon {
        width: 14px;
        height: 14px;
    }
    
    /* Container and content adjustments */
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .header {
        padding: 15px 10px;
    }
    
    /* Header h1 responsive styles now handled by common.css */
    
    .content {
        padding: 15px 10px; 
    }
    
    /* Optimize tables for very small screens */
    table { 
        font-size: 0.8em;
        width: 100%;
        margin: 10px auto;
        border-radius: 0;
        display: table;
        table-layout: auto;
    }
    
    th, td { 
        padding: 6px 8px;
    }
    
    /* Improve band analysis table specifically */
    .band-analysis-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .band-analysis-table th,
    .band-analysis-table td {
        white-space: nowrap;
        min-width: 80px;
    }
    
    .status-excellent, .status-good, .status-fair, .status-poor, .status-closed {
        font-size: 0.9em;
    }
    
    /* Make condition indicators more compact */
    .band-analysis-table .condition-excellent,
    .band-analysis-table .condition-good,
    .band-analysis-table .condition-fair,
    .band-analysis-table .condition-poor,
    .band-analysis-table .condition-closed {
        padding: 2px 4px;
        font-size: 0.8em;
        max-width: 80px;
    }
    
    /* Better image handling */
    .chart-image {
        margin: 0 -5px;
        width: calc(100% + 10px);
        padding: 8px;
        border-radius: 0;
    }
    
    /* Adjust footer for very small screens */
    .footer {
        padding: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-section p {
        margin: 3px 0;
        font-size: 0.9em;
    }
}

/* Gauge Panel Styles */
.gauge-panel {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gauge-panel h3 {
    color: #05208e;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 500;
}

.gauge-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.gauge-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gauge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gauge-item h4 {
    color: #05208e;
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 500;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .gauge-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gauge-panel {
        padding: 15px;
        margin: 15px 0;
    }
    
    .gauge-item {
        padding: 12px;
    }
    
    .gauge-item h4 {
        font-size: 1em;
    }
}

/* Tablet layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .gauge-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .gauge-item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}
