/* ============================================================
   Light-Chat — адаптивная к цветовым схемам версия стилей.
   Все цвета идут через переменные --lc-* (значения по умолчанию —
   «День»). Схемы переопределяют переменные в своих CSS-файлах:
   /public/css/schemes/*.css и /public/css/schemes-bs5/*.css —
   т.к. scheme.js меняет файл схемы на лету, чат перекрашивается
   без перезагрузки.
   ============================================================ */
:root{
  --lc-bg:#fff;
  --lc-fg:#444;
  --lc-fg-strong:#333;
  --lc-muted:#999;
  --lc-muted2:#777;
  --lc-border:#ddd;
  --lc-border2:#ccc;
  --lc-border3:#eee;
  --lc-panel:#fafafa;
  --lc-panel2:#f5f5f5;
  --lc-hover:#f7f9ff;
  --lc-personal:#F0FDE6;
  --lc-link:#008fd5;
  --lc-accent:#428bca;
  --lc-danger:#d00;
  --lc-notice:#f7e7f0;
  --lc-head-bg:#f5f5f5;
  --lc-head-fg:#333;
  --lc-bb-bg:#e0e0eb;
  --lc-bb-img:url('/public/lightchat/bbcodes/bg.gif');
  --lc-progress:#eee;
  --lc-progress-bar:#44A0DE;
  --lc-video-border:#44a0de;
}

/* ---------- Заголовок виджета ---------- */
.lc_head{
  background:var(--lc-head-bg);
  color:var(--lc-head-fg);
  border:1px solid var(--lc-border);
  border-bottom:none;
  padding:8px 12px;
  font:bold 13px/1.3 Tahoma,Arial,sans-serif;
  letter-spacing:.2px;
}
.lc_head i{margin-right:6px;font-style:normal}

