/* top30.css - Dedicated styles for Top 30 Predictions page */

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Filter Section Styles */
.top30-filter-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px #808080;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top30-filter-container > .top30-filter-row:not(:first-child) {
    margin-top: 12px;
}

.top30-filter-row {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
}

.top30-filter-row--right {
    justify-content: flex-end;
}

.top30-filter-item {
    margin-right: 0;
    flex: 0 1 auto;
}

.top30-filter-buttons {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

/* Responsive filter inputs */
@media (max-width: 980px) {
    .top30-dropdown-wide { width: 200px; }
    .top30-search-input { width: 160px; }
}

@media (max-width: 640px) {
    .top30-dropdown-wide { width: 180px; }
    .top30-search-input { width: 140px; }
}

.top30-filter-label {
    color: #000;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.top30-search-input {
    width: 180px;
    padding: 8px;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
}

.top30-dropdown-wide {
    width: 220px;
    color: #000;
}

/* Button Styles */
.top30-reset-button {
    background-color: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.top30-reset-button:hover {
    background-color: #3DC6C3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.top30-reset-button:active {
    transform: translateY(1px);
}

.top30-reset-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.top30-refresh-button {
    background-color: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.top30-refresh-button:hover {
    background-color: #3DC6C3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.top30-refresh-button:active {
    transform: translateY(1px);
}

.top30-refresh-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.top30-export-btn {
    background-color: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.top30-export-btn:hover {
    background-color: #3DC6C3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.top30-export-btn:active {
    transform: translateY(1px);
}

.top30-export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* Week Notification Banner */
.top30-week-notification {
    margin-top: 20px;
    margin-bottom: 0px;
}

/* Summary Container */
.top30-summary-container {
    flex: 1;
    margin-bottom: 20px;
}

/* Table Container */
.top30-table-container {
    margin-top: 20px;
}

/* Data Table Styling */
#top30-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
    background-color: #f8fafc;
}

#top30-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table thead tr th {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    border: 1px solid #bae6fd !important;
    text-align: left !important;
    white-space: pre-line !important;
}

#top30-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table tbody tr td {
    padding: 12px !important;
    text-align: left !important;
    background-color: #fff;
    color: #111827;
    border: 1px solid #e5e7eb !important;
}

#top30-predictions-table .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table tbody tr:nth-child(odd) td {
    background-color: #f9fafb;
}

.top30-table-header {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    border: 1px solid #bae6fd;
    text-align: left;
    white-space: pre-line;
}

.top30-table-cell {
    padding: 12px;
    text-align: left;
    background-color: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.top30-table-odd-row {
    background-color: #f9fafb;
}

/* Chart Container */
.top30-chart-container {
    margin-top: 30px;
    background-color: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.top30-chart {
    margin-bottom: 20px;
}

.top30-chart-no-data {
    color: #9ca3af;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.top30-chart-error {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

/* Utility Classes */
.top30-hidden {
    display: none;
}

.top30-visible {
    display: block;
}

.top30-text-center {
    text-align: center;
}

.top30-text-left {
    text-align: left;
}

.top30-text-right {
    text-align: right;
}

.top30-spacer-small {
    margin-top: 5px;
}

/* Warning and Error Messages */
.top30-error-no-data {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

.top30-error-dashboard {
    color: #f59e0b;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top30-filter-row {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .top30-filter-item {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .top30-chart-container {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .top30-chart-container {
        padding: 10px;
    }
}
