/* Global Layout */
body {
    background-color: #0e1b2b;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
html, body {
    background-color: #0e1b2b !important;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Reset Button */
#resetBtn {
    position: fixed;
    top: 15px;
    right: 20px;
    background: #00aaff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    line-height: 38px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background 0.2s, transform 0.15s;
}

#resetBtn:hover {
    background-color: #007acc;
    transform: scale(1.1);
}

/* Clock Area */
#clockArea {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 20px;
    width: 100%;
    overflow-y: auto;
    padding-top: 60px;
}

/* Clock Card */
.clock {
    background: #1b2a3a;
    border: 1px solid #223b55;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    resize: both;
    overflow: hidden;
    min-width: 280px;
    min-height: 200px;
    flex: 1 1 30%;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.clock:hover {
    box-shadow: 0 0 14px #00aaff;
    transform: scale(1.02);
}

/* Timezone Label */
.clock .zone {
    color: #aee0ff;
    font-size: 2.4vw;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: none;
}

/* Digital Time */
.clock .time {
    font-size: 3vw;
    color: #00aaff;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Date under each clock */
.clock .date {
    font-size: 1vw;
    color: #ccc;
    margin-top: 4px;
}

/* Weather Info (for Melbourne) */
.weather {
    margin-top: 10px;
    font-size: 0.95em;
    color: #aee0ff;
    background-color: rgba(0, 170, 255, 0.08);
    border-radius: 6px;
    padding: 6px 10px;
    display: inline-block;
    max-width: 90%;
    word-wrap: break-word;
}

/* Remove button */
.remove-btn {
    display: block;
    margin-top: 10px;
    color: #ff7777;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.15s;
}

.remove-btn:hover {
    color: #ff4444;
}

/* Add Clock Form */
.add-form {
    text-align: center;
    margin: 10px auto 0 auto;
    background: #1b2a3a;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #223b55;
    width: fit-content;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.add-form select, 
.add-form button {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    margin: 5px;
    font-size: 1em;
}

.add-form button {
    background-color: #00aaff;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.add-form button:hover {
    background-color: #007acc;
}

/* Radio-style bottom clock */
#radioClock {
    background-color: #1b2a3a;
    border-top: 1px solid #223b55;
    color: #00aaff;
    text-align: center;
    padding: 15px 10px;
    font-size: 1.4em;
    font-weight: 500;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
}

#radioDate {
    color: #ccc;
    font-size: 0.9em;
    margin-top: 3px;
}

/* Scrollbar styling for clock area */
#clockArea::-webkit-scrollbar {
    width: 8px;
}
#clockArea::-webkit-scrollbar-thumb {
    background: #00aaff;
    border-radius: 4px;
}
#clockArea::-webkit-scrollbar-track {
    background: #0e1b2b;
}

/* Responsive scaling */
@media (max-width: 768px) {
    .clock .time {
        font-size: 6vw;
    }
    .clock .zone {
        font-size: 4.8vw;
    }
    .clock .date {
        font-size: 2vw;
    }
    .weather {
        font-size: 1em;
    }
}
.metar-card {
  font-size: 0.9rem;
  color: #ccc;
  background: rgba(0,0,0,0.25);
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1.5;
}
.metar-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 3px;
}
.metar-small {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}
.flightcat {
  font-weight: bold;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

