/* ========================
   BASE STYLES - ALLE APPARATEN
   ======================== */

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

:root {
    --bg-color: black;
    --text-color: lightyellow;
    --font-family: Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ========================
   LAYOUT COMPONENTS
   ======================== */

.header {
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    justify-content: center;
    padding: 5px 10px; /* Reduced top padding */
    padding-top: 8px; /* Extra controle over top padding */
}

.header h1 {
    text-align: center;
    line-height: 1.2;
    max-height: 100%;
    overflow: hidden;
    margin-top: 0; /* Ensure no extra margin */
}

.main-content {
    width: 100%;
    display: flex;
    position: relative;
}

.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: space-between;
}

.year-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.year {
    font-weight: bold;
    margin-bottom: 5px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    justify-content: center;
    margin-bottom: 40px;
}

.bottom-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.station {
    font-weight: bold;
    color: red;
    margin-bottom: 55px;
}

.clock {
    font-weight: bold;
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.left-column {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

/* ========================
   IMAGES
   ======================== */

.image-container {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.image-container img.active {
    display: block;
}

.image-container img#image3.active {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ========================
   BUTTONS
   ======================== */

.control-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 8px 16px;
    font-family: var(--font-family);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn:active {
    transform: scale(0.95);
}

/* ========================
   CONFIG PANEL
   ======================== */

.config-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.config-overlay.show {
    display: flex;
}

.config-panel {
    background-color: var(--bg-color);
    border: 3px solid var(--text-color);
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-color);
}

.config-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 10px;
}

.config-section {
    margin-bottom: 25px;
}

.config-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.config-group {
    margin-bottom: 15px;
}

.config-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.config-select, .config-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--text-color);
    border-radius: 5px;
    font-family: var(--font-family);
}

.config-select:focus, .config-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 5px rgba(78, 205, 196, 0.3);
}

.config-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.config-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #4ecdc4;
}

.config-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.config-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 12px 24px;
    font-size: 14px;
    font-family: var(--font-family);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.config-btn.primary {
    background-color: #4ecdc4;
    color: var(--bg-color);
    border-color: #4ecdc4;
}

.config-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.config-btn.primary:hover {
    background-color: #3ba89e;
    border-color: #3ba89e;
}

/* ========================
   STATUS MESSAGES
   ======================== */

.status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--text-color);
    border-radius: 5px;
    font-size: 12px;
    z-index: 999;
    display: none;
}

.status-indicator.show {
    display: block;
}

.status-indicator.success {
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.status-indicator.error {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin: 20px;
}

.loading {
    color: #4ecdc4;
    text-align: center;
    margin: 20px;
}