/* ---------- Каркас ---------- */
.lc_area {
  border: 1px solid var(--lc-border);
  border-top: none;
  background: var(--lc-bg);
  position: relative;
  vertical-align: baseline;
  color: var(--lc-fg);
}
.lc_bb_modal ul,
.lc_modal ul,
.lc_area ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lc_bb_modal ul li,
.lc_modal ul li,
.lc_area ul li{
  margin: 0;
  display: block;
}
.lc_area .lc_chat_list_area {
  height: 400px;
  position: relative;
  border-top: 1px solid var(--lc-border);
}
/* timeout */
.lc_chat_timeout {
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.lc_shader{
  position:fixed;
  z-index:9998;
}
.lc_chat_timeout_descr {
  position: absolute;
  top: 45%;
  left: 0;
  width: 100%;
  font: normal 12px Arial;
  color: #eee;
  text-align: center;
}
a.lc_chat_timeout_imback {
  display: block;
  width: 90px;
  height: 31px;
  line-height: 31px;
  text-decoration: none;
  margin: 7px auto 0;
  border: 1px solid #000;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #f0f0f0;
  border-radius: 3px;
}
a.lc_chat_timeout_imback:hover {
  color: #fff;
  background: #000;
}
.lc_chat_list {
  height: 100%;
  width: 100%;
  overflow: auto;
}
.lc_chat_list a {
  color: var(--lc-link);
}
.lc_chat_list .lc_nomess {
  height: 31px;
  font: normal 12px/31px Arial;
  color: var(--lc-muted2);
  text-align: center;
  background: var(--lc-panel);
}
.lc_chat_list .lc_chat_li {
  padding: 4px 7px;
  border-bottom: 1px dotted var(--lc-border2);
  font: normal 11px Tahoma;
  color: var(--lc-fg);
  position: relative;
  overflow: hidden;
}
.lc_chat_list .lc_chat_li:hover {
  background: var(--lc-hover);
}
.lc_chat_list .lc_chat_li:nth-child(2n) {
  background: var(--lc-panel);
}
.lc_chat_list .lc_chat_li:after {
  clear: both;
  content: "";
  display: table;
}
.lc_chat_list .lc_chat_li.lc_personal {
  background: var(--lc-personal);
}
.lc_chat_list .lc_chat_li_foto {
  padding-left: 49px;
}
.lc_chat_list .lc_chat_li_foto_block {
  float: left;
  width: 40px;
  height: 40px;
  overflow: hidden;
  margin-left: -45px;
  text-decoration:none;
}
.lc_chat_list .lc_chat_li_foto_block img {
  width: 100%;
  border: none;
}
.lc_chat_list .lc_chat_li_date {
  position: absolute;
  top: 4px;
  right: 5px;
  color: var(--lc-muted);
}
.lc_chat_list .lc_chat_li_autor {
  font-weight: bold;
  text-decoration: none;
  color: var(--lc-fg-strong);
}
.lc_chat_list .lc_chat_li_autor:hover {
  text-decoration: underline;
  color: var(--lc-danger);
}
.lc_chat_list .lc_chat_li_text {
  word-wrap: break-word;
  padding: 2px 0;
}
.lc_chat_list .lc_chat_li_text a {
  color: var(--lc-link);
}
.lc_chat_list .lc_chat_li_text b.lc_member {
  color: var(--lc-link);
  font-weight: normal;
}
.lc_chat_list .lc_chat_li_text img {
  max-width: 100%;
  max-height: 200px;
  border: none;
  vertical-align: baseline;
}
.lc_chat_list .lc_chat_li_act {
  height: 18px;
  float:right;
  padding:0 0 2px 0;
}
.lc_chat_list .lc_chat_li_act li {
  float: left;
  color: var(--lc-muted);
  cursor: pointer;
  padding: 0 0 0 5px;
  font: normal 10px/18px Tahoma;
}
.lc_chat_list .lc_chat_li_act li.lc_act_hidden {
  display:none;
}
.lc_chat_list .lc_chat_li_act li a {
  color: var(--lc-muted2);
  text-decoration: none;
}
.lc_chat_list .lc_chat_li_act li:hover, .lc_chat_list .lc_chat_li_act li a:hover {
  color: var(--lc-link);
}

/* цвета групп: нейтральные видны на светлом и тёмном,
   4/5 (серые) подправлены в схемах */
.lc_chat_list .lc_chat_li .lc_group_1 {
  color: #f14d4d;
}
.lc_chat_list .lc_chat_li .lc_group_2 {
  color: #5b9a68;
}
.lc_chat_list .lc_chat_li .lc_group_3 {
  color: #4d8ff0;
}
.lc_chat_list .lc_chat_li .lc_group_4 {
  color: var(--lc-fg-strong);
}
.lc_chat_list .lc_chat_li .lc_group_5 {
  color: var(--lc-muted2);
}

/* ---------- Ввод ---------- */
.lc_textarea textarea{
  margin:0;
  display: inline-block;
  width: 100%;
  padding: 4px;
  border: none;
  border-bottom: 1px solid var(--lc-border2);
  border-top: 1px solid var(--lc-border2);
  resize: vertical;
  font: normal 11px/15px Tahoma;
  color: var(--lc-fg-strong);
  background: var(--lc-bg);
  height:80px;
  box-sizing: border-box;
  outline: none;
}
.lc_progress{
  height:2px;
  background:var(--lc-progress);
}
.lc_progress_bar{
  width:100%;
  height:100%;
  background:var(--lc-progress-bar);
}
.lc_edit {
  border: 1px solid var(--lc-border2);
  border-bottom: none;
  border-top: none;
}
.lc_edit textarea {
  height: 150px;
}
.lc_loading {
  background-image: url('loading.gif');
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.lc_doregerr {
  text-align: center;
  padding: 7px;
  border-top: 1px solid var(--lc-border2);
}
.lc_doregerr > div {
  padding: 7px;
  background: var(--lc-notice);
  border-radius: 2px;
  color: var(--lc-fg-strong);
}
.lc_doregerr a{ color: var(--lc-link); }
.lc_buttons {
  height: 25px;
  padding: 7px;
  position: relative;
}
.lc_buttons .lc_symb_left {
  float: left;
  line-height: 25px;
  color: var(--lc-muted);
  font-size: 11px;
}
.lc_buttons a {
  float: right;
  height: 23px;
  font: normal 12px Arial;
  line-height: 23px;
  color: var(--lc-fg-strong);
  margin-left: 7px;
  text-decoration: none;
}
.lc_buttons .lc_add {
  border: 1px solid var(--lc-border2);
  background: var(--lc-panel);
  padding: 0 10px;
  border-radius: 2px;
}
.lc_buttons .lc_add:hover {
  background: var(--lc-accent);
  border-color: var(--lc-accent);
  color: #fff;
}
.lc_buttons a.lc_archive {
  height: 16px;
  margin-top:5px;
}
.lc_buttons a.lc_soundoff {
  height: 16px;
  margin-top:5px;
}
.lc_buttons .lc_admin_settings {
  float: left;
  margin: 4px 5px 0 0;
  cursor: pointer;
}
.lc_buttons .lc_admin_list {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  border: 1px solid var(--lc-border2);
  background: var(--lc-panel);
  color: var(--lc-fg-strong);
  z-index: 50;
}
.lc_buttons .lc_admin_list li {
  padding: 5px 10px;
  cursor: pointer;
}
.lc_buttons .lc_admin_list li:hover {
  background: var(--lc-bg);
  color: var(--lc-link);
}

/* ---------- Модалки ---------- */
.lc_modal {
  z-index:9997;
  position: fixed !important;
  display: none;
  top: 30%;
  left: 50%;
  width: 700px;
  margin-left: -350px;
  background: var(--lc-bg);
  border: 1px solid var(--lc-muted);
  color: var(--lc-fg-strong);
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  border-radius: 5px;
}
.lc_modal_header {
  height: 55px;
  border-bottom: 1px solid var(--lc-border3);
  font: normal 18px/55px Arial;
  padding: 0 15px;
  cursor: move;
  position: relative;
}
a.lc_modal_header_close {
  position: absolute;
  height: 19px;
  width: 19px;
  top: 18px;
  right: 18px;
  text-align: center;
  font: bold 12px/19px Verdana;
  color: var(--lc-fg-strong);
  text-decoration: none;
  border-radius: 3px;
}
.lc_modal_header_close:hover {
  border: 1px solid var(--lc-border3);
  line-height: 17px;
  height: 17px;
  width: 17px;
}
.lc_modal_content {
  padding: 20px;
  max-height: 270px;
  overflow: auto;
}
.lc_modal_content a {
  color: var(--lc-link);
}
.lc_modal_buttons {
  height: 34px;
  border-top: 1px solid var(--lc-border3);
  padding: 20px;
}
.lc_modal_buttons a {
  display:none;
  float: right;
  height: 32px;
  font: normal 12px Arial;
  line-height: 32px;
  border: 1px solid var(--lc-border2);
  background: var(--lc-bg);
  color: var(--lc-fg-strong);
  padding: 0 15px;
  margin-left: 10px;
  text-decoration: none;
  border-radius: 4px;
}
.lc_modal_buttons a:hover {
  background: var(--lc-accent);
  border-color: var(--lc-accent);
  color: #fff;
}
.lc_modal_buttons a.lc_modal_button_hide {
  display: none;
}
.lc_modal_buttons a.lc_modal_truncate{
  display: none;
}
.lc_chat_color_ins{
  text-indent:-10000px;
}
.lc_bb_modal {
  z-index: 9997;
  position: fixed !important;
  display: none;
  top: 30%;
  left: 50%;
  background: var(--lc-bg);
  border: 1px solid var(--lc-muted);
  color: var(--lc-fg-strong);
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  border-radius: 5px;
  width: 540px;
  margin-left: -270px;
}
.lc_bb_modal_content {
  padding: 20px;
  max-height: 270px;
  overflow: hidden;
}
.lc_bb_modal_content a {
  color: var(--lc-link);
}
ul.lc_bb_modal_content {
  padding: 10px;
}
ul.lc_bb_modal_content li {
  padding: 20px 0 20px 200px;
  height: 50px;
}
ul.lc_bb_modal_content li span {
  float: left;
  margin-left: -200px;
  line-height: 21px;
}
ul.lc_bb_modal_content li input {
  width: 300px;
  border: 1px solid var(--lc-border2);
  background: var(--lc-bg);
  color: var(--lc-fg-strong);
  border-radius: 4px;
}
.lc_bb_modal_buttons {
  padding: 10px;
  border-top: 1px solid var(--lc-border3);
  height: 27px;
}
.lc_bb_modal_buttons a {
  float: right;
  height: 25px;
  font: normal 12px Arial;
  line-height: 25px;
  border: 1px solid var(--lc-border2);
  background: var(--lc-bg);
  color: var(--lc-fg-strong);
  padding: 0 15px;
  margin-left: 10px;
  text-decoration: none;
  border-radius: 4px;
}
.lc_bb_modal_buttons a:hover {
  background: var(--lc-accent);
  border-color: var(--lc-accent);
  color: #fff;
}

/* ---------- Пагинация архива ---------- */
.lc_navigation {
  padding: 10px 0 15px;
}
.lc_navigation:after {
  clear: both;
  content: "";
  display: table;
}
.lc_navigation * {
  height: 23px;
  font: bold 12px/23px Arial;
  color: var(--lc-muted2);
  float: left;
  border: 1px solid var(--lc-border2);
  padding: 0 5px;
  margin: 5px 5px 0 0;
  border-radius: 3px;
}
.lc_navigation a {
  color: var(--lc-link);
  text-decoration: none;
}
.lc_navigation a:hover {
  border-color: var(--lc-link);
}
.lc_navigation span {
  border-color: var(--lc-border3);
}

/* ---------- Видео/картинки ---------- */
.lc_video_trigger{
  cursor:pointer;
  display:block;
  margin:2px 0;
  border:3px solid var(--lc-video-border);
  border-radius:3px;
  position:relative;
  width:120px;
  height:90px;
}
.lc_video_trigger:hover{
  border-color:#ed4e1e;
}
.lc_video_trigger:after{
  display:block;
  content:" ";
  position:absolute;
  top:0;
  left:0;
  background:url('video-play.png') no-repeat 50% 50%;
  width:100%;
  height:100%;
}
.lc_video_trigger img{
  display:block;
  width:100%;
  height:100%;
}
.lc_video_frame{
  z-index:9999;
  position:fixed;
  top:50px;
  left:50%;
  padding:23px 5px 5px 5px;
  background:var(--lc-bg);
  margin-left:-430px;
  border:1px solid var(--lc-border2);
  border-radius:4px;
  box-shadow:0 2px 6px rgba(0,0,0,0.2);
}
.lc_video_frame a{
  position: absolute;
  top: 0;
  right: 10px;
  height: 22px;
  color: var(--lc-link);
  font: 11px/22px Tahoma;
  text-decoration: none;
}
.lc_video_frame a:hover{
  color: var(--lc-fg-strong);
}
.lc_video_frame iframe{
  display:block;
}
#lc_img_preview {
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: var(--lc-bg);
  padding: 3px;
  position: fixed !important;
  cursor: move;
  z-index: 9999;
  top: 100px;
  left: 50%;
  border: 1px solid var(--lc-border2);
  border-radius: 4px;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.4);
}

