html {
    height: 100%;
    width: 100%;
}

body {
    background-color: black;
    color: #FFFFFF;
    font-family: Hack, monospace;
    padding: 20px;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

/* Text Input & Labels */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    background-color: #1a1a1a;
    color: #FFFFFF;
    border: 1px solid #333;
    padding: 8px;
    margin-bottom: 10px;
    font-family: Hack, monospace;
    font-size: 1em;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff7800;
    box-shadow: 0 0 5px rgba(255, 120, 0, 0.5);
}

input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Fieldsets */
fieldset {
    border: 1px solid #333;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #ff7800;
}

/* Select Dropdowns */
select.small {
    width: auto;
}

/* Status & Output Display */
#sync {
    font-family: Hack, monospace;
    font-size: 1.5em;
    margin-top: 15px;
    padding: 15px;
    background-color: #1a1a1a;
    border-left: 4px solid #ff7800;
    min-height: 30px;
    letter-spacing: 1px;
}

#afsk {
    margin: 20px 0;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    min-height: 50px;
}

#output {
    font-family: Hack, monospace;
    margin-top: 15px;
    padding: 15px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95em;
    line-height: 1.8;
}

/* Modal Styles */
.modalContainer {
    left: 0px;
    top: 0px;
    z-index: 999;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modalBox {
    z-index: 1000;
    font-family: Hack, monospace;
    padding: 20px;
    background-color: #0e0e0e;
    border: 2px solid #ff7800;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(255, 120, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modalContent {
    padding: 20px;
}

.modalClose {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1001;
    color: #FFFFFF;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modalClose:hover {
    color: #ff7800;
}

.modalTitle {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 28px;
    user-select: none;
    color: #ff7800;
    font-weight: bold;
}

.modalInfo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modalInfo>div {
    padding: 10px;
    background-color: #1a1a1a;
    border-left: 3px solid #ff7800;
    border-radius: 2px;
}

/* Alert Colors */
.watch {
    color: #ff7800;
    font-weight: bold;
}

.warning {
    color: #ff0000;
    font-weight: bold;
}

.unknown-alert {
    color: #ffff00;
    font-weight: bold;
}

.info {
    font-size: 1.1em;
    color: #FFFFFF;
}

/* Buttons */
button {
    background-color: #ff7800;
    color: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    font-family: Hack, monospace;
    transition: background-color 0.2s, transform 0.1s;
    margin-right: 10px;
    margin-bottom: 10px;
}

button:hover {
    background-color: #ff9500;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

.control-panel {
    margin: 25px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Tables */
table {
    border-collapse: collapse;
    border: 1px solid #333;
    font-size: 1.04em;
    width: 100%;
    margin: 20px 0;
}

table th {
    border: 1px solid #333;
    padding: 10px;
    background-color: #1a1a1a;
    text-align: left;
    color: #ff7800;
    font-weight: bold;
}

table td {
    border: 1px solid #333;
    padding: 8px 10px;
}

table tbody tr:hover {
    background-color: #1a1a1a;
}

.title {
    font-weight: bold;
    color: #ff7800;
}

.entry {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s;
}

.entry:hover {
    background-color: #2a2a2a;
}

/* Misc */
#samediv {
    margin-top: 20px;
}

textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9em;
    color: #888;
}

footer a {
    color: #ff7800;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}