/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #020b14;
    color: #e0faff;
}

#app {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 900px) {
    #app {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

.section-block {
    margin-bottom: 1.8rem;
}

.section-title {
    font-size: 1.2rem;
    color: #00eaff;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------
   HORIZONTAL SCROLLERS
-------------------------------------------------- */

.horizontal-scroller {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding: 0 12px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroller::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------
   STATION CARDS
-------------------------------------------------- */

.station-card {
    background: rgba(0, 30, 40, 0.6);
    border-radius: 10px;
    padding: 10px;
    min-width: 150px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px #003b4a;
    scroll-snap-align: start;
}

.station-card.selected {
    box-shadow: 0 0 15px #00eaff;
    transform: scale(1.05);
}

/* --------------------------------------------------
   DATE PICKER
-------------------------------------------------- */

.neon-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 40, 60, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00eaff;
}

#dateInput {
    background: transparent;
    border: none;
    color: #00eaff;
    font-size: 1rem;
    pointer-events: auto;
}

/* --------------------------------------------------
   TIME WHEEL
-------------------------------------------------- */

#timeWheel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 160px;
    overflow: hidden;
    margin-top: 10px;
}

.wheel-column {
    width: 60px;
    height: 160px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.wheel-column::-webkit-scrollbar {
    display: none;
}

.wheel-item {
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 1.4rem;
    scroll-snap-align: center;
    color: #8ff;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.wheel-item.selected {
    opacity: 1;
    transform: scale(1.2);
    color: #0ff;
}

.wheel-overlay {
    pointer-events: none;
    position: absolute;
    top: 50%;
    height: 32px;
    margin-top: -16px;
    left: 0;
    right: 0;
    border-top: 1px solid #0ff;
    border-bottom: 1px solid #0ff;
    z-index: 1;
}

/* --------------------------------------------------
   WEATHER CARDS
-------------------------------------------------- */

#weatherScroller {
    max-width: 100%;
    overflow-x: auto;
    padding: 0 12px;
    display: flex;
    gap: 12px;
}

.weather-card {
    background: rgba(0, 20, 30, 0.6);
    border-radius: 12px;
    padding: 10px;
    flex: 0 0 160px;
    max-width: 160px;
    box-shadow: 0 0 15px #00eaff;
    transition: 0.2s;
    scroll-snap-align: start;
}

.weather-card.selected {
    transform: scale(1.05);
    box-shadow: 0 0 25px #00eaff;
}

/* Tide state colours inside weather cards */
.tide-flooding { color: #00aaff; font-weight: bold; }
.tide-slack    { color: #00ff88; font-weight: bold; }
.tide-ebbing   { color: #ff8800; font-weight: bold; }

/* --------------------------------------------------
   TIDE TABLE
-------------------------------------------------- */

.tide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #e0faff;
}

.tide-table th,
.tide-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.tide-icon {
    font-size: 1.2rem;
    margin-right: 6px;
}

.spring-highlight {
    box-shadow: 0 0 15px #00ff00;
}

.neap-highlight {
    box-shadow: 0 0 15px #00bfff;
}

/* --------------------------------------------------
   DETAIL SECTIONS
-------------------------------------------------- */

.detail-section {
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    border-left: 3px solid #00eaff;
    background: rgba(0, 20, 30, 0.4);
    border-radius: 6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.95rem;
}

/* --------------------------------------------------
   INPUT FIXES
-------------------------------------------------- */

.neon-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0, 40, 60, 0.5);
    border: none;
    border-radius: 6px;
    color: #00eaff;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

#exportWhatsApp {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 0 10px #25D366;
    margin-bottom: 10px;
}

#exportPDF {
    background-color: #FF0000;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 0 10px #FF0000;
}
