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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.last-update {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
}

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

section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h2 {
    color: #1e3c72;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 10px;
}

h3 {
    color: #2a5298;
    margin-bottom: 15px;
}

/* Gas Prices Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.price-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price-value {
    font-size: 2.5em;
    font-weight: bold;
    margin: 10px 0;
}

.price-change {
    font-size: 1.1em;
    margin-top: 5px;
}

.price-change.positive {
    color: #4ade80;
}

.price-change.negative {
    color: #f87171;
}

/* Map Styles */
#map {
    height: 500px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #2a5298;
    background: white;
    color: #2a5298;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #2a5298;
    color: white;
}

.filter-btn.active {
    background: #2a5298;
    color: white;
}

.vessel-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stat-label {
    font-weight: 600;
    color: #666;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #2a5298;
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

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

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background: #f8f9fa;
}

.loading {
    text-align: center;
    padding: 40px !important;
    color: #999;
    font-style: italic;
}

/* Status badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-underway {
    background: #4ade80;
    color: white;
}

.status-anchored {
    background: #fbbf24;
    color: #333;
}

.status-moored {
    background: #9ca3af;
    color: white;
}

/* Price Chart */
.price-chart-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.price-chart-section h3 {
    color: #1e3c72;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.chart-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chart-btn {
    padding: 8px 18px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: #667eea;
    color: white;
}

.chart-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
}

#priceChart {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-loading {
    color: #888;
    font-style: italic;
    text-align: center;
}

/* Data Sources */
.data-sources ul {
    list-style: none;
    padding: 0;
}

.data-sources li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.data-sources li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2a5298;
    font-weight: bold;
}

footer {
    text-align: center;
    color: white;
    padding: 30px 20px;
    opacity: 0.9;
}

footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .vessel-stats {
        flex-direction: column;
        gap: 15px;
    }

    .map-controls {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    section {
        padding: 20px;
    }
}