/* ---------- Окошки смайлов и цвета ---------- */
.lc_modal_colors,
.lc_modal_smiles {
  display: none;
  left: 0;
  position: absolute;
  background: var(--lc-bg);
}
.lc_modal_colors .lc_smile_close,
.lc_modal_smiles .lc_smile_close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 5px;
  font: normal 11px/20px Tahoma;
  color: var(--lc-link);
  text-decoration: none;
  z-index: 5;
}
.lc_modal_colors .lc_smile_close:hover,
.lc_modal_smiles .lc_smile_close:hover {
  color: var(--lc-fg-strong);
}
.lc_modal_colors {
  bottom: 0;
  width: 224px;
  height: 200px;
  box-shadow: 1px -1px 3px rgba(0,0,0,0.25);
  z-index: 40;
}
.lc_modal_smiles {
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 40;
}
.lc_smiles_div {
  width: 100%;
  height: 300px;
  top: 24px;
}
.lc_smiles_groups {
  width: 100%;
  height: 23px;
  background: var(--lc-panel2);
  border-bottom: 1px solid var(--lc-border2);
}
.lc_smiles_groups li {
  height: 23px;
  font: normal 12px/23px Arial;
  color: var(--lc-fg-strong);
  background: var(--lc-panel);
  float: left;
  width: 30px;
  text-align: center;
  border-right: 1px solid var(--lc-border);
  cursor: pointer;
}
.lc_smiles_groups li.lc_smiles_current {
  border-color: var(--lc-border2);
  background: var(--lc-bg);
  height: 24px;
  cursor: default;
}
ul.lc_smiles_ul {
  display: none;
  height: 100%;
  overflow: auto;
}
ul.lc_smiles_ul.lc_smiles_current {
  display: block;
}
ul.lc_smiles_ul:after {
  clear: both;
  content: "";
  display: table;
}
ul.lc_smiles_ul li {
  float: left;
  text-align: center;
  padding: 5px;
}
ul.lc_smiles_ul li:hover {
  box-shadow: inset 0 0 4px #fc0;
}
ul.lc_smiles_ul li img {
  cursor: pointer;
  display: inline-block;
}
ul.lc_smiles_ul_1 li {
  width: 40px;
  height: 40px;
}
ul.lc_smiles_ul_2 li {
  width: 32px;
  height: 32px;
}
ul.lc_smiles_ul_3 li {
  height: 42px;
}
ul.lc_smiles_ul_4 li {
  height: 75px;
  padding:5px 10px;
}
ul.lc_color_list {
  border: 1px solid var(--lc-border2);
  width: 192px;
  bottom: 15px;
  left: 15px;
  position: absolute;
}
ul.lc_color_list:after {
  clear: both;
  content: "";
  display: table;
}
ul.lc_color_list li {
  width: 14px;
  height: 14px;
  float: left;
  border: 1px solid var(--lc-border2);
  cursor: pointer;
}
ul.lc_color_list li:hover {
  border-color: var(--lc-fg-strong);
}

