* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f7ff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.body-content {
    display: flex;
    align-items: top;
    padding-top: 70px;
    height: 100%;
}

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #d3d3d3;
    width: 100%;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    color: #4a90e2;
}

.user-area {
    display: flex;
    align-items: center;
}

.user-info {
    color: #666;
    margin-right: 20px;
}

.logout-btn {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #e74c3c;
}

.error-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    color: red;
    text-align: center;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-top: 55%;
    max-height: 380px;
    width: 100%;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a90e2;
}

.login-container label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.login-container input[type="submit"]:hover {
    background-color: #357abd;
}

.login-container .forgot-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.login-container .forgot-password:hover {
    text-decoration: underline;
}

h2 {
    text-align: center;
}

.container {
    display: flex;
    min-width: 800px;
    margin-right: 10px;
    margin-left: 10px;
    flex-direction: column;
    justify-content: start;
    font-size: 0.9em;
    color: #333;
}

.form-container {
    position: relative;
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.lunch-container {
    background-color: #ffffff;
    padding: 15px;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    height: 100%;
    text-align: left;
    font-size: 0.9em;
    color: #333;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-container {
    background-color: #ffffff;
    padding: 15px;
    margin-bottom: 55px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    height: 100%;
    text-align: left;
    font-size: 0.9em;
    color: #333;
}

.admin-menu-items {
    display: flex;
    justify-content: space-around;
    background-color: #f0f7ff;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.lunch-block-menu-items {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    background-color: #f0f7ff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.lunch-block-item-btn {
    background-color: #f0f7ff;
    color: #4a90e2;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lunch-block-item-btn-selected {
    background-color: #f0f7ff;
    color: #4a90e2;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: underline;
}

.lunch-block-item-btn:hover {
    background-color: #f0f7ff;
    color: #0b6de0;
}

.lunch-block-item-btn-selected:hover {
    background-color: #f0f7ff;
    color: #0b6de0;
    text-decoration: underline;
}

.lunch-container h2 {
    color: #4a90e2;
    margin-bottom: 10px;
}

.lunch-container p {
    margin: 5px 0;
}

.admin-container h2 {
    color: #4a90e2;
    margin-bottom: 10px;
}

.help-text {
    display: flex;
    padding: 10px 10px 10px 0px;
    flex-direction: column;
    color: #333;
}

.date-select {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    padding: 0;
    appearance: none;
    margin-left: 5px;
    max-width: 250px;
    width: auto;
}

.date-select:focus {
    outline: none;
    border-bottom: 1px solid #4a90e2; /* Подчеркивание при фокусе */
}

.date-select option {
    color: #333; /* Цвет текста для опций */
}

.select-dish {
    margin: 10px 0px 20px;
    display: flex;
    justify-content: space-between;
}

.input-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0px 20px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.input-container-small input {
    width: 100%;
    padding: 5px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.cancel-button {
    position: absolute;
    max-width: 90px;
    width: auto;
    top: 20px;
    right: 20px;
    display: inline-block;
    background-color: white;
    color: #e74c3c;
    border: 2px solid #f29f96;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cancel-button:hover {
    background-color: #f29f96;
    color: white
}

.dish-option input {
    display: none;
}

.dish-option .button-label {
    background-color: #f0f7ff;
    border: 2px solid #4a90e2;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 15px;
    transition: background-color 0.3s ease;
    color: #4a90e2;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dish-option .button-label:hover {
    background-color: #e6f0ff;
}

.dish-option input:checked + .button-label {
    background-color: #4a90e2;
    color: white;
}

.dish-value-disabled {
    color: #A9A9A9;
}

.two-selects {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.radio-toggle {
    display: flex;
    justify-content: left;
    margin-left: 15px;
    padding-top: 10px;
    align-items: flex-start;
}

.radio-toggle input[type="radio"] {
    display: none;
}

.radio-button {
    background-color: #f0f7ff;
    border: 2px solid #4a90e2;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    color: #4a90e2;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-right: 10px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.radio-button:last-child {
    margin-right: 0;
}

input[type="radio"]:checked + .radio-button {
    background-color: #4a90e2;
    color: white;
}

.radio-button:hover {
    background-color: #d3e5ff;
    color: #4a90e2;
}

.select-second-dish {
    margin-top: 10px;
    margin-bottom: 5px;
}


input:checked + .slider {
    background-color: #4a90e2;
}

input:checked + .slider:before {
    transform: translateX(26px);
}


h1 {
    font-size: 1.5em;
    color: #4a90e2;
    text-align: center;
    margin-bottom: 20px;
}

label {
    color: #666;
}

select, button {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    background-color: #f9f9f9;
    font-size: 1em;
    outline: none;
    transition: background-color 0.3s ease;
}

select:focus, button:hover {
    background-color: #e6f0ff;
}

button {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #357ab7;
}

select option {
    color: #333;
}

footer {
    background-color: #ffffff;
    border-top: 1px solid #d3d3d3;
    text-align: center;
    padding: 10px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 0.8em;
    color: #999;
}


.table-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.table-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a90e2;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 10px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.btn-create {
    max-width: 100px;
    padding: 10px;
    background-color: #4a90e2;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.btn-create:hover {
    background-color: #357abd;
}

.btn-update {
    max-width: 100px;
    padding: 10px;
    background-color: white;
    color: #4a90e2;
    border-radius: 5px;
    border: 1px solid #4a90e2;
    transition: background-color 0.3s;
}
.btn-update:hover {
    background-color: #357abd;
}

table th {
    background-color: #f0f7ff;
    color: #333;
    font-weight: bold;
}

table tr:hover {
    background-color: #f9f9f9;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

table .action-button {
    max-width: 40px;
    display: inline-block;
    padding: 3px;
    background-color: #f0f7ff;
    border: 1px solid #f0f7ff;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

table .action-button:hover {
    background-color: #d1d5da;
    color: #333;
}

.highlight-row {
    background-color: #e3fbe3;
}

.admin-checkbox {
    margin: 10px;
}

.error-message {
    color: #ff6b6b;
    font-weight: bold;
}
.success-message {
    color: green;
    font-weight: bold;
}

.pagination-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.page-button {
    padding: 3px;
    margin: 5px;
    height: 30px;
    max-width: 100px;
    color: #4a90e2;
    background-color: #fff;
    border: 1px solid #4a90e2;
    border-radius: 5px;
}

.next-page-button {
    padding: 3px;
    margin: 5px;
    max-width: 50px;
    height: 30px;
    color: #4a90e2;
    background-color: #fff;
    border: 1px solid #4a90e2;
    border-radius: 5px;
}

@media (max-height: 750px) {

    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    label {
        font-size: 14px;
    }

    select,
    input {
        padding: 6px;
        font-size: 14px;
    }

    .select-dish {
        gap: 8px;
    }

    .lunch-container {
        padding: 10px 20px;
    }

    .order-header {
        margin-bottom: 10px;
    }

    button {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-height: 620px) {

    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .select-dish {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-toggle {
        margin-top: 5px;
    }

    form {
        display: grid;
        gap: 8px;
    }
}

#orderForm {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}