@font-face {
    font-family: tilda;
    src: url(fonts/TildaSans-VF_TTF_Web/TildaSans-VF.ttf);
}

body{
    margin: 0 auto;
}

header {
    background: black;
    background-size: 100%;
    height: 100px;
    background-repeat: no-repeat;
}

a {
    font-family: tilda;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.container{
    width: 1400px;
    margin: 0 auto;
}

/*___________________________________________________________*/

.menu {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding-top: 40px;
}

.menu__left, .menu__right {
    display: flex;
    gap: 50px; 
}

.menu__left {
    justify-content: flex-start; 
}

.menu__right {
    justify-content: flex-end;
}

.menu__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu__center a img {
    width: 80px;
}

.menu__user {
    position: relative;
    display: inline-block;
}

.menu__userName {
    color: white;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: tilda;
    font-size: 18px;
}

.menu__userName:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu__userDropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}

.menu__userDropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-family: tilda;
    font-size: 16px;
    transition: background-color 0.3s;
}

.menu__userDropdown a:hover {
    background-color: #f8f9fa;
    color: #000;
}

.menu__userDropdown a:last-child {
    border-bottom: none;
}

.menu__user:hover .menu__userDropdown {
    display: block;
}

/*___________________________________________________________*/

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal__content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal__title {
    font-family: tilda;
    font-size: 24px;
    font-weight: 700;
    color: black;
    margin: 0;
}

.modal__close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: black;
    background: none;
    border: none;
}

.modal__close:hover {
    color: #666;
}

.modal__formGroup {
    margin-bottom: 20px;
}

.modal__formLabel {
    display: block;
    margin-bottom: 8px;
    font-family: tilda;
    font-size: 16px;
    font-weight: 600;
    color: black;
}

.modal__formInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: tilda;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.modal__formInput:focus {
    outline: none;
    border-color: #007bff;
}

.modal__formActions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    justify-content: center;
}

.modal__adminBtn--cancel,
.modal__adminBtn--save {
    padding: 12px 80px;
    border: none;
    border-radius: 8px;
    font-family: tilda;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__adminBtn--cancel {
    background: black;
    color: white;
}

.modal__adminBtn--cancel:hover {
    background: #5a6268;
}

.modal__adminBtn--save {
    background: black;
    color: white;
}

.modal__adminBtn--save:hover {
    background: #5a6268;
}

.modal__authSwitch {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal__authSwitch a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.modal__authSwitch a:hover {
    text-decoration: underline;
}

.modal__message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    font-family: tilda;
    font-size: 14px;
    text-align: center;
    border: 1px solid transparent;
}

.modal__message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.modal__message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
