/* ============================ */
/* == Основные стили страницы == */
/* ============================ */

/* Общие стили для всей страницы */
body {
    font-family: 'Open Sans', sans-serif; /* Шрифт */
    background-color: #F5F5F6; /* Цвет фона */
    color: #333; /* Цвет текста */
    margin: 0; /* Убираем отступы */
    padding: 0; /* Убираем внутренние отступы */
    display: flex; /* Используем flex-контейнер */
    flex-direction: column; /* Выравниваем содержимое вертикально */
    align-items: center; /* Центрируем содержимое по горизонтали */
}
#link { background: #007bff; padding-top: 10px; padding-bottom: 10px; width: 375px; height: 50px; text-align: justify; columns: 2 150px; column-gap: 1em; column-rule: 1px white solid; color: white; line-height: 1.5; }
p.person {
color: white;
padding-top: 0px;
text-align: center;
font-size: 10px;
}


a.logout {
color: white;
}
/* ========================= */
/* == Фиксированное меню == */
/* ========================= */

/* Контейнер для меню */
.menu-container {
    position: fixed; /* Фиксированное положение вверху */
    top: 0;
    left: 50%; /* Центрируем по горизонтали */
    transform: translateX(-50%); /* Смещаем обратно на 50% ширины */
    width: 375px; /* Фиксированная ширина */
    background-color: #007bff; /* Цвет фона */
    padding: 0px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Тень */
    text-align: left;
    z-index: 1000; /* Поверх других элементов */
}


/* Кнопка для открытия выпадающего меню */
.menu-button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;

padding-top: 0px;
            font-family: 'Montserrat', sans-serif;
            font-size: 28px;
            font-weight: 700;
            text-transform: uppercase; 
            text-align: center;

            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

