@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css');

/* Единый синий стиль для всех кнопок */
:root {
    /* Брендовый синий (как у .btn-primary Bootstrap) */
    --brand-primary: #007bff;
    --brand-primary-hover: #0069d9;
    --brand-primary-border-hover: #0062cc;
    --brand-primary-focus: rgba(0, 123, 255, 0.5);
}

/* Базовый primary (оставляем как есть, но фиксируем ховеры/фокус для консистентности) */
.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-border-hover) !important;
}
.btn-primary:focus,
.btn-primary:active {
    box-shadow: 0 0 0 0.2rem var(--brand-primary-focus) !important;
}

/* Приводим остальные варианты к единому синему виду */
.btn-success,
.btn-warning,
.btn-info,
.btn-secondary,
.btn-danger,
.btn-dark,
.btn-light {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}
.btn-success:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-dark:hover,
.btn-light:hover,
.btn-success:focus,
.btn-warning:focus,
.btn-info:focus,
.btn-secondary:focus,
.btn-danger:focus,
.btn-dark:focus,
.btn-light:focus {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-border-hover) !important;
    color: #fff !important;
}
.btn-success:focus,
.btn-warning:focus,
.btn-info:focus,
.btn-secondary:focus,
.btn-danger:focus,
.btn-dark:focus,
.btn-light:focus,
.btn-success:active,
.btn-warning:active,
.btn-info:active,
.btn-secondary:active,
.btn-danger:active,
.btn-dark:active,
.btn-light:active {
    box-shadow: 0 0 0 0.2rem var(--brand-primary-focus) !important;
}

/* Для outline-кнопок оставляем контур, но в нашем синем */
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-dark,
.btn-outline-light {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover,
.btn-outline-dark:hover,
.btn-outline-light:hover,
.btn-outline-success:focus,
.btn-outline-warning:focus,
.btn-outline-info:focus,
.btn-outline-secondary:focus,
.btn-outline-danger:focus,
.btn-outline-dark:focus,
.btn-outline-light:focus {
    color: #fff !important;
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary-border-hover) !important;
    box-shadow: 0 0 0 0.2rem var(--brand-primary-focus) !important;
}

/* Мобильный значок ЛС в шапке */
.pm-icon-mobile {
    padding-right: 0.5rem;
}
.pm-icon-mobile .fa-envelope-o {
    font-size: 1.25rem;
}
.pm-badge-mobile {
    position: absolute;
    top: -2px;
    right: -2px;
}

/* Кнопка "+ Пост" (мобильная, рядом с бургером) */
.mobile-addpost-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Стили для совместимости с Bootstrap 4 */
/* Возвращаем оригинальные стили Bootstrap для навигационной панели */
.navbar-light {
    background-color: #f8f9fa !important;
    border: none;
}

.navbar-light .navbar-brand {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link {
    color: #212529;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
}

.navbar-light .navbar-nav .active > .nav-link {
    color: #007bff;
    background-color: transparent;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #007bff;
    background-color: transparent;
}

/* Стили для выпадающего меню категорий */
.navbar-nav .nav-item.dropdown {
    position: relative;
}

/* Исправление для выпадающих пунктов меню - переопределяем стандартное поведение ::after */
.navbar-nav .nav-item.dropdown > .nav-link.dropdown-toggle::after {
    /* Скрываем стандартную линию подчеркивания */
    display: none;
}

/* Добавляем стандартную стрелку для выпадающего меню */
.navbar-nav .nav-item.dropdown > .nav-link.dropdown-toggle:after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Добавляем анимированное подчеркивание при наведении */
.navbar-nav .nav-item.dropdown > .nav-link.dropdown-toggle:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.navbar-nav .nav-item.dropdown > .nav-link.dropdown-toggle:hover:before {
    width: 100%;
}

.navbar-nav .dropdown-menu {
    padding: 0.5rem 0;
    min-width: 10rem;
    margin: 0.125rem 0 0;
}

.dropdown-item {
    padding: 0.25rem 1.5rem;
    white-space: normal;
}

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

/* Исправление для вложенных меню */
.navbar-nav > .navbar-nav {
    display: inline-block;
}

.navbar-nav > .navbar-nav .nav-item {
    display: inline-block;
}

/* Стили для адаптивных изображений */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Обратная совместимость для старых классов Bootstrap 3 */
.img-responsive {
    max-width: 100%;
    height: auto;
}

article img {
    max-width: 100%;
    height: auto;
}

.fullstory img {
    max-width: 100%;
    height: auto;
}

/* Стили для изображений в профиле пользователя */
.avatar img {
    max-width: 100%;
    height: auto;
}

.userinfo img {
    max-width: 100%;
    height: auto;
}

.col-md-4 img {
    max-width: 100%;
    height: auto;
}

.adm {
    background: #fce36e;
}
#dle-comments-form {
    margin: 30px 0;
}

.edit a {
    color:red;
}

body {
	font-family: 'Roboto', sans-serif;
    background-color:#f8f8f8;
}

.meta li {
    display: inline-block;
}

.mini-container {
	max-width:680px;
    margin: 0 auto;
}

.navbar-default .navbar-brand {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 500;
}

.navbar {
    margin-bottom: 0;
}

.reg {
    padding:10px
}

.tg {
    position: fixed;
    padding: 10px;
    bottom: 0px;
    background: #ffdb4d;
    left: 0;
    width: 100%;
    text-align: center;
}

.tg a {
    color: #000;
}

.reg input {
    margin-bottom:10px;
}

.alert-comments {
    background-color: #f7f7f7;
    border-color: #e7e7e6;
    font-size: 13px;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ebebeb;
    margin: 20px 0;
}

