/* --- ОБЩИЕ СТИЛИ --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    padding-top: 54px;
}

.container {
    width: 100%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background: #0056b3;
}

/* --- ФОРМА АВТОРИЗАЦИИ --- */
form {
    margin: auto;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form input,
form select {
    width: 60%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}


/* Общий контейнер формы */
.login-container {
    max-width: 400px; /* Ограничиваем ширину */
    width: 100%; /* Делаем адаптивным */
    margin: 0 auto; /* Центрируем */
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Поля формы */
.login-container input[type="text"]{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Учитываем padding в ширине */
    margin-top: 5px;
    margin-bottom: 15px;
}
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Учитываем padding в ширине */
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Кнопка */
.login-container .btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.login-container .btn:hover {
    background: #0056b3;
}

/* Для маленьких экранов */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 15px;
    }
}




/* --- ТАБЛИЦА С ЗАЯВКАМИ --- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.table th {
    background: #007bff;
    color: white;
}

/* --- АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ --- */
@media (max-width: 768px) {
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/*--- Шапка ---*/

/* Основной navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007bff;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Чтобы было поверх всего */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
/*    display: flex
;
    justify-content: space-between;
    align-items: center;
    background-color: #007bff;
    padding: 10px 20px;
    color: white;
    font-size: 16px;*/


/* Ссылки */
.navbar a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
    width: 100%;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.right-links {
    display: flex;
    align-items: center;
    gap: 15px; /* Отступ между ссылками */
    margin-left: auto; /* Двигает вправо */
    white-space: nowrap; /* Чтобы не переносилось */
}

.right-links a {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.right-links a:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Бургер-меню (кнопка слева) */
.burger-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    margin-right: auto; /* Двигаем влево */
}

/* Выезжающее меню */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* По умолчанию скрыто */
    width: 250px;
    height: 100%;
    background-color: #007bff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 2000; /* Поверх всего контента */
}

.sidebar a {
    color: white;
    padding: 15px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background 0.3s;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Когда меню открыто */
.sidebar.open {
    left: 0;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }
}

