body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background-color: #222;

    background-image: url("/static/background.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    background-size: cover;

    color: white;
    text-align: center;
}

.topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 12px 20px;
    font-size: 4.8rem;
    font-weight: bold;
    min-height: 72px;
    box-sizing: border-box;
    color: black;
}

.main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 10px;
    padding-bottom: 10px;
}

.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bigbutton {
    width: 80vw;
    max-width: 65vw;
    min-width: 60vw;
    height: 21vh;
    font-size: 5.8rem;
    backdrop-filter: none;
    font-weight: bold;
    border: none;
    border-radius: 22px;
    color: white;
    cursor: pointer;
}

.start {
    background: #2ecc71;
}

.break {
    background: #f39c12;
}

.stop {
    background: #e74c3c;
}

.admin,
.pin {
    width: 13vw;
    min-width: 150px;
    height: 17vh;
    font-size: 2.4rem;
    font-weight: bold;
    border: none;
    border-radius: 14px;
    background: #3498db;
    color: white;
    cursor: pointer;
}
.input-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1vh;
    padding-bottom: 1vh;
    box-sizing: border-box;
}

.input-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 1vh;
    color: black;
    line-height: 1.1;
}

.display-box {
    width: 22vw;
    min-width: 220px;
    height: 9vh;
    min-height: 72px;
    background: rgba(255, 255, 255, 0.85);
    color: black;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.8rem;
    font-weight: bold;
    margin-bottom: 1.5vh;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 12vw);
    gap: 1vh 1vw;
    justify-content: center;
}

.key {
    height: 9vh;
    min-height: 68px;
    font-size: 2.8rem;
    font-weight: bold;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: black;
    cursor: pointer;
}

.key-action {
    background: #3498db;
    color: white;
}

.bottom-actions {
    margin-top: 1.5vh;
}

.back-button {
    width: 12vw;
    min-width: 150px;
    height: 6.5vh;
    min-height: 52px;
    font-size: 1.6rem;
    font-weight: bold;
    border: none;
    border-radius: 14px;
    background: #666;
    color: white;
    cursor: pointer;
}

.workplace-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vh 2vw;
    width: 90vw;
    max-width: 1400px;
}

.workplace-button {
    width: 100%;
    height: 18vh;
    min-height: 120px;
    font-size: 3rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}

.workplace-button.home {
    background: #2ecc71;
}

.workplace-button.other {
    background: #3498db;
}
.sub-topbar {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
    padding: 10px 18px;
    min-height: 64px;
    box-sizing: border-box;
}

.topbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 3.2rem;
    font-weight: bold;
    color: black;
    line-height: 1.1;
}

.topbar-spacer {
    width: 180px;
}

.back-arrow {
    width: 150px;
    height: 56px;
    font-size: 1.6rem;
    font-weight: bold;
    border: none;
    border-radius: 16px;
    background: #3498db;
    color: white;
    cursor: pointer;
    justify-self: start;
}
.workplace-button.home {
    background: #2ecc71;
}

.workplace-button.other {
    background: #777;
}

.admin-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2vh 2vw 4vh 2vw;
    box-sizing: border-box;
}

.admin-panel-box {
    width: 94vw;
    max-width: 1600px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    padding: 2vh 2vw;
    box-sizing: border-box;
    color: black;
}

.admin-actions-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2vh;
    flex-wrap: wrap;
}

.admin-action-button {
    min-width: 220px;
    height: 9vh;
    min-height: 70px;
    padding: 0 24px;
    font-size: 2rem;
    font-weight: bold;
    border: none;
    border-radius: 16px;
    background: #3498db;
    color: white;
    cursor: pointer;
}

.admin-action-button.green {
    background: #2ecc71;
}

.admin-action-button.red {
    background: #e74c3c;
}

.admin-action-button.gray {
    background: #666;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.96);
    color: black;
    border-radius: 16px;
    overflow: hidden;
    font-size: 1.4rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ccc;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
}

.admin-table th {
    background: #eaeaea;
    font-size: 1.5rem;
}

.status-working {
    color: #1f8f4d;
    font-weight: bold;
}

.status-break {
    color: #d68910;
    font-weight: bold;
}

.status-stopped {
    color: #555;
    font-weight: bold;
}

.status-inactive {
    color: #c0392b;
    font-weight: bold;
}

.status-never {
    color: #555;
    font-weight: bold;
}

.table-button {
    min-width: 120px;
    height: 55px;
    padding: 0 16px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    margin: 4px;
}

.table-button.edit {
    background: #3498db;
}

.table-button.toggle {
    background: #666;
}

.form-page {
    display: flex;
    justify-content: center;
    padding: 3vh 2vw;
    box-sizing: border-box;
}

.form-box {
    width: 90vw;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    border-radius: 24px;
    padding: 3vh 3vw;
    box-sizing: border-box;
}

.form-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 2vh;
    color: black;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 2vh;
    text-align: left;
}

.form-group label {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.8vh;
}

.form-group input {
    height: 8vh;
    min-height: 65px;
    font-size: 2rem;
    border: none;
    border-radius: 16px;
    padding: 0 20px;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 3vh;
    flex-wrap: wrap;
}

.error-box {
    background: rgba(231, 76, 60, 0.18);
    color: #a82315;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 2vh;
}
.form-group select {
    width: 100%;
    height: 8vh;
    min-height: 65px;
    font-size: 2rem;
    border: none;
    border-radius: 16px;
    padding: 0 20px;
    box-sizing: border-box;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2vh;
}

.stat-card {
    background: rgba(255, 255, 255, 0.96);
    color: black;
    border-radius: 20px;
    padding: 18px 20px;
    text-align: center;
}

.stat-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 2.8rem;
    font-weight: bold;
}

@media (max-width: 1100px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.6);
    padding: 18px 20px;
    border-radius: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.6rem;
    font-weight: bold;
    color: black;
}

.checkbox-item input[type="checkbox"] {
    width: 28px;
    height: 28px;
}