body {
    text-align: center;
    background-size: 400px 200px;
    background-repeat: no-repeat;
    background-position: center 80px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content {
    position: absolute;
    width: 100vw;
    max-height: calc(100vh - 275px);
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 1vh;
    margin-top: 80px;
}

.notes {
    font-size: 1.1em;
}

.controls-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

select, input {
    background: var(--bg-light);
    color: var(--text-white);
    border: 1px solid var(--text-white);
    padding: 8px;
    border-radius: 4px;
}

input[type="text"] {
    border: 1px solid var(--text-white);
}

input[type="number"] {
    border: 1px solid var(--text-white);
    width: 50px;
}

.card:has(table) {
    height: 25%;
    display: flex;
    justify-content: center;
    padding: 10px;
}

table {
    border-collapse: collapse;
    border-spacing: 0px;
    width: 100%;
    max-width: 800px;
}

tbody {
    height: 50%;
}

td, th {
    border: 1px solid var(--text-white);
    padding: 10px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
}

#checkbox-container {
    padding: 10px;
    background: var(--bg-light);
    border: 1px solid var(--text-white);
    border-radius: 8px;
    display: inline-block;
}

.note-check {
    margin-right: 10px;
    accent-color: var(--accent-blue);
}

form {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

#grid {
    width: 100%;
    height: auto;
}

.card:has(#grid) {
    width: 95%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
}

@media (max-width: 900px), (max-device-width: 900px) {
    html::before {
        content: "⚠️ Warning: This page is not optimized for small screens.";
        display: block;
        position: fixed;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--accent-red);
        color: var(--text-dark);
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: bold;
        z-index: 9999;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        text-align: center;
        width: 80%;
        max-width: 300px;
        pointer-events: none;
        zoom: 250%;
    }
}