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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    min-height: 100vh;
    padding: 0;
    color: #ffffff;
}

.container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #111111;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.led-clock-section {
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
}

.led-clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.led-date {
    color: #00ff88;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
}

.led-clock {
    display: flex;
    align-items: center;
    gap: 10px;
}

.led-digit-group {
    display: flex;
    gap: 4px;
}

.led-digit-container {
    width: 25px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid #1a1a1a;
}

.led-digit-wrapper {
    height: 400px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: top 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.led-digit {
    height: 40px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 1px;
    padding: 2px;
}

.led {
    background: #0d0d0d;
    border-radius: 1px;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.9);
}

.led.active {
    background: #00ff00;
    box-shadow:
        0 0 2px #00ff00,
        0 0 4px #00ff00,
        0 0 6px #00ff00,
        inset 0 0 1px rgba(255, 255, 255, 0.3);
}

.led-separator {
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    animation: blink 1s infinite;
    font-size: 28px;
    line-height: 1;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
    }

    .top-bar-left {
        width: 100%;
        justify-content: space-between;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    .led-clock-section {
        padding: 10px 15px;
    }

    .led-date {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .led-clock {
        gap: 6px;
    }

    .led-digit-container {
        width: 20px;
        height: 32px;
    }

    .led-digit {
        height: 32px;
    }

    .led-digit-wrapper {
        height: 320px;
    }

    .led-separator {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .led-clock-section {
        padding: 8px 10px;
    }

    .led-date {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .led-clock {
        gap: 4px;
    }

    .led-digit-container {
        width: 16px;
        height: 26px;
    }

    .led-digit {
        height: 26px;
    }

    .led-digit-wrapper {
        height: 260px;
    }

    .led-separator {
        font-size: 18px;
    }
}

.toggle-search {
    padding: 10px 20px;
    border: 1px solid #00ff88;
    border-radius: 8px;
    background: transparent;
    color: #00ff88;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.toggle-search:hover {
    background: #00ff88;
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.search-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #0a0a0a;
    border-bottom: 1px solid #333;
    transition: all 0.3s;
}

.search-container.hidden {
    display: none;
}

#city-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    background: #1a1a1a;
    color: #ffffff;
    outline: none;
    max-width: 600px;
}

#city-input:focus {
    border-color: #00ff88;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #00ff88;
    color: #000000;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.current-weather {
    background: #111111;
    padding: 30px;
    border-right: 1px solid #333;
}

.airports-section {
    background: #0a0a0a;
    padding: 30px;
}

.airports-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: calc(100vh - 450px);
    overflow-y: auto;
    padding-right: 10px;
}

.airports-list::-webkit-scrollbar {
    width: 6px;
}

.airports-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.airports-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.airports-list::-webkit-scrollbar-thumb:hover {
    background: #00ff88;
}

.airport-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #333;
    border-left: 4px solid #00ff88;
    cursor: pointer;
    transition: all 0.2s ease;
}

.airport-card:hover {
    background: #222;
    border-color: #00ff88;
}

.airport-card.collapsed .metar-collapse-content {
    display: none;
}

.airport-card.collapsed .airport-name {
    margin-bottom: 0;
}

.airport-card.collapsed {
    padding: 12px 15px;
}

