
/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    /* Хедер */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        
    }

    .logo {
        margin-bottom: 10px;
    }
    
    .tg-btn {
        padding: 8px 12px; /* Уменьшаем отступы внутри кнопки */
        font-size: 12px; /* Уменьшаем размер текста */
        width: auto; /* Убираем фиксированную ширину */
        white-space: nowrap; /* Текст не переносится на новую строку */
        gap: 4px; /* Уменьшаем расстояние между иконкой и текстом */
    }

    .tg-btn i {
        font-size: 14px; /* Уменьшаем размер иконки */
    }

    /* Фильтры */
    .filters {
        flex-direction: column;
        gap: 10px;
    }

    .filters input, .filters select {
        width: 100%;
    }

    .dropdown-checkbox {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
    }

    .dropdown-content {
        width: 100%;
    }

    /* Таблица */
    table {
        display: block;
        overflow-x: scroll;
        scrollbar-color: rgb(123, 123, 130) #fbfbfb;
    }

    table th, table td {
        padding: 8px;
        font-size: 12px;
    }

    table th.left, table th.right {
        border-radius: 0;
    }

    /* Основной контент */
    main {
        width: 95%;
        margin: 10px auto;
    }

    h1 {
        font-size: 20px;
    }

    /* Форма */
    form {
        padding: 10px;
    }

    

    .form-group input, .form-group select {
        padding: 8px;
    }

    .submit-btn {
        font-family: 'Montserrat';
        padding: 10px;
    }

    /* Приветственный блок */
    .welcome-section {
        padding: 30px 10px;
    }

    .welcome-section h1 {
        font-size: 24px;
    }

    .welcome-section p {
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-btn {
        width: 100%;
        padding: 10px;
    }

    /* Секция с возможностями */
    .features-section h2 {
        font-size: 24px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-card i {
        font-size: 30px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 12px;
    }

    /* Секция "О колледже" */
    .about-section h2 {
        font-size: 24px;
    }

    .about-section p {
        font-size: 14px;
    }
}

/* Основные стили */


@font-face {
    font-family: "Montserrat";  
    src: url("../fonts/Montserrat-Medium.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: normal;
}
     

/* Основные стили для body и wrapper */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Растягиваем body на всю высоту экрана */
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* Хедер */
header {
    background-color: #B90039;
    padding: 10px 0;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}



.header-content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}
.logo-footer {
    height: 70px;
}

.logo_header {
    height: 50px;
    filter: brightness(0) invert(1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f0f0f0;
}



.logout-btn {
    font-family: "Montserrat";
    background-color: #fff;
    color: #B90039;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #f0f0f0;
}

/* Основной контент */
main {
    width: 90%;
    margin: 20px auto;
}

.wrapper {
    flex: 1; /* Растягиваем wrapper на всю доступную высоту */
    display: flex;
    flex-direction: column;
}

h1 {
    color: #000; /* Черный цвет для тайтла */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 24px;
}

/* Фильтры */
.filters {
    display: flex;
    flex-wrap: initial;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.filters input, .filters select {
    font-family: "Montserrat";
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    font-size: 14px;
}

/* Таблица */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    /* border: 1px solid #070707; */
    border-radius: 8px;
    /* overflow: hidden; */
    /* box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1); */
}

.hidden_tab {
    visibility: hidden;
    border: none;
}

.hidden {
    visibility: hidden;
}

table th.left {
    border-top-left-radius: 8px;
}
table th.right {
    border-top-right-radius: 8px;
    
}

table th, table td {
    /* padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-top: 10px; */
    padding: 12px;
    text-align: center;
    font-size: 12px;
}

table th {
    background-color: #5c5c5c;
    color: #fff;
    font-weight: 500;
}

table th.was-header, table th.was  {
    background-color: #B90039; 
    /* border: none; */
}

table th.became-header, table th.became {
    background-color: #44a044; 
    /* border: none; */
}








table td.was {
    background-color: #ffcccc; /* Светло-красный для БЫЛО */
}


table td.became {
    background-color: #ccffcc; /* Светло-зеленый для СТАЛО */
}

table td.edit {
    background-color: #ffffff; 
}

table tr {
    background-color: #fafafa;
    
}
table tr:nth-child(even) {
    background-color: #ededed;
    
}
/* Затемнение через строку для .was и .became */
table tr:nth-child(even) td.was {
    background-color: #ffb3b3; /* Более темный оттенок для четных строк */
}

table tr:nth-child(even) td.became {
    background-color: #b3ffb3; /* Более темный оттенок для четных строк */
}

/* Затемнение при наведении на строку */
table tr:hover td.was {
    transition: 0.3s;
    background-color: #ff9999; /* Затемнение при наведении для .was */
}

table tr:hover td.became {
    transition: 0.3s;
    background-color: #99ff99; /* Затемнение при наведении для .became */
}

table tr:hover td.delete-td{
    transition: 0.3s;
    background-color: #ffffff; /* Затемнение при наведении для .delete-td */
}

/* Затемнение при наведении на строку для всех ячеек */
table tr:hover td {
    transition: 0.3s;
    background-color: #d5d5d5; /* Затемнение при наведении для всех ячеек */
}

/* table tr:hover{
    background-color: #d5d5d5;
} */

/* Кнопка удаления */
.delete-btn, .confirm-btn, .edit-btn, .introduce-btn {
    background: none;
    border: none;
    color: #B90039;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}



.delete-btn:hover, .confirm-btn:hover, .edit-btn:hover {
    color: #A00030;
    border-radius: 4px;
}
.delete-td{
    background: #fff;
    padding-right: 0px;
    padding-left: 5px;
}

.no_bg{
    background-color: none;
}

/* Футер */
footer {
    background-color: #f4f4f4;
    padding: 20px 0;
    text-align: center;
    margin-top: auto; /* Прижимаем футер к низу */
}
.footer-content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-block p {
    margin: 0px 0;
    font-size: 14px;
}

.info-block a {
    color: #B90039;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover {
    text-decoration: underline;
}

/* Основные стили для формы */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.logout {
    margin: 0 0;
    margin-left: 10px;
    padding: 0px;
}

.logout-section {
    padding-left: 12px;
    background-color: #A00030;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: #fff;
}

.profile-icon {
    margin-right: 5px;
}

.form-title {
    margin-top: 20px;
}

.form-group, .form-group-cb {
    margin-bottom: 20px; /* Увеличил отступ между группами */
    display: block;
    align-items: center;
}
.form-group-cb label {
    display: block;
    margin-bottom: 8px; /* Увеличил отступ между label и input */
    font-weight: 500;
    color: #333;
}

.form-group label {
    display: block;
    margin-bottom: 8px; /* Увеличил отступ между label и input */
    font-weight: 500;
    color: #B90039;
}

.form-group input, .form-group select {
    
    padding: 9px; /* Увеличил паддинг для удобства ввода */
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
}


.form-group input:focus, .form-group select:focus {
    border-color: #B90039;
    outline: none;
}

.submit-btn {
    background-color: #B90039;
    font-family: 'Montserrat';
    color: #fff;
    border: none;
    padding: 12px 20px; /* Увеличил паддинг для кнопки */
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px; /* Отступ сверху для кнопки */
}

.submit-btn:hover {
    background-color: #A00030;
}


/* Стили для выпадающего списка с чекбоксами */
.dropdown-checkbox {
    
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    font-family: "Montserrat";
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    /* width: 200px; */
    text-align: left;
}

.dropdown-toggle::after {
    padding-left: 10px;
    content: "▼";
    float: right;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    z-index: 1;
    width: 230px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-content label {
    display: block;
    max-width: fit-content;
    margin-bottom: 8px;
    font-size: 14px;
}

.dropdown-content input[type="checkbox"] {
    margin-right: 8px;
    max-width: fit-content;
}

.dropdown-checkbox:hover .dropdown-content {
    display: block;
}

/* Стили для главной страницы */

/* Приветственный блок */
.welcome-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #B90039;
}

.welcome-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    background-color: #B90039;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #A00030;
}

/* Секция с возможностями */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-card i {
    font-size: 40px;
    color: #B90039;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    font-size: 14px;
    color: #666;
}

/* Секция "О колледже" */
.about-section {
    background-color: #f4f4f4;
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.about-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-section p {
    font-size: 16px;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}
/* Стили для кнопки Telegram */
.tg-btn {
    background-color: #ffffff; /* Цвет Telegram */
    color: #008be7; /* Белый текст */
    padding: 7px 17; /* Отступы внутри кнопки */
    border-radius: 20px; /* Закругленные углы */
    text-decoration: none; /* Убираем подчеркивание */
    font-family: "Montserrat", sans-serif; /* Шрифт */
    font-size: 14px; /* Размер текста */
    font-weight: 500; /* Жирность текста */
    display: inline-flex; /* Для выравнивания иконки и текста */
    align-items: center; /* Выравнивание по вертикали */
    gap: 8px; /* Расстояние между иконкой и текстом */
    transition: background-color 0.3s ease; /* Плавное изменение цвета */
    border: none; /* Убираем границу */
    outline: none; /* Убираем outline при фокусе */
    box-shadow: none; /* Убираем тень, если есть */
}

.tg-btn:hover {
    background-color: #d8d8d8; /* Цвет при наведении */
}

/* Иконка Telegram (Font Awesome) */
.tg-btn i {
    font-size: 18px; /* Размер иконки */
}

.export-buttons {
    margin-bottom: 20px; /* Отступ снизу */
    display: flex;
    gap: 10px; /* Расстояние между кнопками */
}

.export-btn {
    background-color: #ffffff;
    color: #B90039;
    border: none;
    padding: 8px 12px; /* Уменьшаем отступы */
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px; /* Уменьшаем размер текста */
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px; /* Расстояние между иконкой и текстом */
}

.export-btn:hover {
    background-color: #B90039;
    color: #ffffff;
}

.export-btn i {
    font-size: 16px; /* Размер иконки */
}

/* Стили для контейнера выпадающего меню */
.autocomplete-dropdown {
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    position: absolute;
    max-width: fit-content;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    width: calc(100% - 2px); /* Ширина как у input */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px; /* Закругление нижних углов */
}

/* Стили для элементов меню */
.autocomplete-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

/* Эффект при наведении на элемент */
.autocomplete-option:hover {
    background-color: #f5f5f5;
}

/* Стили для активного элемента (если нужно) */
.autocomplete-option.active {
    background-color: #e0e0e0;
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #B90039;
}

.about-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.about-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-section ul li {
    list-style-type: disc;
    margin-bottom: 5px;
}

/* Выравнивание текста по левому краю */
.left-align {
    background-color: #fff;
    text-align: left;
    margin-left: 20px; /* Отступ слева для лучшего визуального восприятия */
}

/* Убираем центрирование для заголовков и текста в секциях */
.about-section h2,
.about-section p,
.about-section ul {
    text-align: left;
    margin-left: 20px; /* Отступ слева */
}

/* Убираем центрирование для списков */
.about-section ul {
    padding-left: 40px; /* Отступ для списка */
}



.form-columns, .form-row {
    display: flex;
    gap: 20px;
}

.form-column, .form-row .form-group{
    flex: 1;
}

.actions-td {
    position: relative;
    background-color: #ffffff; 
    padding: 3px;
}

table tr:hover td.actions-td{
    transition: 0.3s;
    background-color: #ffffff; 
}
.dropdown-actions {
    position: relative;
    display: inline-block;
}

.dropdown-actions-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.2em;
    color: #333;
}

.dropdown-actions-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}


.dropdown-actions-menu a{
    text-decoration: none;
}


.dropdown-actions-menu.show {
    display: block;
}

.dropdown-actions-item {
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat';
    font-size: 12px;
}

.dropdown-actions-item:hover {
    background-color: #f1f1f1;
}

.dropdown-actions-item i {
    width: 20px;
    text-align: center;
}