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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.location-selector {
    text-align: center;
    margin-bottom: 30px;
}

.location-selector button {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    margin: 5px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.location-selector button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.location-selector button.active {
    background: #667eea;
    color: white;
}

.airport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.airport-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.airport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.airport-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.airport-code {
    font-size: 1.2em;
    color: #999;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat {
    text-align: center;
}

.stat[style*="cursor: pointer"]:hover {
    background: #f0f0f0;
    border-radius: 8px;
    transform: scale(1.05);
    transition: all 0.2s;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
}

.stat-value.max {
    color: #ff4444;
}

.stat-value.min {
    color: #4444ff;
}

.stat-value.current {
    color: #667eea;
}

/* Kalshi Market Styles */
.kalshi-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

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

.kalshi-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.kalshi-logo {
    font-size: 0.9em;
    color: #667eea;
    font-weight: bold;
}

.market-info {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.market-title {
    font-size: 1.05em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.market-subtitle {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.market-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-top: 5px;
}

.market-status.open {
    background: #22c55e;
    color: white;
}

.market-status.closed {
    background: #ef4444;
    color: white;
}

.orderbook-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.orderbook-table thead {
    background: #667eea;
    color: white;
}

.orderbook-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.orderbook-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.orderbook-table tbody tr:hover {
    background: #f8f9fa;
}

.price-cell {
    font-weight: bold;
    font-size: 1.1em;
}

.price-yes {
    color: #22c55e;
}

.price-no {
    color: #ef4444;
}

.contract-range {
    font-weight: 600;
    color: #333;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.market-stat-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.market-stat-label {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 3px;
}

.market-stat-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.loading-markets {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-style: italic;
}

.no-markets {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.timeline {
    margin-top: 20px;
}

.temp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.temp-item.past {
    border-left-color: #999;
    opacity: 0.8;
}

.temp-item.future {
    border-left-color: #667eea;
}

.temp-item.current {
    border-left-color: #ff9500;
    background: #fff3e0;
    font-weight: bold;
}

.time-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
}

.label-badge.past {
    background: #999;
}

.label-badge.current {
    background: #ff9500;
}

.temp-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2em;
    padding: 40px;
}

.error {
    background: #ff4444;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.refresh-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: block;
    margin: 20px auto;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.spread-indicator {
    font-size: 0.85em;
    color: #666;
    margin-top: 3px;
}