/* Стили для выпадающего меню */
/* Стили для выпадающего меню */
.menu-dropdown {
    display: none; /* По умолчанию скрыто */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
    overflow: hidden;
    
    /* Добавляем плавность */
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* Когда меню открыто */
.menu-dropdown.open {
    display: block;
    max-height: 500px; /* Достаточно большое значение */
    opacity: 1;
}

/* Ссылки в выпадающем меню */
.menu-dropdown a {
    display: block;
    padding: 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

/* Эффект при наведении на ссылки в меню */
.menu-dropdown a:hover {
    background-color: #D5EEFA;
}


/* ============================= */
/* == Основной контейнер (375px) == */
/* ============================= */

/* Контейнер с контентом */
.content {
    width: 335px; /* Фиксированная ширина */
    background: white;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    text-align: center;
    margin-top: 0px;
}
.content1 {
    width: 280px; /* Фиксированная ширина */
    background: white;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 11px;
    text-align: center;
    margin-top: 30px; /* Отступ вниз от меню */
    margin-bottom: 30px;
    background: radial-gradient(ellipse, white, #D5EEFA);
}
/* Заголовки */
h2 {

    margin-bottom: 10px;
            font-family: 'Montserrat', sans-serif;
            font-size: 22px;
            font-weight: 700;
            text-transform: uppercase; 
            text-align: center;
            color: #007bff;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* =============================== */
/* == Стили для формы ввода данных == */
/* =============================== */

/* Стили для формы */
form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Расстояние между элементами формы */
    text-align: left;
}

/* ============================ */
/* == Поля ввода и выпадающий список == */
/* ============================ */

/* Общий стиль для полей формы */
input, select, textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

/* Эффект при фокусе */
input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* ========================= */
/* == Радиокнопки (Доход/Расход) == */
/* ========================= */

.radio-group {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Убираем стандартное отображение радио-кнопок */
.radio-group input {
    display: none;
}

/* Стили для меток радио-кнопок */
.radio-group label {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

/* Эффект при выборе радио-кнопки */
.radio-group input:checked + label {
    background-color: #007bff;
    color: white;
}

/* ========================== */
/* == Кнопка отправки формы == */
/* ========================== */

button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Эффект при наведении */
button:hover {
    background-color: #007bff;
}

/* =================================== */
/* == Стили для выпадающего списка select == */
/* =================================== */

select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    color: #333;
    appearance: none; /* Убираем стандартный стиль браузера */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Эффект при наведении */
select:hover {
    border-color: #007bff;
}

/* Эффект при фокусе */
select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* =========================== */
/* == Поле ввода суммы (100 мм) == */
/* =========================== */

.amount-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
            font-family: 'Montserrat', sans-serif;
            font-size: 28px;
            font-weight: 700;
            text-transform: uppercase; 
            text-align: center;
            color: #007bff;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
margin-top: 15px;
}

/* Поле ввода суммы */
input[type="number"] {
    width: 100mm; /* Фиксированная ширина */
    max-width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: center; /* Выравнивание текста по центру */
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Эффект при наведении */
input[type="number"]:hover {
    border-color: #007bff;
}

/* Эффект при фокусе */
input[type="number"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* ============================= */
/* == Поле для описания (90%) == */
/* ============================= */

.description-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Поле ввода описания */
textarea {
    width: 92%;

    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    resize: none; /* Отключение изменения размера */
}

/* Эффект при наведении */
textarea:hover {
    border-color: #007bff;
}

/* Эффект при фокусе */
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}
/* ============================= */
/* == Контейнер для полей даты == */
/* ============================= */

.date-container {
    display: flex; /* Располагаем элементы в одну строку */
    justify-content: center; /* Центрируем элементы */
    align-items: center; /* Выравниваем элементы по вертикали */
    gap: 10px; /* Расстояние между полями */
    width: 100%;
}

/* ========================= */
/* == Метки (label) для дат == */
/* ========================= */

.date-container label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* ========================= */
/* == Поля ввода даты == */
/* ========================= */

.date-container input[type="date"] {
    width: 140px; /* Фиксированная ширина */
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    background-color: white;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Эффект при наведении */
.date-container input[type="date"]:hover {
    border-color: #007bff;
}

/* Эффект при фокусе */
.date-container input[type="date"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}
/* ======================== */
/* == Стили для таблицы == */
/* ======================== */

/* Контейнер для адаптивности */
.table-container {
    width: 100%;
    overflow-x: auto; /* Позволяет прокручивать таблицу при необходимости */
}

/* Основной стиль таблицы */
table {
    width: 330px;
    border-collapse: collapse; /* Убираем промежутки между ячейками */
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Заголовки таблицы */
th {
    background-color: #007bff;
    color: white;
    padding: 13px;
    text-align: left;
    font-size: 14px;
    font-weight: normal;
}

/* Обычные ячейки таблицы */
td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    color: #333;
}

/* Полосатая расцветка строк */
tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Эффект при наведении */
tr:hover {
    background-color: #e9ecef;
}

/* Выравнивание числовых данных по правому краю */
td.number {
    text-align: right;
    font-weight: normal;
}

/* ======================== */
/* == Адаптивность == */
/* ======================== */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }
}



/* ======================== */
/* == страница добавление категории == */
/* ======================== */


/* Контейнер для формы */
.category-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 375px; /* Максимальная ширина формы */
}

/* Метка */
.category-form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Поле ввода */
.category-form input[type="text"] {
    width: 100%; /* Поле занимает всю ширину формы */
    max-width: 307px; /* Ограничиваем максимальную ширину */
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Эффект при наведении */
.category-form input[type="text"]:hover {
    border-color: #007bff;
}

/* Эффект при фокусе */
.category-form input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Кнопка */
.category-form button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Эффект при наведении */
.category-form button:hover {
    background-color: #218838;
}


/* ======================== */
/* == страница редактирования категории == */
/* ======================== */


/* Контейнер для формы редактирования */
.update-category-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 295px; /* Ограничиваем ширину */
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Метка */
.update-category-form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Поле ввода */
.update-category-form input[type="text"] {
    width: 100%; /* Заполняет всю доступную ширину */
    max-width: 270px; /* Максимальная ширина */
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Эффект при наведении */
.update-category-form input[type="text"]:hover {
    border-color: #007bff;
}

/* Эффект при фокусе */
.update-category-form input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Кнопка */
.update-category-form button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Эффект при наведении */
.update-category-form button:hover {
    background-color: #007bff;
}
hr {
  border: none;
  height: 1px;
 background: #007bff; 
  width: 100%;
 margin-top: 0px;
margin-bottom: 0px;
}

.verh {
    width: 355px;
    height: 40px;
    margin-top: 80px;
    padding: 10px;
    background-color: #D5EEFA;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);    
    /* Центрирование по вертикали */
    display: flex;
    align-items: center;
    
    /* Если нужно центрировать и по горизонтали */
    justify-content: center;
}

/* Стиль для текста */
.white {
            font-family: 'Montserrat', sans-serif;
            font-size: 18px;
            font-weight: 700;
            text-transform: uppercase; 
            text-align: center;
            color: #007bff;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);

}
/* Контейнер формы */
.auth-container {
    width: 100%;
    max-width: 280px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.auth-container-logo {
    display: flex; /* Используем flexbox для размещения элементов в ряд */
    align-items: center; /* Выравниваем элементы по центру по вертикали */
    gap: 20px; /* Расстояние между картинкой и текстом */
    width: 100%;
    max-width: 330px;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
.image {
    margin-left: 15px;
    border-radius: 10px;
    width: 60px; /* Устанавливаем размер картинки */
    height: auto; /* Сохраняем пропорции картинки */
    object-fit: cover; 
   border: 1px solid #007bff;
}
.text {
    flex-grow: 1; padding: 0px;
}

/* Заголовок */
.auth-container h2 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 1px;
   
}

/* Поля ввода */
.auth-container input {
   color: #007bff;
    width: 255px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    margin-bottom: 15px;
}

/* Эффект при наведении */
.auth-container input:hover {
    border-color: #007bff;
}

/* Эффект при фокусе */
.auth-container input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Кнопка */
.auth-container button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Эффект при наведении */
.auth-container button:hover {
    background-color: #218838;
}

/* Ссылка для перехода между страницами */
.auth-container a {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.auth-container a:hover {
    color: #0056b3;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .auth-container {
        width: 90%;
    }
}



/* Пульсация иконки */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.pulsing-icon {
    width: 30px;
    cursor: pointer;
    animation: pulse 1.5s infinite;
}

/* Затемнённый фон (изначально скрыт) */
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Модальное окно */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: left;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.disable-btn {
    margin-top: 20px;
    background-color: #7E57C2;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.disable-btn:hover {
    background-color: #591EBD;
}
p.sovet {color: #7E57C2}
.add-cat {
    display: inline-block;
    color: #007BFF; /* Цвет текста (можно изменить) */
    text-decoration: none; /* Убираем стандартное подчёркивание */
    font-weight: normal;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

/* Добавляем точечное подчёркивание */
.add-cat::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* Отступ от текста */
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #007BFF,
        #007BFF 2px,
        transparent 2px,
        transparent 4px
    );
}

/* Эффект при наведении */
.add-cat:hover {
    color: #7E57C2; /* Цвет при наведении */
}

.add-cat:hover::after {
    background: repeating-linear-gradient(
        to right,
        #7E57C2,
        #7E57C2 2px,
        transparent 2px,
        transparent 4px
    );
}

