html {
    position: relative;
    min-height: 100%;
}
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2d3748;
    padding-top: 70px;
}


 /* Футер */
        .footer {
            background: #2d3748;
            color: #a0aec0;
            padding: 40px 0;
            text-align: center;
        }

        .footer a {
            color: #cbd5e0;
            text-decoration: none;
            margin: 0 15px;
            transition: color 0.3s ease;
        }

        .footer a:hover {
            color: #83B235;
        }

.footer {
    position: absolute;
    bottom: 0;
    background-color: #2c3e50;
    color: #95a5a6;
    text-align: center;
    width: 100%;
}
body > .container {
    /*padding: 60px 15px 0;*/
    padding-bottom: 150px;
}
.container .text-muted {
    /*margin: 20px 0;*/
}

.footer > .container {
    /*padding-right: 15px;*/
    /*padding-left: 15px;*/
}
/* Основные стили навигации */
.navbar-custom {
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 60px;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    color: #333333;
    font-weight: 700;
    font-size: 22px;
    height: 60px;
    line-height: 30px;
    padding: 15px 15px;
    transition: color 0.3s ease;
}

.navbar-custom .navbar-brand:hover {
    color: #83B235;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-custom .navbar-nav > li > a {
    color: #666666;
    padding: 20px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
    /*margin: 0 3px;*/
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li.active > a {
    background: #f5f5f5;
    color: #333333;/*#83B235;*/
}


/* Кнопка входа */
.btn-login {
    background: #83B235;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 10px;
    margin: 10px 15px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(131, 178, 53, 0.3);
}

.btn-login:hover {
    cursor: pointer;
    background: #6a912c;
    /*transform: translateY(-2px);*/
    box-shadow: 0 4px 10px rgba(131, 178, 53, 0.4);
    text-decoration: none;
}

/* Dropdown меню */
.navbar-custom .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.navbar-custom .dropdown-menu > li > a {
    padding: 10px 20px;
    color: #666666;
    transition: all 0.3s ease;
}

.navbar-custom .dropdown-menu > li > a:hover {
    background: #f8f8f8;
    color: #333333;
    padding-left: 25px;
}

.navbar-custom .dropdown-menu > li > a i {
    color: #83B235;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Мобильная навигация снизу */
.mobile-nav {
    display: none;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    flex-direction: row; /* Явно указываем горизонтальное направление */
    justify-content: space-around;
    align-items: center; /* Центрируем элементы по вертикали */
    padding: 8px 0;
    z-index: 1000;
    height: 60px; /* Фиксированная высота */

}

.mobile-nav-item {
    flex: 1;
    display: flex; /* Делаем сам элемент flex-контейнером */
    flex-direction: column; /* Иконка и текст друг под другом */
    align-items: center; /* Центрируем содержимое */
    justify-content: center; /* Центрируем по вертикали */
    text-align: center;
    padding: 8px 5px;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none; /* Убираем подчеркивание если это ссылка */
    min-width: 0; /* Позволяем элементам сжиматься */
}

.mobile-nav-item:active {
    background: #f5f5f5;
    transform: scale(0.95);
}

.mobile-nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
    color: #83B235;
}

.mobile-nav-item span {
    font-size: 11px;
    display: block;!important;
    white-space: nowrap; /* Текст в одну строку */
}

/* Выдвижное меню для мобильных */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    z-index: 1002;
    transition: bottom 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-menu.active {
    bottom: 60px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-header h4 {
    margin: 0;
    color: #333333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 5px;
}

.mobile-menu-list a {
    display: block;
    padding: 15px;
    color: #666666;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-list a:hover {
    background: #f5f5f5;
    padding-left: 20px;

}

.mobile-menu-list a i {
    color: #83B235;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Скрываем десктоп элементы на мобильных */
@media (max-width: 1000px) {
    .navbar-custom {
        display: none;
    }

    .mobile-nav {
        display: flex !important;
    }
    body {
        padding-top: 10px;

    }
    .footer {
        padding: 5px 0 70px 0;
    }
}

/* Скрываем мобильную навигацию на десктопе */
@media (min-width: 1000px) {
    .mobile-nav {
        display: none;
    }

}

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

/*уведомление */
.custom-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 400px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: slideIn2 0.3s ease-out;
}
@keyframes slideIn2 {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.size-modal-info{

}
.modal-info{
    color: rgba(41,128,185,0.72);
    cursor: pointer;
}
.modal-info:hover{
    color: rgba(49,185,52,0.72);
    cursor: pointer;
}
@media (max-width: 768px) {

    .custom-notification {
        position: fixed;
        bottom: 90px;
        right: 20px;
        left: 20px;
        z-index: 9999;
        min-width: auto;
        max-width: calc(100% - 40px);
        width: auto;
        box-sizing: border-box;
    }
}
/*************************/