/* ---------- Настройки ---------- */
.lc_setting_list li {
  padding: 5px 0 5px 500px;
  border-bottom: 1px solid var(--lc-border3);
  color: var(--lc-fg);
}
.lc_setting_list li:hover {
  background: var(--lc-panel);
}
.lc_setting_list li:after {
  clear: both;
  content: "";
  display: table;
}
.lc_setting_list li div {
  float: left;
  margin-left: -495px;
  width: 480px;
}
.lc_setting_list li div b {
  display: block;
  padding-bottom: 3px;
}
.lc_setting_list li div span {
  font-size: 11px;
}
.lc_setting_list .lc_set_select,
.lc_setting_list .lc_set_input {
  border: 1px solid var(--lc-border2);
  height: 27px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--lc-bg);
  color: var(--lc-fg-strong);
}
.lc_setting_list .lc_set_input {
  width: 120px;
}
.lc_setting_list .lc_set_select {
  width: 70px;
}
.lc_setting_list textarea.lc_set_input {
  padding: 5px;
  height: 90px;
  font: normal 11px/15px Arial;
}

/* ---------- Список бани ---------- */
.lc_banned_list li {
  line-height: 29px;
  padding-bottom: 5px;
  color: var(--lc-fg);
}
.lc_banned_list li:after {
  clear: both;
  content: "";
  display: table;
}
.lc_banned_list input {
  border: 1px solid var(--lc-border2);
  height: 27px;
  padding: 0 5px;
  border-radius: 4px;
  width: 300px;
  float: right;
  margin-left: 5px;
  background: var(--lc-bg);
  color: var(--lc-fg-strong);
}
.lc_banned_list input.lc_ban_date {
  width: 150px;
}
.lc_banned_list input.lc_unban {
  width: 16px;
  height: 16px;
  padding: 0;
  margin-top: 5px;
}