img.right-ava {
    width: 40px;
    /* margin-bottom: -10px; */
    margin-right: 10px;
    /* padding-right: 10px; */
    border-radius: 50%;
    /* border: 1px solid #b5b5b5; */
    box-shadow: 0 0 6px -2px #969696;
}

img.mim {
    width: 20px;
}

.alert-title {
    background: #ffdd2d;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

#dle-comments-list {
    max-width: 680px;
    margin: 0 auto;
}

.comments-tree-list {
    padding-left:0
}

.comments-tree-list>li {
    list-style:none;
}


.alert-text {
    background: #fcf8e3;
    border: 1px solid #ffdd2d;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 20px;       
}

.comment-body {
    padding-left: 123px;
}

h1 {
    font-size: 22px;

        margin: 0 auto;
     margin-bottom:20px;
    margin-top:20px;
}
h1 a {
    color: #F47F1E;
}

h1.category-title {
    font-size:22px;
    margin:0;
}
p.category-description {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 18px;
    margin-top: 8px;
}

h3 {
	font-size: 24px;
  	font-weight: 600;
}

.h3-title {
    color: #607D8B;
    font-size: 32px;
}

h2 {
    font-size: 22px;
    margin-top:10px;
}

h2 a {
    color:#000;
    text-decoration:underline;
}

article p {
font-size:17px;
}
.article__comments_header {
    max-width: 680px;
    margin: 0 auto;
    font-size: 22px;
    /* display: block; */
    padding: 50px 0 10px;
}

.navbar-brand>img {
    display:inline-block;
    width:24px;
}

p.text {
    margin-bottom: 0;
}

p.obb {
    font-size: 20px;
    color: #aaa;
}

.admin {
    position: absolute;
    left:0;
}

.danger{
    border: 1px solid red;
    padding: 20px;
    color: red;
    font-size: 18px;
}

.main-video>div {
    width:100% !important;
    height:auto !important;
}

.article__meta {
    position: relative;
    background-color: #f2f2f4;
    margin: 20px -15px 0 -15px;
	font-size: 14px;
    padding: 20px 40px;
}

.article__meta_title {
    color: #777;
    font-size: 14px;
    margin: 16px 0 10px;
}

.article__meta_text {
    font-size: 14px;
    line-height: 18px;
    color: #333;
    margin: 0;
}

.article__meta_text_muted {
    font-size: 14px;
    line-height: 18px;
    color: #777;
    margin: 0;
}

.article__meta_text_link a {
display: inline-block;
    margin-right: 1px;
    padding: 1px 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}
.article__meta_text_link a:hover {
    border-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.footer-banner {
    display:none;
}

.comment-info {
    margin-bottom:6px;
}

.price {
    font-size:25px;
}
.main-video video  {
    width:100% !important;
    height:auto !important;
}

.mejs-mediaelement {
    position:relative;
}

.qq-upload-button {
    background: #009688;
    color: #fff;
}

p {
	line-height: 27px;
    margin: 10px 0 20px 0;
    word-wrap: break-word;
}

.mini-avatar {
    border-radius: 30%;
    width: 32px;
    margin-right:10px;
}
    
.related {
    
	font-size: 0.9em;
    padding-left: 20px;
}

.related li {
	margin-bottom: 8px;
}

.related li a {
	color:#2f73b9;
}

.xf input, textarea {
        display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    
}



input.btn111 {
    background: #50ce83;
    padding: 10px 20px;
    border-radius: 3px;
    color: #fff;
    border: none;
    margin-right: 15px;
}



input.btn:hover {
    background: cadetblue;
}

.rate {
background-color: #e6e6e6;
    border-radius: 5px;
    display: inline-block;
    padding: 5px 10px;
    margin: 20px 0 0 0;
}

li.like a {
	color: #F5BFD4;
}

.rating_news span>span {
padding: 0px 5px;
}

.rate .up-news a {
	color: rgb(121, 121, 121);
    text-decoration: none;
}

.rate .down-news {
	color: rgb(226, 83, 83);
}

#dle-comments-list .autor {
    margin-bottom:7px;
}
.autor {
	color: #999;
    margin: 10px 0;
}

.autor a {
	text-decoration: none;
	color: #000;
}

.autor a:hover {
	text-decoration: underline;
}

.autor span {
    margin-right: 10px;
}

.up-news .fa-heart {
  color: #ccc;
        margin-right: 4px;
}

.up-news:hover .fa-heart {
  color: red;
}

.voteprogress {
    position: relative;
    top: 5px;
    z-index: 2;
    margin-top: -25px;
    margin-bottom: 10px;
}

.vote1, .vote2, .vote3, .vote4, .vote5, .vote6 {
    width: 100%;
    background: #ffdb4d;
    display: inline-block;
    color: transparent;
    border-radius: 5px;
}

.vote {
    z-index: 3;
    position: relative;
    font-size: 12px;
    padding-left: 5px;
    color: #1e1e1ea8;
}

