/* Обнуление отступов и коробочной модели */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Базовый стиль для сайта */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Стили для шапки сайта */
header {
    background-color: #f1f1f1;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    font-weight: 500; 
    font-size: 18px;
}

.container-head {
    width: 80%;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-inline-start: 0px;
    margin-block-start: 0em;
    margin-block-end: 0em;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #e0e0e0;
    border-radius: 5px;
}

nav ul li button {
    background-color: #ff4b4b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li button:hover {
    background-color: #ff7777;
}



/* Модальное окно */
.login-modal, .forgot-password-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.5s ease-in-out;
}

.modal-content-forgot-password {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 600px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.5s ease-in-out;
}

.close-btn {
    position: absolute;
    top: 1px; 
    right: 10px; 
    color: #666;
    font-size: 24px;
    cursor: pointer;
}


input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button[type="submit"] {
    background-color: #ff4b4b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #ff7777;
}

.checkbox-container {
    display: inline-block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #ccc;
    border-radius: 4px;
}

.checkbox-container input:checked + .checkmark {
    background-color: #ff4b4b;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked + .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Стили для меток */
label {
    display: block; /* Делает метки блочными элементами */
    text-align: left; /* Выравнивание текста по левому краю */
    margin-bottom: 5px; /* Добавляет отступ снизу для улучшения визуального восприятия */
}

/* Стили для "Забыли пароль?" */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.forgot-password-text{
    align-items: center;
}

.forgot-password-text a{
    color: #ff4b4b;
    text-decoration: none;
    font-size: 14px;
}

.remember-forgot a {
    color: #ff4b4b;
    text-decoration: none;
    font-size: 14px;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

/* Анимация для модального окна */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); }
    to { transform: translateY(0); }
}


/* Красная кнопка "Личный кабинет" */
nav ul li a#profile-button {
    background-color: #ff4b4b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

nav ul li a#profile-button:hover {
    background-color: #ff7777;
}

/* Красная кнопка для загрузки */
.red-button {
    background-color: #ff4b4b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
    width: 100%;
}

.red-button:hover {
    background-color: #ff7777;
}

/* Стили для формы загрузки */
#profile-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

#profile-form.hidden {
    display: none;
}

#upload-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

#upload-form.hidden {
    display: none;
}

#users-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

#users-form.hidden {
    display: none;
}

input[type="file"] {
    margin-top: 10px;
}

/* Удалить класс .hidden из формы при загрузке */
.hidden {
    display: none;
}

.detail-value {
    display: inline;
    font-weight: bold;
    margin-right: 10px;
    
    color: #555;
}

.parent {
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    }
    
    .div1 {
        grid-area: 1 / 1 / 2 / 2;
        background-color: #f8f9fa; /* Светлый нейтральный цвет */
        justify-content: center;
        text-align: center;
        border-radius: 12px;
        min-height: 100%;
        height: 100%;
        min-width: 300px;
        position: relative;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
        padding: 20px;
        border-left: 6px solid #ff4b4b; /* Тонкий яркий акцентный элемент */
    }
    
    .div2 {
        grid-area: 1 / 2 / 2 / 3;
        min-height: 95vh;
        height: 100%;
        background-color: #ffffff; /* Белый цвет для контраста с меню */
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Легкая тень для плавности */
    }
    
    .white-button{
        background-color: #ffffff;
        color: #ff4b4b;
        border: 1px solid #ff4b4b; /* Добавлена рамка для кнопки */
        padding: 12px 24px;
        border-radius: 30px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
        width: 80%;
        margin-bottom: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    }
    
    .white-button:hover, 
    .white-button-exit:hover {
        background-color: #ff4b4b;
        color: white;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Плавное увеличение тени при наведении */
    }
    
    
/* Обертка для стилизации select */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

/* Основной стиль для select */
select {
    appearance: none; /* Убираем стандартный внешний вид */
    background-color: #f1f1f1; /* Цвет фона */
    border: 2px solid #d3d3d3; /* Граница */
    border-radius: 8px; /* Закругленные углы */
    padding: 10px 15px; /* Внутренние отступы */
    font-size: 16px; /* Размер шрифта */
    color: black; /* Цвет текста */
    cursor: pointer; /* Указатель при наведении */
    width: 100%; /* Полная ширина */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Добавляем отступ справа, чтобы поместить стрелку */
    padding-right: 40px;
}

/* Изменение стиля при наведении */
select:hover {
    border-color: #ff4b4b; /* Цвет границы при наведении */
}

/* Изменение стиля при фокусе */
select:focus {
    outline: none; /* Убираем стандартную обводку */
    border-color: #ff4b4b; /* Цвет границы при фокусе */
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); /* Добавляем тень */
}

/* Позиционируем стрелку */
.custom-select-wrapper::after {
    content: '▼'; /* Стрелка */
    font-size: 12px;
    color: #ff4b4b;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Не блокирует клики по select */
}

/* Поддержка Firefox */
select option {
    background-color: #fff; /* Цвет фона опций */
    color: black; /* Цвет текста опций */
}


