body {
    background-color: #e8e8e8;
}

nav, #sidebar, #hm {
    background-color: white;
}

#sidebar, #hm {
    padding: 15px;
    border-radius: 10px;
}

#sidebar {
    height: 75vh;
}

#search {
    border-radius: 10px 0px 0px 10px;
    border: 0px;
    width: 30vw;
    padding-left: 5px;
}

#filter {
    width: 150px;
    height: 35px;
    border-radius: 0px 10px 10px 0px;
    border: 0px;
}

#nameShop {
    gap: 10px;
}

h1 {
    display: flex;
    justify-content: center;
}

main {
    display: flex;
    justify-content: center;
    gap: 100px;
}

main h3 {
    margin-top: 15px;
}

header {
    display: flex;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    height: 100px;
}

#hm {
    display: flex;
    gap: 50px;
    width: 75vw;
}

#sidebar button, .addButton {
    height: 45px;
    width: 10vw;
    font-size: 1em;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #333333;
    border: none;
    color: white;
    border-radius: 10px;
    margin-right: 10px;
}

.addButton {
    margin-top: 5px;
}

input {
    width: 15vw;
    height: 5vh;
}

select {
    width: 15vw;
    height: 5vh;
}

.settings-panel {
    display: none;
    flex-direction: column;
}

.settings-panel.active {
    display: flex;
}

.settings-tab.active {
    background-color: #2C97F2 !important;
}

#tab-workers {
    gap: 10px;
}

.worker-form {
    align-items: center;
    margin-bottom: 20px;
}

#workersList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.worker-card {
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: #f2f2f2;
}

.worker-card input,
.worker-card select {
    width: 100%;
}

.worker-card button {
    background-color: #333333;
    color: white;
    border: 1px solid black;
    height: 4vh;
    border-radius: 5px;
}

.worker-actions {
    display: flex;
    gap: 8px;
}

.worker-actions button {
    width: auto !important;
    min-width: 100px;
    margin-top: 5px;
}

.device-form {
    align-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
}

.device-form input {
    width: 22vw !important;
}

#devicesList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f2f2f2;
    width: 100%;
    max-width: 700px;
}

.device-name {
    font-size: 16px;
}

.delete-device-button, .delete-status-button {
    width: auto !important;
    min-width: 120px;
    background-color: #333333;
    color: white;
    border: 1px solid black;
    height: 4vh;
    border-radius: 5px;
}

.status-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    margin-left: 10px;
}

#statusesList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f2f2f2;
    width: 100%;
    max-width: 700px;
}

.status-name {
    font-size: 16px;
}

.delete-status-button {
    width: auto !important;
    min-width: 120px;
}

#hm {
    align-items: flex-start;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #1162b1;
    font-weight: 600;
    width: fit-content;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 900px;
}

.admin-stat {
    background: #f2f2f2;
    padding: 16px;
    border-radius: 14px;
}

.admin-stat p {
    margin: 0 0 8px;
    color: #666;
}

.admin-stat h3 {
    margin: 0;
    font-size: 28px;
}

.panel-block {
    width: 100%;
    max-width: 900px;
    margin-bottom: 28px;
}

.panel-block h3,
.panel-block h4 {
    margin-bottom: 10px;
}

.panel-block p {
    margin-bottom: 6px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    max-width: 900px;
}

.company-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.company-grid input {
    width: 100%;
}

.hint {
    color: #666;
    margin-top: 0;
}

.status-card,
.device-card,
.log-card {
    max-width: 900px;
}

.log-card {
    background: #f2f2f2;
    border-radius: 12px;
    padding: 14px;
}

.log-card h4,
.log-card p,
.log-card pre {
    margin: 0 0 8px;
}

.log-card pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    background: white;
    border-radius: 8px;
    padding: 10px;
}

.empty-state {
    color: #666;
    background: #f2f2f2;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
}

#filler {
    display: flex;
    gap: 2vw;
}

.day {
    background-color: #333333;
    color: white;
    border: 1px solid black;
    width: 5vw;
    height: 5vh;
    border-radius: 10px;
}

.day.active {
    background-color: #2C97F2;
    border: 2px solid #66b7ff;
}

#dayDiv {
    display: flex;
    gap: 10px;
}

#dayDiv button {
    margin-top: 10px;
}

#timeDiv input {
    width: 7vw;
}

@media (max-width: 1100px) {
    .admin-grid,
    .company-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .status-form,
    .status-card {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 1100px) {
    .worker-form,
    .worker-card {
        grid-template-columns: 1fr;
    }

    .worker-actions {
        flex-direction: column;
    }

    input,
    select {
        width: 100%;
    }
}

.settings-tab {
    transition: all 0.2s ease;
}

.settings-tab:hover {
    transform: translateX(5px);
}