/* style.css */
* {
box-sizing: border-box;
}

body { 
    font-family: "Cabin", "Archivo Narrow", Helvetica, Arial, sans-serif; 
    background: #f8f8f8; 
    color: #222; 
    margin: 0; 
    padding: 0;
}
table {
    font-family: "Cabin Condensed", "Archivo Narrow", Helvetica, Arial, sans-serif; 
    font-size: 1em;
}
.news-cycle-regular {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.news-cycle-bold {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.container { 
    max-width: calc(100% - 2em); 
    margin: 0 auto 2em; 
    padding: 1em; 
}
header { 
    background-color: #0076DF;
    color: white;
    position: relative;
}
.header-top {
    padding: 1em 1em 0em 1em;
    text-align: left;
}
header h1 { 
    color: white;
    margin: 0; 
}
header h3 { 
    margin: 0; 
    font-weight: normal; 
    font-size: 1em; 
    color: #ecf0f1; 
}
.logo {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Horizontal menu styles */
.main-menu {
    margin: 1em 0 0 0;
    padding: 0;
    display: flex;
    gap: 1.5em;
    background: #024DA3;
    font-size: 1.1em;
}
.main-menu a {
    color: #fff;
    padding: .3em 1em 0.3em 1em;
    text-decoration: none;
    font-weight: 600;
}
/* .main-menu a:hover, .main-menu a:focus {
    background: #274b63;
    color: #fff;
} */



h1 { 
    color: #2c3e50; 
}
table { 
    border-collapse: collapse; 
    width: 100%; margin-top: 1em; 
    background: #fff; 
}
th, td { 
    border: 1px solid #ccc; 
    padding: 8px; 
    text-align: left; 
}
th { 
    background: #eaeaea; 
}
tr:nth-child(even) { 
    background: #f2f2f2; 
}
a { 
    color: #2980b9; 
    text-decoration: none; 
}
a:hover { 
    text-decoration: underline; 
}

/* Sticky footer styles */
html, body {
    height: 100%;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

footer {
    background-color: #0076DF;
    color: white;
    text-align: center;
    padding: 1em;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* Pagination styles */
.pagination {
    margin: 2em 0;
    position: relative;
}

.pagination .step-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination a {
    padding: 0.5em 1em;
    text-decoration: none;
    color: #0076DF;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.pagination a:hover {
    background-color: #0076DF;
    color: white;
    text-decoration: none;
}

.pagination .current {
    width: 50%;
    text-align: center;
    position: absolute;
    left: 25%;
    top: 0;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background-color: white;
    color: #ccc;
}



/* Report Results Page Styles */

.report-builder {
    max-width: 800px;
    margin: 0 auto;
}

.report-form {
    background: #f8f9fa;
    padding: 2rem 0rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-row.time-period-row .form-group .form-control {
    width: 95%;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.report-help {
    background: #e9ecef;
    padding: 1.5rem;
    border-radius: 8px;
}

.report-help h3 {
    color: #333;
    margin-bottom: 1rem;
}

.report-help ul {
    margin-bottom: 1rem;
}

.report-help li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

.report-results {
    max-width: 1200px;
    margin: 0 auto;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filters-applied {
    background: #e9ecef;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filters-applied h3 {
    margin-bottom: 1rem;
    color: #333;
}

.filters-applied ul {
    margin: 0;
    padding-left: 1.5rem;
}

.filters-applied li {
    margin-bottom: 0.5rem;
}

.summary-stats {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-section {
    margin-bottom: 3rem;
}

.result-section h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.stats-table th,
.stats-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.stats-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.stats-table tr:hover {
    background-color: #f5f5f5;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.page-link {
    color: #007bff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.page-link:hover {
    background-color: #e9ecef;
}

.page-info {
    color: #6c757d;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .report-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
}



.login-form .login-btn {
    background-color: #0076DF;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 1em;   
}
#logout-form {
    padding: 4px;
}


.suggestion-list {
    padding:.5em;
    background-color: #e6e6e6;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    list-style: none;
    background-color: #f6f6f6;
    margin-bottom: 2px;
}
.suggestion-item:hover {
    background-color: #f0f0f0;
}
