/* --- Общие стили --- */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../background.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

body > * {
    background-color: rgba(0, 0, 0, 0.65);
    padding: 20px;
    margin: 20px auto;
    max-width: 960px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

th, td {
    border: 1px solid #555;
    padding: 10px;
    text-align: center;
    background-color: rgba(0,0,0,0.4);
}

th {
    background-color: rgba(0, 123, 255, 0.8);
}

/* --- Навигация --- */
nav {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a,
nav ul li form button {
    color: #fff;
    font-weight: 700;
    background-color: rgba(0, 123, 255, 0.8);
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

nav ul li a:hover,
nav ul li form button:hover {
    background-color: rgba(0, 86, 179, 0.9);
}

nav ul li form {
    margin: 0;
}

nav ul li form button {
    font-size: 1em;
}

/* --- Формы --- */
form {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: 600;
}

form input[type="text"],
form input[type="date"],
form input[type="time"],
form input[type="number"],
form select {
    flex-grow: 1;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    height: 40px;
}

/* Поле пароля */
#password {
    width: 100%;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    height: 40px;
}

/* --- Кнопки и ссылки --- */
form input[type="submit"],
form a.button-like,
a.button-like {
    color: #fff;
    background-color: #007BFF;
    padding: 0 18px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

form input[type="submit"]:hover,
form a.button-like:hover,
a.button-like:hover {
    background-color: #0056b3;
}

/* --- Логотипы и хедер --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.header-logo {
    display: block;
    margin: 0;
    padding: 0;
}

.header-logo img {
    height: 30px;
    width: auto;
    margin-left: 10px;
}

.corner-logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

.corner-logo img {
    height: 50px;
    width: auto;
    border-radius: 5px;
}

body {
    padding-top: 60px;
}
/* for menu (add form)*/
.admin-form {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.7);
}

.admin-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

.admin-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-form form label {
    margin-bottom: 5px;
    font-weight: 600;
}

.admin-form form input[type="text"],
.admin-form form input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    background-color: rgba(255,255,255,0.9);
    color: #000;
}
.admin-form p {
    color: #ff6961;
    text-align: center;
    font-weight: 600;
}

/* Если юзер сделал бронь*/
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}
/* --- Форма логина --- */
.login-container {
    background-color: rgba(0, 0, 0, 0.65);
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-container form label {
    font-weight: 600;
    color: #fff;
}

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

.login-container form input[type="text"],
.login-container form input[type="password"] {
    background-color: rgba(255,255,255,0.9);
    color: #000;
}
.login-container form input[type="submit"]:hover {
    background-color: #0056b3;
}
.login-container form input[type="submit"] {
    background-color: #007BFF;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    text-align: center;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    box-sizing: border-box;
}