.airports-hidden {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.airports-hidden.show {
    display: flex;
}

.show-more-button {
    width: 100%;
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #00ff88;
    color: #00ff88;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.show-more-button:hover {
    background: #00ff88;
    color: #000;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.plane-animation {
    width: 100%;
    height: 100px;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plane {
    position: relative;
    width: 60px;
    height: 60px;
    z-index: 2;
    animation: planeBob 1.5s ease-in-out infinite;
}

.plane svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

@keyframes planeBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.air-trails {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.air-trail {
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 255, 136, 0.8), transparent);
    border-radius: 1px;
    opacity: 0;
    animation: trailFly 2s ease-in-out infinite;
}

.air-trail:nth-child(1) {
    left: 30%;
    animation-delay: 0s;
}

.air-trail:nth-child(2) {
    left: 35%;
    animation-delay: 0.3s;
}

.air-trail:nth-child(3) {
    left: 40%;
    animation-delay: 0.6s;
}

.air-trail:nth-child(4) {
    left: 45%;
    animation-delay: 0.9s;
}

.air-trail:nth-child(5) {
    left: 50%;
    animation-delay: 1.2s;
}

.air-trail:nth-child(6) {
    left: 55%;
    animation-delay: 1.5s;
}

.air-trail:nth-child(7) {
    left: 60%;
    animation-delay: 1.8s;
}

.air-trail:nth-child(8) {
    left: 65%;
    animation-delay: 0.15s;
}

.air-trail:nth-child(9) {
    left: 70%;
    animation-delay: 0.45s;
}

.air-trail:nth-child(10) {
    left: 75%;
    animation-delay: 0.75s;
}

@keyframes trailFly {
    0% {
        top: 0;
        opacity: 0;
        transform: scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: scale(1);
    }
    80% {
        opacity: 0.6;
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: scale(1.5);
    }
}

.loading-text {
    color: #888;
    font-size: 1rem;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

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

.airport-ident {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ff88;
}

.airport-distance {
    font-size: 0.9rem;
    color: #888;
}

.airport-name {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

.metar-raw {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
}

.metar-raw code {
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.metar-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.metar-detail {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
}

.metar-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.metar-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: bold;
}

.flight-category {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.flight-category.vfr {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.flight-category.mvfr {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

.flight-category.ifr {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.flight-category.lifr {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid #ff0000;
}

.flight-category.unknown {
    background: rgba(128, 128, 128, 0.2);
    color: #888;
    border: 1px solid #888;
}

.forecast {
    background: #0d0d0d;
    padding: 30px;
    border-top: 1px solid #333;
}

.forecast-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.forecast-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.forecast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.1);
}

.forecast-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 15px;
}

.forecast-card .weather-icon {
    margin: 15px 0;
}

.forecast-temp {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.forecast-temp-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forecast-precipitation {
    font-size: 0.9rem;
    color: #66aaff;
    margin: 8px 0;
    text-shadow: 0 0 10px rgba(102, 170, 255, 0.5);
}

.forecast-desc {
    font-size: 0.9rem;
    color: #888;
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    border: 1px solid #ff4444;
}

.error-message.show {
    display: block;
}

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

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

.city-name {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.weather-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.temperature {
    font-size: 4rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

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

.gauge-container {
    display: flex;
    justify-content: center;
}

.gauge {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2a2a 0%, #0d0d0d 100%);
    border: 4px solid #333;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.05),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gauge::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gauge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.gauge-value {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.gauge-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.humidity-gauge {
    border-color: #4488ff;
    box-shadow:
        0 8px 32px rgba(68, 136, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.05),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.humidity-gauge::before {
    border-color: rgba(68, 136, 255, 0.2);
}

.humidity-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.humidity-ring-track {
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 8;
}

.humidity-ring-fill {
    fill: none;
    stroke: url(#humidityGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.5s ease-out;
    filter: drop-shadow(0 0 8px rgba(68, 136, 255, 0.5));
}

.pressure-gauge {
    border-color: #ff6600;
    box-shadow:
        0 8px 32px rgba(255, 102, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.05),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.pressure-gauge::before {
    border-color: rgba(255, 102, 0, 0.2);
}

.pressure-dial {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.pressure-ticks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.pressure-ticks line {
    stroke: #444;
    stroke-linecap: round;
    stroke-width: 2px;
}

.pressure-ticks line.major {
    stroke: #888;
    stroke-width: 3px;
}

.pressure-gauge::before {
    border-color: rgba(255, 170, 0, 0.2);
}

.pressure-gauge .gauge-value {
    color: #ffaa00;
    text-shadow:
        0 0 10px rgba(255, 170, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.pressure-dial {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.pressure-ticks line {
    stroke: #444;
    stroke-linecap: round;
    stroke-width: 2px;
}

.pressure-ticks line.major {
    stroke: #666;
    stroke-width: 3px;
}

.wind-gauge {
    border-color: #66aaff;
    box-shadow:
        0 8px 32px rgba(102, 170, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.05),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.wind-gauge::before {
    border-color: rgba(102, 170, 255, 0.2);
}

.wind-gauge .gauge-value {
    color: #66aaff;
    text-shadow:
        0 0 10px rgba(102, 170, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.wind-compass {
    width: 100px;
    height: 60px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.wind-direction {
    font-size: 1.5rem;
    font-weight: bold;
    color: #66aaff;
    text-shadow: 0 0 15px rgba(102, 170, 255, 0.6);
}

.wind-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .current-weather {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .weather-gauges {
        grid-template-columns: repeat(3, 1fr);
    }

    .forecast-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .weather-main {
        flex-direction: column;
        text-align: center;
    }

    .temperature {
        font-size: 3rem;
    }

    .forecast-cards {
        grid-template-columns: 1fr;
    }

    .airport-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .metar-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .airports-list {
        max-height: none;
    }

    .weather-gauges {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gauge {
        width: 140px;
        height: 140px;
    }

    .gauge-value {
        font-size: 1.5rem;
    }
}