.taglist {margin: 20px 0;color:#bbb;}
.taglist span {
    display:inline-block;
    margin: 8px 2px;
}
    .taglist a {
    padding: 5px 15px;
    border-radius: 3px;
    color: #c15117;
    text-decoration: none;
    background: #ffefef;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid #d2a494;
    margin: 0 4px;
    font-size: 15px;
    }
.taglist a:hover {
    color: #fff;
    background:#d2a494;
        }

.liker {
    text-align: center;
    margin: 0 auto;
    position: absolute;
    top: 0;
    right: 0;          
}
.liker p {margin-bottom:10px; display: inline-block; font-size: 13px; width: inherit !important;font-weight:bold;}

        
.btngrn {
	background-color: rgba(54, 198, 127, 1);
	padding: 5px 10px;
	margin-top: 12px;
	margin-right: 12px;
	color: white;
	border-radius: 2px;
	font-weight: normal;
	font-family: Arial;
	font-size: 14px;
	border: 1px solid #36C67F;
}

.btngrn:hover {
	background-color: #F0F9F4;
}

.comment-text {
    padding: 20px;
    border-radius: 20px;
    background-color: #f5f5f6;
    margin: 20px 0;
}


.block-nav ul ul {padding-left: 15px;}
.block-nav sup {line-height: 1em;}

/* Ã’Ã¥Ã«Ã® Ã±Ã²Ã°Ã Ã­Ã¨Ã¶Ã» */
.page {
    box-shadow: 0 0 5px #cdcdcd;
    background-color: #fff;
}

/* Ã?Ã Ã¯ÃªÃ  */
.toppanel {    
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
    padding: 8px 20px;
    font-size: 13px;
    margin: 0 -15px;}

.userpanel {font-size:13px; padding:7px 0;   margin: 0;}
.userpanel ul {margin:0; padding:0;}
.userpanel li {display: inline-block; padding-right: 6px;}

.header {
    zoom: 1;
    padding-bottom: 23px;
    position: relative;

    padding: 15px;}

.add-mob {
    background: #50ce83;
    border-radius: 3px;
    color: #fff;
    padding:2px;
}

.add-btn {
    padding: 5px 10px;
    color: #2f2f2f;
    background: #ffcb07;
    border-radius: 4px;
    box-shadow: 1px 1px 1px 0px #cecece;
    display:inline-block;
    margin: 10px 10px 0 10px;
}

.header .logo a {display: block; background: url(../images/logo.png) no-repeat 0px 0px; text-decoration: none; color: #1e1e1e; height: 60px;}
.header .logo b {color: #1e1e1e; font-size: 18px; display: block; padding: 5px 0 0 90px;}
.header .logo span {    color: #9E9E9E;
    display: block;
    padding: 0px 0px 0px 89px;
}

.signup {float: left;}
.signup * {display: inline; margin-right: 10px;}
.signup input {
    color: #444444;
    font-size: 12px;
    border: 1px solid #C9C9C9;
    padding: 2px 7px;
}

.catmenu {
   padding-left: 17px;
}

/* ÃÃ«Ã®Ãª */
.block {margin-bottom: 6px;overflow:hidden;}
.block li {margin-bottom: 5px;    color: #d19b00;}
.block a {    font-weight: 500;
    text-decoration: none;
    font-size: 14px;}
.block a:hover {text-decoration: underline;}

h6 {
    font-size: 20px;
    margin: 20px 0;
}

.block-wrap.with-header {padding: 0px 0px 0px 0px;}
.block-archives * {font-weight: normal;}
.archives span {display: none;}
.block-search {padding-bottom: 20px;}

.block-nav {
  font-size: 13px;
  color: rgb(215, 215, 215);
  line-height: 25px;
  }

.cat_menu>li>ul {display: none;}
.block-tags {color: #686868;}
.block-informer {color: #555;}
.block-informer a {color: #f5c242; text-decoration: underline;}
.block-informer a:hover {color: #f5c242; text-decoration: none;}

.post_info {
padding: 2px 5px;
font-size: 16px;
 color: rgb(202, 202, 202);
}

.last {padding-left: 18px;}


.alltags a{
display: inline-block;
margin: 5px 0;
text-decoration: none;
border: 1px solid rgb(212, 192, 176);
padding: 2px 5px;
border-radius: 5px;
}
.alltags a:hover {background-color: rgb(212, 192, 176)}

.news {  
    margin: 0 auto;
    max-width: 680px;
    margin-bottom:30px;
}

.text1 h2 {
    font-weight: 600;
    font-size: 24px;
    margin: 40px 0 20px 0px;
    color: rgb(0, 0, 0);
}

.text h3 {
font-weight: 600;
}


.news.shortnews .text form img {display: inline; float: none; width: auto; padding-right: 0px;}

.news.shortnews .text form textarea {height: 50px !important; font: 11px Tahoma, Geneva, Sans-serif !important;}

/*.news-header, .page-title {font: 2.2em/26px Tahoma, Helvetica, Sans-serif; color: #1e1e1e;}*/
.news-header img {vertical-align: middle; padding-left: 5px;}
.news-header a:hover, .page-title a:hover {text-decoration: underline;}
.news-info-wrap {overflow: hidden; zoom: 1;}
.news-info {color: #bbb;}
.news-info li {display: inline; padding-right:10px;}
.news-info del {color: #c9c9c9; padding: 0px 5px;}
.news-info a {color: #5d5d5d; text-decoration: underline;}
.news-info a:hover {text-decoration: none;}
.news-info .catlink a {color: #f5c242;}

.news .text a:hover {text-decoration: none;}*/

.news-info .rate {margin-left: -90px; margin-top: -1px; position: absolute; width: 90px;}
.news-info {margin:10px 0 0; font-size:12px; padding:0;} 
.error .text {padding-bottom: 0px;}


.vote-title {padding-bottom: 10px; line-height: 14px;font-weight:bold;}
.vote label {padding-left: 10px;}
.vote-list {color: #1e1e1e; line-height: 20px; padding-bottom: 10px; margin-right: 15px;}
.vote-list img, #dle-poll-list img {border: 1px solid #f5c242 !important;}
#dle-poll-list {padding-bottom: 10px;}
.vote-total {padding-top: 10px; display: block;}
.vote-submit, .vote-result {font: 11px Tahoma, Helvetica, Sans-serif; color: #1e1e1e; cursor: pointer; float: left; display: block; cursor: pointer; _display: inline; margin-right: 20px;}
.nopadd {padding-bottom: 0px !important;}

.news.addnews {padding-bottom: 0px; margin-bottom: 20px;}
.news.addnews .send-form {padding: 20px 0px;}

table td.search {text-align: left;}
table td.search select.rating {text-indent: 0px !important; color: #1e1e1e !important;}
table td.search select {width: 256px !important; height: 20px; font: 11px Tahoma, Helvetica, Sans-serif; color: #1e1e1e;}
.big-textarea {height: 300px; width: 100%; background: #fff; color: #1e1e1e; border: 1px solid #dbdbdb;}
.padd {padding-top: 10px;}
.nopadding {padding-top: 0px;}
.noborder {border: 0px !important;}
.block-search-submit {font: 1.5em Tahoma, Helvetica, Sans-serif; color: #1e1e1e; cursor: pointer; cursor: pointer; margin-right: 20px;}
#allow_subscribe {margin: 0 7px 0 0;}
.admintag label {display: block; float: left; position: relative; margin: -14px 0px 0px 30px;}
.admintag input {display: block; clear: both;}

label.comments_subscribe {
    font-weight: 100;

}

.avatar {    
    border-radius: 50%;
    width: 90px;
    float: left;
    margin-right: 30px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.editinfo {font: italic 0.8em Tahoma, Helvetica, Sans-serif; color: #999; padding-top: 14px;}
.pm-footer {margin-left: 0px;}

.pm-footer a {
    background-color: #eee;
    padding: 5px 10px;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #d5dee2;
    text-decoration:none;
    display: inline-block;
    margin-bottom: 10px;
}

.pm-footer a:hover {
    background-color: #d5dee2;
}

/* Ã„Ã®Ã¯Ã®Ã«Ã­Ã¨Ã²Ã¥Ã«Ã¼Ã­Ã»Ã¥ Ã¯Ã®Ã«Ã¿ */
.xf {    margin-bottom: 50px;}
.xf td.addnews {
    font-size: 16px;
    color: rgba(8, 124, 179, 1);
    font-weight: 400;
    margin: 20px 0 5px;
}

.xfieldsnote {
    color:#777;
}

#category {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.xf td {display: block !important;}
.xf font {top: -13px; position: relative; left: -10px;}

/* ÃÃ®Ã¤Ã¢Ã Ã« */
.footer {    overflow: hidden;
    padding: 20px;
    background-color: #f5f5f5;margin-bottom: 60px;}


/* DLE default styles */
#busy_layer {display: none !important; width: 0px !important; height: 0px !important; z-index: -9999px !important; position: absolute !important; left: -9999px !important; top: -9999px !important;}
/* Ã–Ã¨Ã²Ã Ã²Ã  Ã¨ Ã±ÃªÃ°Ã»Ã²Ã»Ã© Ã²Ã¥ÃªÃ±Ã² */
.title_quote {
 color: #545454; 
    background: #ffe8c5;
    padding: 5px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;   
}

 .quote {
color: #796d57;
    background: #fffcf0;
    border-left: 2px solid #ffe8c5;
    padding: 10px;
    font-size: small;
    line-height: normal;

}
/* Ã’Ã¥Ã£ SPOILER */
.title_spoiler {color: #555; background: #fff; border: 1px dotted #d7d7d7; font-weight: bold; padding: 5px; margin-top: 6px;}
.title_spoiler img {margin: 0; padding: 0;}
.text_spoiler {color: #555555; background: #fff; border: 1px dotted #d7d7d7; border-top: 0; text-align: justify; padding: 5px;}
/* TÃ½Ã£ CODE */
.scriptcode {color: #545454; background: #fff; border: 1px dotted #d7d7d7; text-align: left; padding: 5px; margin-top: 6px;}
/* ÃŠÃ Ã«Ã¥Ã­Ã¤Ã Ã°Ã¼ */
.weekday-active-v, .day-active-v {color: #1e1e1e;}
.calendar {color: #1e1e1e; font-family: verdana; font-size: 11px; line-height: 16px;}
.calendar td, th {font-family: verdana; text-decoration: none; padding: 4px 6px 5px 7px;}
.weekday {color: #f5c242; font-family: verdana;}
.weekday-active {color: #f5c242; font-family: verdana;}
.day-active {color: #f5c242; font-family: verdana;}
.day-active a, .weekday-active a, .day-active-v a, .weekday-active-v a {text-decoration: underline;}
.monthlink {color: #1e1e1e; text-decoration: none;}
.day-current {border: 1px solid #c3c3c3;}
.monthselect {font: bold 11px Tahoma, Helvetica, Sans-serif; color: #f5c242;}


.bb-pane { height: 1%; overflow: hidden; border: 1px solid #BBB; background-image: url("../bbcodes/bg.gif"); }
.bb-btn, .bb-sep { height: 25px; float: left; display: block; overflow: hidden; text-indent: -9999px; white-space: nowrap; }
.bb-sel { float: left; padding: 4px 2px 0 2px; }
.bb-sel select { font-size: 11px; }
.bb-sep { width: 5px; background-image: url("../bbcodes/brkspace.gif"); }
.bb-btn { cursor: pointer; width: 23px; }

.bb-editor textarea { 
    padding: 10px;
    border: 1px solid #bcc0c2;
    height: 140px;
}
.editorcomm .bb-editor { width: 465px;}
.editorcomm .bb-editor textarea { height: 156px; }


table.pm input.bbcodes {margin: 10px 0px 20px 0px; position: relative;}
.pm_head {padding-top: 15px;}
.pm_list {color: #000; line-height: 22px;}
.pm_list a {color: #ef8a00;}
.pm-body {
    padding: 10px;
    background: #f5f2ec;
    border: 1px solid #ded9d0;
    border-radius: 3px;
    margin: 25px 0 25px 25px;
}
.pmpage a {color: #1e1e1e !important;}

/* ÃŽÃ¡Ã«Ã ÃªÃ® Ã²Ã¥Ã£Ã®Ã¢ */
.clouds_xsmall {font-size: 1em;}
.clouds_small {font-size: 1.2em;}
.clouds_medium {font-size: 1.4em;}
.clouds_large {font-size: 1.6em;}
.clouds_xlarge {font-size: 1.8em;}



.clouds_xsmall a, .clouds_small a, .clouds_medium a, .clouds_large a, .clouds_xlarge a {
line-height: 25px;
    margin: 8px 5px;
    color: #666;
    border-bottom: 2px solid #ff5100;
    text-decoration: none;
}

#loading-layer {
    display:none;
    font-family: Verdana;font-size: 11px;
    background:#000;padding:10px;
    text-align:center;
    border:1px solid #000;
    color: #FFF;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

/* ==================== Ã€Ã¢Ã²Ã®Ã§Ã Ã¯Ã®Ã«Ã­Ã¥Ã­Ã¨Ã¥ Ã®Ã¡Ã«Ã ÃªÃ  Ã²Ã¥Ã£Ã®Ã¢ */
.ui-autocomplete { position: absolute; cursor: default; }

* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */

.ui-menu {
            list-style:none;
            padding: 2px;
            margin: 0;
            display:block;
            float: left;
}
.ui-menu .ui-menu {
            margin-top: -3px;
}
.ui-menu .ui-menu-item {
            margin:0;
            padding: 0;
            zoom: 1;
        float: left;
            clear: left;
            width: 100%;
}
.ui-menu .ui-menu-item a {
            text-decoration:none;
            display:block;
            padding:.2em .4em;
            line-height:1.5;
            zoom:1;
}
.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active {
            font-weight: normal;
            margin: -1px;
}

/* ==================== Ã„Ã¨Ã Ã«Ã®Ã£Ã®Ã¢Ã»Ã¥ Ã¨ Ã¢Ã±Ã¯Ã«Ã»Ã¢Ã Ã¾Ã¹Ã¨Ã¥ Ã®ÃªÃ­Ã  jQuery UI */
.ui-helper-clearfix:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
}
.ui-helper-clearfix {
    display: inline-block;
}
* html .ui-helper-clearfix {
    height: 1%;
}
.ui-helper-clearfix {
    display: block;
}
.ui-icon {
    background-repeat: no-repeat;
    display: block;
    overflow: hidden;
    text-indent: -99999px;
}
.ui-widget {
    font-family: Tahoma, Lucida Sans, Arial, sans-serif;
    font-size: 11px;
}
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: tahoma, Arial, sans-serif;
    font-size: 11px;
}
.ui-widget-content {
    background: #fcfdfd 50% bottom repeat-x;
    border: 1px solid #a6c9e2;
    color: #222222;
}
.ui-widget-content a {
    color: #222222;
}
.ui-widget-header {
    background: #5c9ccc url(../images/ui-bg_gloss-wave.png) 50% 50% repeat-x;
    border: 1px solid #4297d7;
    color: #ffffff;
    font-weight: bold;
}
.ui-widget-header a {
    color: #ffffff;
}
.ui-state-default, .ui-widget-content .ui-state-default {
    background: #dfeffc url(../images/ui-bg_glass_85.png) 50% 50% repeat-x;
    border: 1px solid #c5dbec;
    color: #2e6e9e;
    font-weight: bold;
}
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited {
    color: #2e6e9e;
    text-decoration: none;
}
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus {
    background: #d0e5f5 url(../images/ui-bg_glass_75.png) 50% 50% repeat-x;
    border: 1px solid #79b7e7;
    color: #1d5987;
    font-weight: bold;
}
.ui-state-hover a, .ui-state-hover a:hover {
    color: #1d5987;
    text-decoration: none;
}
.ui-state-active, .ui-widget-content .ui-state-active {
    background: #f5f8f9 50% 50% repeat-x;
    border: 1px solid #79b7e7;
    color: #e17009;
    font-weight: bold;
}
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
    color: #e17009;
    text-decoration: none;
}
.ui-widget :active {
    outline: none;
}
.ui-state-error {
    background: #fef1ec 50% 50% repeat-x;
    border: 1px solid #cd0a0a;
    color: #cd0a0a;
}
.ui-widget-header .ui-icon {
    background-image: url(../images/ui-icons.png);
}
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {
    background-image: url(../images/ui-icons_h.png);
}
.ui-icon-close {
    background-position: -80px -128px;
}
.ui-icon-closethick {
    background-position: -96px -128px;
}
.ui-button .ui-button-text {
    display: block;
    line-height: 1.4;
}
.ui-button-text-only .ui-button-text {
    padding: .4em .8em;
}
input.ui-button {
    padding: .4em 1em;
}
.ui-button-set {
    margin-right: 7px;
}
.ui-button-set .ui-button {
    margin-left: 0;
    margin-right: -.3em;
}
button.ui-button::-moz-focus-inner {
    border: 0;
    padding: 0;
}
.ui-dialog {
    overflow: hidden;
    padding: .2em;
    position: absolute;
    width: 300px;
}
.ui-dialog .ui-dialog-titlebar {
    padding: .5em 1em .3em;
    position: relative;
}
.ui-dialog .ui-dialog-title {
    float: left;
    margin: .1em 16px .2em 0;
}
.ui-dialog .ui-dialog-titlebar-close {
    height: 18px;
    margin: -10px 0 0 0;
    padding: 1px;
    position: absolute;
    right: .3em;
    top: 50%;
    width: 19px;
}
.ui-dialog .ui-dialog-titlebar-close span {
    display: block;
    margin: 1px;
}
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus {
    padding: 0;
}
.ui-dialog .ui-dialog-content {
    background: none;
    border: 0;
    overflow: hidden;
    padding: .5em 1em;
    position: relative;
    zoom: 1;
}
.ui-dialog .ui-dialog-buttonpane {
    background-image: none;
    border-width: 1px 0 0 0;
    margin: .5em 0 0 0;
    padding: .3em 1em .5em .4em;
    text-align: left;
}
.ui-dialog .ui-dialog-buttonpane button {
    cursor: pointer;
    float: right;
    line-height: 1.4em;
    margin: .5em .4em .5em 0;
    overflow: visible;
    padding: .2em .6em .3em .6em;
    width: auto;
}
.ui-dialog .ui-resizable-se {
    bottom: 3px;
    height: 14px;
    right: 3px;
    width: 14px;
}
.ui-draggable .ui-dialog-titlebar {
    cursor: move;
}
/*---ÃÃ®Ã¤Ã±Ã¢Ã¥Ã²ÃªÃ  ÃªÃ®Ã¤Ã  Ã¢ Ã²Ã¥Ã£Ã¥ [code]---*/
pre code {
  display: block; padding: 0.5em;
  background: #f9fafa; 
  border: 1px solid #dce7e7;
  overflow:auto;
  white-space: pre;
}

pre .comment,
pre .template_comment,
pre .diff .header,
pre .doctype,
pre .lisp .string,
pre .javadoc {
  color: #93a1a1;
  font-style: italic;
}

/*---Ã¯Ã°Ã®Ã£Ã°Ã¥Ã±Ã± Ã¡Ã Ã° Ã§Ã Ã¯Ã®Ã«Ã­Ã¥Ã­Ã­Ã®Ã±Ã²Ã¨ Ã¯Ã¥Ã°Ã±Ã®Ã­Ã Ã«Ã¼Ã­Ã»Ãµ Ã±Ã®Ã®Ã¡Ã¹Ã¥Ã­Ã¨Ã©---*/
.pm_progress_bar {
	border: 1px solid #d8d8d8;
	padding: 1px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.pm_progress_bar span {
	background: #000000;
	font-size: 0em;
	text-indent: -2000em;
	height: 10px;
	display: block;
	overflow: hidden;
}
.pm_status {
	float:left;
	border: 1px solid #d8d8d8;
	padding: 0px;
	width: 450px;
	height: 100px;
	margin-left: 20px;
	margin-right: 5px;
}

.pm_status_head {
	border-bottom: 1px solid #d8d8d8;
	font-size: 0.9em; 
	height: 22px;
	padding: 0;
	font-weight: bold;
	text-align: center;
	color: #4e4e4e;
}

.pm_status_content {
	padding: 5px;
}

.read {
    position: relative;
    display: inline-block;
    width: 110px;
    height: 18px;
    overflow: hidden;
    top: 2px;
    color: #03A9F4;
}

.read a {
    padding-left: 110px;
    font-weight: 100;
    font-size: 13px;
    position: absolute;
}

span.read:before {
    content: '×èòàòü äàëåå';
    position: absolute;
    z-index: -1;
    font-size: 15px;
    font-weight: 500;
}

span.read:hover:before {
    color:#00B729;
    text-decoration:underline;
}

.read a:hover {
	text-decoration: none;
}


.navbar-default {
    background-color: #f8f9fa;
    border-color: #e7e7e7;
}

.navbar-default .navbar-nav>li>a {
    color: #212529;
    font-size: 1rem;
    font-weight: 400;
}

.navbar-default .navbar-nav>.active>a {
    color: #007bff;
    background-color: transparent;
    font-weight: 500;
}

.navbar-default .navbar-nav>li>a:hover {
    color: #007bff;
    background-color: transparent;
}

.add {
    background: #fff0b6;
    color: #956100 !important;
}

.comment-title {
	margin: 0;
	font-size: 15px;
}

.comment-title a {
	text-decoration: underline;
}

.comment {
    color: #444;
    padding: 20px;
    background: #f8f8f8;

}

.reset {
    margin:0;
    padding:0;
}

.reset li {
    display: inline-block;
    margin-right:10px;
}

.reset li a {
    text-decoration: underline;
}


.pagination>li>span {
    color: #ee5f5b;

}

.fullstory p img {
    float:none !important;
    max-width:100%;
}


.comments-header {
    font-weight: bold;
    color: #444;
    font-size: 20px;
}

.news-header {
    color: #444;
    font-size: 30px;
}

.text-video p {
    text-align:left;
    font-size:13px;
    margin: 0 0 10px;
    line-height: 1.5em;
}

.last-comments {
    margin: 0;
    padding: 0;
}

.last-comments li {
	padding-bottom: 15px;
    color: #999;
}

.last-comments p {
    color: #333;
    line-height: 1.5em;
    margin: 5px 0;
}

.last-comments .mini-avatar {
    margin-right: 10px;
}


.ads {
    margin:20px 0 40px 0;
}

.ads1 {
    margin:0 auto;
}

@media (max-width: 480px) { 
.ads {
   margin:10px 0;
}
    .news {padding:10px; margin: 0 -10px;}
    h2 {font-size:17px;margin-top:0; margin-bottom:0;line-height: 1.5;}
    h1 {margin:10px 0;}
    article p {font-size: 15px; line-height: 25px;margin-top:5px;}
    .mr0 {
    margin: 0;
    padding: 5px 0 5px 5px;
}
    
    #dle-comments-list>div {
        margin-left:0;
        margin-right:0;
    }
    
    .avatar {
        width: 40px;
    }
    
    .comment-body {
    	padding-left: 0;
        font-size:13px;
	}
}

@media (max-width: 500px) {

}

@media (max-width: 768px) {
    
}

@media (max-width: 994px) {
  
}

.navbar-toggle {
    background-color: transparent;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: .25rem;
    padding: .25rem .75rem;
}

.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover {
    background-color: rgba(0,0,0,.05);
}


#dropmenudiv {
    background: #fff;
    font-size: 14px;
    border: 1px solid #c9c9c9;
    padding: 10px;
    display: block;
    /* color: lime; */
    box-shadow: 3px 4px 5px #dadada;
    border-radius: 5px;
}

div#dropmenudiv a {
    display: block;
}

div#searchsuggestions {
    max-width: 278px;
    font-size: 12px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 16px gainsboro;
    padding: 15px;
}

#searchsuggestions a {
    display: block;
    margin-bottom: 10px;
}

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


.pm th{
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}
.pm th.pm_checkbox {
	text-align: center;
}
.pm_list.pm_subj, .pm_list.pm_icon, .pm_list.pm_last_user {
 cursor: pointer;
}
.pm_list.pm_icon svg {
	width: 1.4rem;
	height: 1.4rem;
	vertical-align: middle;
}

.pm_list.pm_icon.pm-unread-image {
 color: #3394e6;
}
.pm td.pm_list.pm_icon, .userstop td, th.pm_head.pm_icon {
	border-bottom: none;
}
.pm_list.pm_icon.pm-reply-image {
	color: #087e02c4;
}
.pm_list.pm_icon.pm-read-image {
	color: #afafaf;
}

.pm_list .pm_last_message, .pm_list .pm_last_date, .pm_list .pm_with_user {
	color: #64748b;
	font-size: .8rem;
}
.pm tbody > tr:hover {
    background-color: #e2e8f099;
}
.pm_navigation {
	margin-top: 1rem;
}
.pm_navigation .navigation {
	display: inline-block;
	color: #333333;
	background-color: #f5f5f5;
	border-radius: 0.188rem;
	padding: .4rem;
}

.pm_navigation .navigation a, .pm_navigation .navigation span {
    padding: 0.5rem;
    min-width: 2.25rem;
}
.pm_navigation .navigation span {
    background-color: #4581d0;
    color: #fff;
}
.pm_navigation .navigation a {
    text-decoration: none;
    color: #000;
}
.pm_navigation .navigation a:hover {
    background-color: #e2e8f0;
}


.ui-dialog-buttonset button.ui-button-delete {
    background-color: #f44336;
    border-color: #f44336;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(51, 51, 51, .5);
}
.ui-dialog-buttonset button.ui-button-delete:hover {
    background-color: #db3a2f;
    border-color: #db3a2f;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(51, 51, 51, .5);
}
.form-check-label {
    cursor: pointer;
}

    flex-shrink: 0;
    width: 1.12rem;
    height: 1.12rem;
    appearance: none;
    border: 1px solid #0c5f7eed;
    vertical-align: middle;
.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230c5f7eed' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%230c5f7eed'/%3e%3c/svg%3e");
}

.form-check-input[type=checkbox] {
    border-radius: .25rem;
    margin-left: 0;
    margin-right: 10px;
    position: initial;
}

.form-check-input[type=radio] {
    border-radius: 50%;
}

/* --- PM --- */
@media only screen and (min-width: 601px) {
#pm-menu:after { content: ""; clear: both; display: block; }
	#pm-menu { margin-bottom: 25px; }
	#pm-menu a { color: inherit; padding: 10px 16px; border-radius: 2px; border: 2px solid transparent; float: left; text-decoration: none !important; }
	#pm-menu a:hover { border-color: #3394e6; color: #3394e6; }
}

	.pm-box { margin-bottom: 25px; }
		.pm_status { padding: 25px; background-color: #f7f7f7; border-radius: 2px; }
		.pm_progress_bar { background-color: #e5dbcc; margin-bottom: 10px; border-radius: 2px; }
		.pm_progress_bar span { background: #e85319; font-size: 0; height: 20px; border-radius: 2px; display: block; overflow: hidden }

/* Улучшенные стили для кнопки переключения меню */
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.5);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: no-repeat center center;
    background-size: 100% 100%;
}

/* Улучшенные стили для выпадающих меню */
.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    min-width: 280px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 16px;
    color: #212529;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #007bff;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #007bff;
    color: white;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Улучшение анимации выпадающего меню */
.dropdown-menu {
    transform-origin: top center;
    animation: dropdown-animation 0.2s ease-out;
}

@keyframes dropdown-animation {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшение видимости счетчика в темном режиме */
@media (prefers-color-scheme: dark) {
    .badge-warning {
        color: #000;
        background-color: #ffcc00;
        box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    }
}

/* Стили для счетчика закладок */
.badge-secondary {
    color: #fff;
    background-color: #6c757d;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover .badge-secondary {
    background-color: #5a6268;
}

/* Улучшение стиля формы входа */
.dropdown-menu .reg {
    padding: 10px;
    min-width: 220px;
}

.dropdown-menu .reg .form-control {
    margin-bottom: 10px;
}

.dropdown-menu .reg .btn {
    width: 100%;
    margin-top: 5px;
}

/* Улучшение стиля формы входа в мобильной версии */
@media (max-width: 991.98px) {
    .dropdown-menu .reg {
        min-width: 250px;
        padding: 15px;
    }
    
    .dropdown-menu .reg .form-control {
        margin-bottom: 12px;
        font-size: 16px; /* Предотвращает масштабирование на iOS */
        height: 40px;
    }
    
    .dropdown-menu .reg .btn {
        padding: 8px 12px;
        font-size: 16px;
        height: 40px;
    }
    
    /* Улучшение стиля формы входа для сенсорных устройств */
    .dropdown-menu .reg input[type="text"],
    .dropdown-menu .reg input[type="password"] {
        -webkit-appearance: none;
        border-radius: 4px;
        border: 1px solid #ced4da;
    }
    
    .dropdown-menu .reg input[type="text"]:focus,
    .dropdown-menu .reg input[type="password"]:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }
    
    .dropdown-menu .reg .btn-success {
        background-color: #28a745;
        border-color: #28a745;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    
    .dropdown-menu .reg .btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }
    
    .dropdown-menu .reg .btn-success:active {
        background-color: #1e7e34;
        border-color: #1c7430;
    }
}

/* Улучшенные стили для иконок в выпадающем меню */
.dropdown-item .fa {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #6c757d;
    transition: color 0.2s ease;
}

.dropdown-item:hover .fa {
    color: #007bff;
}

.dropdown-item.active .fa, .dropdown-item:active .fa {
    color: white;
}

/* Стили для активного пункта меню */
.navbar-light .navbar-nav .nav-item.active:not(.dropdown) .nav-link {
    color: #007bff;
    font-weight: 500;
    border-bottom: 2px solid #007bff;
}

/* Стиль для активного выпадающего пункта меню */
.navbar-light .navbar-nav .nav-item.dropdown.active .nav-link {
    color: #007bff;
    font-weight: 500;
    /* Убираем нижнюю границу для выпадающих пунктов */
    border-bottom: none;
}

.navbar-light .navbar-nav .nav-item .nav-link:hover {
    color: #007bff;
}

/* Улучшенные стили для пунктов меню */
.navbar-nav .nav-item {
    margin: 0 2px;
}

.navbar-nav .nav-item .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-item:not(.dropdown) .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.navbar-nav .nav-item:not(.dropdown) .nav-link:hover::after {
    width: 100%;
}

/* Стиль для активного пункта меню (не выпадающего) */
.navbar-nav .nav-item:not(.dropdown).active .nav-link::after {
    width: 100%;
}

/* Улучшенные стили для счетчика новых сообщений (badge) */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.nav-link .badge {
    position: relative;
    top: -1px;
    margin-left: 5px;
}

.dropdown-item .badge {
    float: right;
    margin-left: 5px;
}

.dropdown-menu .dropdown-item .badge {
    margin-top: 2px;
}

/* Анимация для счетчика новых сообщений */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.badge-warning {
    animation: pulse 1.5s infinite;
}

/* Стили для счетчика закладок */
.badge-secondary {
    color: #fff;
    background-color: #6c757d;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover .badge-secondary {
    background-color: #5a6268;
}

/* Улучшение видимости счетчика закладок в темном режиме */
@media (prefers-color-scheme: dark) {
    .badge-secondary {
        background-color: #495057;
    }
    
    .dropdown-item:hover .badge-secondary {
        background-color: #343a40;
    }
    
    .badge-warning {
        color: #000;
        background-color: #ffcc00;
        box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    }
}

/* Улучшение стиля выпадающего меню в мобильной версии */
@media (max-width: 991.98px) {
    .dropdown-menu {
        border: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        padding: 0.5rem 0;
        transform-origin: top center;
        animation: dropdown-animation 0.2s ease-out;
    }
    
    @keyframes dropdown-animation {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .dropdown-item {
        padding: 0.5rem 1.5rem;
        font-size: 16px;
    }
    
    .dropdown-item i {
        width: 20px;
        text-align: center;
        margin-right: 8px;
    }
    
    .dropdown-divider {
        margin: 0.5rem 0;
    }
    
    .badge {
        padding: 0.25em 0.7em;
        font-size: 80%;
    }
    
    .nav-link .badge {
        margin-left: 8px;
    }
    
    .dropdown-item .badge {
        margin-right: 5px;
    }
}

/* Улучшение стиля формы входа */
.dropdown-menu .reg {
    padding: 10px;
    min-width: 220px;
}

.dropdown-menu .reg .form-control {
    margin-bottom: 10px;
}

.dropdown-menu .reg .btn {
    width: 100%;
    margin-top: 5px;
}

/* Улучшение мобильного меню */
@media (max-width: 991.98px) {
    /* Улучшение стиля кнопки переключения меню */
    .navbar-toggler {
        padding: 0.5rem;
        border-color: rgba(0, 123, 255, 0.3);
        background-color: rgba(0, 123, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background-color: rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.5);
    }
    
    .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }
    
    /* Улучшение анимации иконки переключения меню */
    .navbar-toggler-icon {
        transition: transform 0.3s ease;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        transform: rotate(90deg);
    }
    
    /* Улучшение стиля мобильного меню */
    .navbar-collapse {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-item .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .nav-item .nav-link::after {
        display: none;
    }
    
    /* Улучшение стиля активного пункта меню в мобильной версии */
    .navbar-light .navbar-nav .nav-item.active .nav-link {
        background-color: rgba(0, 123, 255, 0.1);
        border-left: 3px solid #007bff;
        border-bottom: none;
        padding-left: calc(1rem - 3px);
    }
}

/* Стили для выпадающего меню профиля */
.navbar-nav .dropdown-menu {
    min-width: 280px;
    width: auto;
}

/* Улучшение отображения счетчиков в выпадающем меню */
.dropdown-item .badge {
    float: right;
    margin-left: 5px;
    position: relative;
    top: 2px;
}

/* Улучшение отображения длинных пунктов меню */
@media (min-width: 992px) {
    .dropdown-menu {
        max-width: 320px;
    }
}

@media (max-width: 991.98px) {
    .dropdown-menu {
        min-width: 250px;
        max-width: 90vw;
        width: auto;
    }
}
