@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
* {
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    border-style: none;
}

body {
    background-color: #212638;
    margin: 0;
    padding: 0;
}

.bg_image {
    overflow: hidden;
    opacity: 0.1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -5;
    background-repeat: no-repeat;
}

.common-title-1 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    margin-left: 2rem;
    margin-right: 2rem;
    color: #ffffff;
    text-align: center;
}

.hide {
    display: none;
}

/* --- */
/* Form container with dark border */
.form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1rem;
    border: 1px solid #212638;
    border-radius: 4px;
    background: #ffffff;
    color: #212638;
}

.form-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #212638;
}

/* Wrapper for each field */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

/* Labels and legends */
.form-group label,
fieldset legend {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #212638;
}

/* Input, select, textarea */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid #212638;
    border-radius: 3px;
    font-size: 1rem;
    background: #ffffff;
    color: #212638;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #212638;
    box-shadow: 0 0 0 1px #212638;
}

/* Fieldset styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1rem;
}

fieldset label {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    margin-right: 1rem;
    cursor: pointer;
    color: #212638;
}

fieldset input[type="radio"],
fieldset input[type="checkbox"] {
    margin-right: 0.25rem;
    accent-color: #212638;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #212638;
    border-radius: 3px;
    background: #ffffff;
    color: #212638;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.btn:hover {
    background-color: #212638;
    color: #ffffff;
}

.btn[type="reset"] {
    opacity: 0.7;
}

.btn[type="reset"]:hover {
    background-color: #212638;
    color: #ffffff;
    opacity: 1;
}

/* Ошибки */
.error-message {
    color: #f44336; /* Красный цвет для ошибок */
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Подсветка поля при ошибке */
.form-group input:invalid {
    border-color: #f44336;
    box-shadow: 0 0 0 1px #f44336;
}

/* helps */
.form-help-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: white;
    position: absolute;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-help-results-option {
    padding: 10px;
    cursor: pointer;
}

.form-help-results-option:hover {
    background-color: #f0f0f0;
}

.form-help-no-results {
    padding: 10px;
    color: gray;
}
/* Form container with dark border */
/* --- */


/* --- */
/* NAV MENU */

/* Base reset */
.nav {
    background-color: #000;
    color: #fff;
    height: 5vh;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    height: 100%;
}

.logo {
    max-height: 30px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    list-style-type: none;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    transition: 0.3s ease;
}

.nav-menu a:hover {
    color: #ccc;
}

.submenu {
    display: none;
    position: absolute;
    background: #000;
    top: 100%;
    left: 0;
    min-width: 150px;
    padding: 0.5rem 0;
    z-index: 10;
}

.has-submenu:hover .submenu {
    display: block;
}

.login-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    /*font-weight: bold;*/
    cursor: pointer;
}

.login-btn:hover {
    background: #ccc;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #000;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        text-align: left;
    }

    .has-submenu .submenu {
        position: static;
    }
}
/* NAV MENU */
/* --- */


/* --- */
/* btn bar */
.button-bar {
    display: flex;
    justify-content: start;
    gap: 15px;
    align-items: center;
    padding: 10px;
}

.button-bar-btn {
    padding: 10px 20px;
    font-size: 1rem;

    /*width: 200px;*/
    /*height: 40px;*/
    background: #2e334b;
    color: #ffffff;
    border: 1px solid #fff;
    transition: 0.3s ease;
}

.button-bar-btn:hover {
    background: #ffffff;
    color: #2e334b;
}

.button-bar-btn:focus {
    outline: none;
}
/* btn bar */
/* --- */


/* --- */
/* pop up */

/* Popup container */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;  /* Убедитесь, что попап на переднем плане */
}

/* Popup content */
.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;  /* Для позиционирования кнопки закрытия относительно попапа */
}

/* Close button */
.close-btn {
    position: absolute;  /* Позиционируем кнопку внутри попапа */
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1010; /* Обеспечиваем, чтобы кнопка была наверху */
}

/* Fade-in effect */
.popup-container.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* popup */
/* --- */


/* --- */
/* table */
.common-table-container {
    margin-left: 2rem;
    margin-right: 2rem;
}

.common-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.common-table th, .common-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.common-table th {
    background-color: #f7f7f7;
    color: #212638;
    font-weight: bold;
}

.common-table tbody tr {
    background-color: #ffffff;
}

.common-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.common-table td input[type="checkbox"] {
    margin: 0;
}
/* table */
/* --- */


/* --- */
/* loader */
.loader-wrapper {
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ffffff;
    opacity: 0.66;
    justify-content: center;
    align-items: center;
}
.loader {
    width: 45px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(#000 0 0);
    background:
            var(--c) 0%   50%,
            var(--c) 50%  50%,
            var(--c) 100% 50%;
    background-size: 20% 100%;
    animation: l1 1s infinite linear;
}
@keyframes l1 {
    0%  {background-size: 20% 100%,20% 100%,20% 100%}
    33% {background-size: 20% 10% ,20% 100%,20% 100%}
    50% {background-size: 20% 100%,20% 10% ,20% 100%}
    66% {background-size: 20% 100%,20% 100%,20% 10% }
    100%{background-size: 20% 100%,20% 100%,20% 100%}
}
/* loader */
/* --- */
