/* === Globalne Style === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: black;
    color: #33ff33;
    font-family: 'Courier New', monospace;
    /* text-shadow: 0 0 5px #33ff33; */
}

#maintenance-overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: black;
    color: #33ff33;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    z-index: 9999;
    text-align: center;
    padding: 20px;
    box-shadow: inset 0 0 15px #0f0;
}

.maintenance-message {
    font-size: 1.1em;
    line-height: 1.6;
    border: 1px dashed #33ff33;
    padding: 20px;
    background-color: #111;
    max-width: 700px;
}
.terminal {
    display: flex;
    flex-direction: column;
    border: 2px solid #33ff33;
    box-shadow: 0 0 10px #33ff33;
    position: relative;
    overflow-y: auto;
    background-color: #111;
    height: 90vh;
    width: 90vw;
    max-width: 800px;
    overflow: auto;
}

#loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

#loading-container .loading-text {
    min-width: 50%;
}

#loading-container .progress-bar {
    width: 0%;
    height: 10px;
    background-color: #0f0;
    transition: width 0.5s;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.main-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-grow: 1;
}

.sys-status-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-section {
    margin: auto;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    /* background-color: #111; */
    border: 1px solid #0f0;
}

@media (max-width: 768px) {
    .login-section {
        width: 100%;
    }
}



/* === Styl napisów przyklejonych do ramki === */
.section-label {
    position: absolute;
    top: -12px;
    left: 15px;
    padding: 2px 8px;
    background-color: black;
    color: #0f0;
    border: 1px solid #0f0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
}

/* === Formularze === */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    background-color: #111;
    border: 1px solid #0f0;
    position: relative;
}

form h2 {
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    font-size: 18px;
}

label {
    margin-top: 10px;
    text-align: left;
}

input,
select,
textarea {
    background-color: #222;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    margin-top: 5px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0f0;
    box-shadow: none;
}

textarea {
    resize: none;
}

button {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #0f0;
    background: #0f0;
    color: black;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #080;
    color: #0f0;
}

/* === Data Picker Icon Styling === */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(100%) sepia(100%) hue-rotate(90deg) brightness(0.7);
}

/* === Status Bar === */


#datetime,
#sync {
    font-size: 14px;
}

/* === Task Section === */
#task-content {
    padding: 10px 15px;
    border: 1px solid #0f0;
    background-color: #111;
    position: relative;
}

#task-description {
    margin-top: 10px;
}

/* === Radio Station Section === */
#radio-name {
    margin-top: 15px;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    color: #0f0;
}

#radio-image {
    margin-top: 10px;
    max-width: 120px;
    display: block;
    margin: 10px auto;
}

.hidden {
    display: none !important;
}

.confirmation-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirmation-container .confirmation-button-container {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.confirmation-container .confirmation-button-container button {
    flex-grow: 1;
}

.feedback-container {
    background-color: #111;
    border: 1px solid #0f0;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#forms-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

#confirmation-screen {
    background-color: #111;
    border: 1px solid #0f0;
    padding: 15px;
    margin-top: 20px;
    position: relative;
    white-space: pre-wrap;
}

.input-error {
    border-color: red !important;
    box-shadow: 0 0 5px red;
}

#submit-all {
    margin-top: -10px;
}

.status-log-container {
    position: relative;
    border: 1px dashed #0f0;
    background-color: #000;
    padding: 10px;
}

.status-log {
    margin-top: 5px;
    font-size: 14px;
    height: 60px;
    overflow: auto;
    color: #0f0;
}

.log-entry {
    display: flex;
    gap: 15px;
    line-height: 20px;
}

#solution-form,
#report-form {
    padding: 20px 15px;
}