/* ---------- Архив страниц ---------- */
a.lc_archive_id{
  color: var(--lc-link);
}
a.lc_archive_id:hover{
  color: var(--lc-fg-strong);
}
.lc_archive_pages{
  border-top:1px dotted var(--lc-border3);
}
.lc_archive_pages li{
  padding:0 10px;
  height:29px;
  border-bottom:1px dotted var(--lc-border3);
  font:normal 11px/29px Arial;
  color:var(--lc-muted2);
  position:relative;
}
.lc_archive_pages li:hover{
  background:var(--lc-panel);
}
.lc_archive_pages li a{
  font-size:13px;
  font-weight:bold;
  color:var(--lc-link);
  text-decoration:none;
}
.lc_archive_pages li a:hover{
  color:var(--lc-fg-strong);
}
.lc_archive_pages li span{
  float:right;
  color:var(--lc-muted);
}

/* ---------- Иконки ---------- */
/* На тёмных схемах --lc-glyph-filter инвертирует чёрные глифы gif/png-спрайтов */
.lc_bb_panel li{filter:var(--lc-glyph-filter,none);}
.lc_icon{
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('icons.png') no-repeat;
  opacity: 0.8;
  filter:var(--lc-glyph-filter,none);
}
.lc_icon:hover{
  opacity: 1;
}
.lc_icon_admin{
  background-position: 0 0;
}
.lc_icon_archive{
  background-position: -16px 0;
}
.lc_icon_sound{
  background-position: -32px 0;
}
.lc_icon_soundoff{
  background-position: -48px 0;
}

/* ---------- Цитата/спойлер внутри чата: ПЕРЕБИВАЕМ skin engine.css
   (.quote{color:#000;background:#f5f5f5} — на тёмных схемах текст
   становился невидимым), задаём и фон, и цвет ---------- */
.lc_chat_li_text .quote{
  border-left:2px solid var(--lc-link);
  background:var(--lc-panel);
  color:var(--lc-fg);
  padding:4px 8px;
  margin:2px 0;
}
.lc_chat_li_text .title_quote{
  font-size:10px;
  font-weight:bold;
  color:var(--lc-muted);
  padding:2px 0 0 8px;
}
.lc_chat_li_text .text_spoiler{
  background:var(--lc-panel);
  border:1px dashed var(--lc-border2);
  color:var(--lc-fg);
  padding:4px 8px;
  margin:2px 0;
}
.lc_chat_li_text .title_spoiler{
  color:var(--lc-link);
  cursor:pointer;
}
