* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #333;
    background: white;
    padding: 16px;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 100%;
    height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.main-content {
    display: flex;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.left-section {
    flex: 1.8;
    min-width: 0;
}

.right-section {
    flex: 1;
    min-width: 0;
    background-color: #f6f8fa;
    padding: 12px;
    border-radius: 6px;
}

.table-container {
    flex: 1;
    overflow-y: auto;
    background-color: white;
}

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

th {
    font-weight: 600;
    font-size: 14px;
    color: #888888;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #007CE0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
}

td {
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #DDDDDD;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(0, 124, 224, 0.03);
}

.storms-table tbody tr {
    cursor: pointer;
}

.storms-table tbody tr.selected {
    background-color: rgba(0, 124, 224, 0.08);
}

.indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 auto;
}

.indicator.adam-available {
    background-color: #007CE0;
}

.indicator.gdacs-available {
    background-color: #1EBFB3;
}

.indicator.unavailable {
    background-color: #DDDDDD;
}

.alert-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.alert-red {
    background-color: rgba(242, 100, 90, 0.1);
    color: #F2645A;
}

.alert-orange {
    background-color: rgba(255, 165, 0, 0.1);
    color: #ff8c00;
}

.alert-green {
    background-color: rgba(30, 191, 179, 0.1);
    color: #1EBFB3;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.number-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.source-label {
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
}

.comparison-cell {
    padding: 10px 12px;
    text-align: center;
}

.stacked-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.stacked-values .adam-value {
    color: #007CE0;
    font-weight: 600;
}

.stacked-values .gdacs-value {
    color: #1EBFB3;
    font-weight: 600;
}

.stacked-values .no-data {
    color: #DDDDDD;
}

.source-legend {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    font-size: 12px;
}

.source-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.adam {
    background-color: #007CE0;
}

.legend-color.gdacs {
    background-color: #1EBFB3;
}

.section-header {
    margin-bottom: 12px;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    background-color: #f0f0f0;
}

th.sortable::after {
    content: ' ⇅';
    color: #DDDDDD;
    font-size: 10px;
    margin-left: 4px;
}

th.sortable.sorted-asc::after {
    content: ' ▲';
    color: #007CE0;
}

th.sortable.sorted-desc::after {
    content: ' ▼';
    color: #007CE0;
}

td a {
    color: #007CE0;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px 28px;
    width: 660px;
    max-width: 95vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #888888;
    padding: 0 4px;
}

.modal-close:hover {
    color: #333;
}

.country-link {
    cursor: pointer;
    color: #007CE0;
}

.country-link:hover {
    text-decoration: underline;
}

.wind-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.wind-option {
    display: flex;
    align-items: center;
    padding: 5px 16px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #888888;
}

.wind-option:has(input:checked) {
    border-color: #007CE0;
    color: #007CE0;
    background: rgba(0, 124, 224, 0.06);
}

.wind-option input[type="radio"] {
    display: none;
}

.summary-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 14px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dot-tooltip {
    position: fixed;
    background: #333;
    color: white;
    font-size: 12px;
    line-height: 1.5;
    padding: 6px 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 200;
    display: none;
    white-space: nowrap;
}