.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 520px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%), url("../img/main.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
  }
  
  .intro h1 {
    font-family: sans-serif;
    font-size: 60px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
  }
  
  .intro p {
    font-size: 20px;
    color: #d1d1d1;
    text-transform: uppercase;
    margin: 20px 0;
  }
  
  .intro button {
    background-color: #5edaf0;
    color: #000;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.4)
  }
  
  .achievements {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 80px;
  }
  
  .achievements .work {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
  }
  
  .achievements .work i {
    width: fit-content;
    font-size: 50px;
    color: #333333;
    border-radius: 50%;
    border: 2px solid #333333;
    padding: 12px;
  }
  
  .achievements .work .work-heading {
    font-size: 20px;
    color: #333333;
    text-transform: uppercase;
    margin: 10px 0;
    text-align: center;
  }
  
  .achievements .work .work-text {
    font-size: 15px;
    color: #585858;
    margin: 10px 0;
    text-align: center;
  }
  
  .about-me {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 80px;
    border-top: 2px solid #eeeeee;
  }
  
  .about-me img {
    width: 500px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  .about-me-text h2 {
    font-size: 30px;
    color: #333333;
    text-transform: uppercase;
    margin: 0;
  }
  
  .about-me-text p {
    font-size: 15px;
    color: #585858;
    margin: 10px 0;
  }
  
  .about-us {
    display: flex;
    align-items: center;
    height: 100vh;
    width: 100%;
    padding: 90px 0;
    background: #fff;
  }
  .pic {
    height: auto;
    width: 400px;
    border-radius: 12px;
  }
  .about {
    width: 1130px;
    max-width: 85%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .text {
    width: 540px;
  }
  .text h2 {
    color: #333;
    font-size: 90px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .text h5 {
    color: #333;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
  }
  span {
    color: #4070f4;
  }
  .text p {
    color: #333;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 1px;
  }
  .data {
    margin-top: 30px;
  }
  .hire {
    font-size: 18px;
    background: #4070f4;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    transition: 0.5s;
  }
  .hire:hover {
    background: #000;
  }

  .schedule-item {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 10px 0;
}

.card {
    margin-bottom: 20px;
}
.schedule-container {

    margin: 0 auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0px;
    table-layout: fixed;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #dee2e6;
    vertical-align: top;
    word-wrap: break-word; /* Разрешаем перенос слов */
    overflow-wrap: break-word; /* Для современных браузеров */
}
th {
    background-color: #007bff;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}
.week-title {
    margin-top: 30px;
    font-weight: bold;
    font-size: 1.5rem;
}
.schedule-table th,
.schedule-table td {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
}
.schedule-table th {
    background-color: #f1f1f1;
}
.schedule-table td {
    background-color: #f9f9f9;
}
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 123, 255, 0.5); /* Полупрозрачный цвет фона */
    color: white; /* Цвет текста */
    border: none; /* Без рамки */
    border-radius: 50%; /* Сделать кнопку круглой */
    width: 50px; /* Ширина кнопки */
    height: 50px; /* Высота кнопки */
    cursor: pointer; /* Курсор указателя при наведении */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Уменьшенная тень */
    transition: background-color 0.3s, box-shadow 0.3s; /* Плавный переход цвета и тени */
    display: flex; /* Flexbox для центрирования содержимого */
    align-items: center; /* Вертикальное центрирование */
    justify-content: center; /* Горизонтальное центрирование */
    font-size: 24px; /* Размер символа */
}

.scroll-to-top:hover {
    background-color: rgba(0, 123, 255, 0.7); /* Немного более яркий цвет при наведении */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Увеличенная тень при наведении */
}

.form-select {
    padding: 10px 20px;
}
.form-control {
    padding: 10px 20px;
}

.mb-4 {
    text-align: center;
    align-items: center;
}
.mb-4 h5 {
    text-align: left;
}

#messages {
    margin-bottom: 10px;
}

.messages-container {
    max-height: 300px; /* Set a max height for the message container */
    overflow-y: auto; /* Add scroll if content exceeds max height */
    border: 2px solid #ddd; /* Darker red border */
    border-radius: 4px;
    padding: 10px;
}

.message {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative; /* Position for the status label */
    background-color: #e8f5e9;
}


.message .sender {
    font-weight: bold;
    margin-bottom: 5px;
}

.message .status {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.9em;
    color: #999;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 0px 0;
    border-radius: 4px;
}

.ticket {

    margin: auto;
    background: #fff; /* Keeping ticket background white for contrast */
    padding: 20px;
    border-radius: 8px;
}

button {
    background-color: #ff4b4b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #d74343; /* Darker red on hover */
}

.ticket-status {
    color: #c00; /* Darker red for ticket status */
    font-weight: bold;
}

.message-input{
    border: 1px solid #ddd;
    resize: vertical;
}

/* Затемненный фон */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Убедитесь, что слой сверху других элементов */
}

/* Стили для окна сообщений */
.ticket-messages {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.5s ease-in-out;
}

/* Анимация появления окна */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
