/*!
Theme Name: $plugonsol
*/

/* ============================================================
   MSN MESSENGER / WINDOWS XP (LUNA) EDITION
   ============================================================ */

* { box-sizing: border-box; }

body {
  font-family: 'Tahoma', 'Segoe UI', 'Arial', sans-serif !important;
  font-size: 12px !important;
  /* Классический фон MSN-эры — мягкий синий градиент */
  background: linear-gradient(180deg, #3a6ea5 0%, #1e4d7b 100%);
  margin: 0;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ===== Скрытые элементы ===== */
.section1,
.wcTitle,
.wcAvatar,
.wcFooter {
  display: none !important;
}

/* ===== Главное окно (MSN / Luna) ===== */
.window {
  width: 100%;
  max-width: 1200px;
  background: #ECE9D8;
  border: 1px solid #003c74;
  border-radius: 8px 8px 0 0;
  box-shadow:
    0 0 0 1px #ffffff inset,
    0 10px 30px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== Заголовок окна (градиент Luna Blue) ===== */
.window-title {
  background: linear-gradient(180deg,
    #0058ee 0%,
    #3593ff 8%,
    #288eff 40%,
    #127dff 88%,
    #036ffc 93%,
    #0054e3 95%,
    #0042c8 100%);
  color: #ffffff;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  cursor: default;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
  border-bottom: 1px solid #003c74;
  border-radius: 7px 7px 0 0;
}

.window-title-text {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msn-title-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #fff;
  padding: 1px;
  box-shadow: 0 0 0 1px #003c74;
}

/* ===== Кнопки управления окном (Luna) ===== */
.window-controls {
  display: flex;
  gap: 3px;
}

.window-btn {
  width: 22px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -2px 3px rgba(0,0,0,0.25);
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.min-btn, .max-btn {
  background: linear-gradient(180deg, #7fb2ff 0%, #3d8bff 50%, #1a5fd0 100%);
}
.min-btn:hover, .max-btn:hover {
  background: linear-gradient(180deg, #a7ccff 0%, #5aa1ff 50%, #2668d6 100%);
}

.close-btn {
  background: linear-gradient(180deg, #ff9a8a 0%, #e64545 50%, #b81f1f 100%);
}
.close-btn:hover {
  background: linear-gradient(180deg, #ffb8ac 0%, #ff5757 50%, #d62c2c 100%);
}

.window-btn:active {
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.45);
}

/* ===== Строка меню ===== */
.menu-bar {
  background: linear-gradient(180deg, #f4f2e8 0%, #ECE9D8 100%);
  border-bottom: 1px solid #aca899;
  padding: 2px 6px;
}
.menu-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.menu-bar ul li {
  font-size: 12px;
  padding: 3px 10px;
  cursor: default;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #000;
}
.menu-bar ul li:hover {
  background: linear-gradient(180deg, #4a9bff 0%, #0054e3 100%);
  color: #ffffff;
  border-color: #003c74;
}

/* ===== Панель инструментов ===== */
.toolbar {
  background: linear-gradient(180deg, #fdfdfd 0%, #ECE9D8 100%);
  border-bottom: 1px solid #aca899;
  padding: 5px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.toolbar button {
  font-family: 'Tahoma', 'Segoe UI', sans-serif !important;
  font-size: 11px;
  padding: 3px 12px;
  color: #003c74 !important;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 45%, #d6d2c2 100%) !important;
  border: 1px solid #7F9DB9 !important;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 0 rgba(0,0,0,0.15);
}
.toolbar button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 45%, #cfe2ff 100%) !important;
  border-color: #0054e3 !important;
}
.toolbar button:active {
  background: linear-gradient(180deg, #cfe2ff 0%, #a9c9ff 100%) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

/* ===== Основная область ===== */
.main-content {
  background: #ECE9D8;
  padding: 6px;
  flex: 1;
}

.main {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border: 1px solid #7F9DB9;
  border-radius: 4px;
  padding: 4px;
  margin: 0;
}

/* ===== Левая панель (контакты) ===== */
.sub1 {
  width: 150px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f4f8ff 0%, #dce9f7 100%);
  border-right: 1px solid #7F9DB9;
  border-radius: 3px 0 0 3px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sub1 img { width: 64px; margin-bottom: 8px; }

.sub1 .contact-label {
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(180deg, #4a9bff 0%, #0054e3 100%);
  border: 1px solid #003c9e;
  width: 100%;
  text-align: center;
  padding: 4px 0;
  border-radius: 3px;
  margin-bottom: 8px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  letter-spacing: 0.5px;
}

.sub1 .contact-list {
  font-size: 11px;
  color: #000;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sub1 .contact-list li {
  padding: 3px 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: default;
}
.sub1 .contact-list li:hover {
  background: linear-gradient(180deg, #4a9bff 0%, #0054e3 100%);
  color: #ffffff;
}
.sub1 .contact-list a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* ===== Правая часть ===== */
.sub2 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Навигационная панель ===== */
.nav {
  margin: 4px 0 6px 6px;
  border: 1px solid #7F9DB9;
  background: linear-gradient(180deg, #ffffff 0%, #ECE9D8 100%);
  border-radius: 4px;
  display: flex;
  padding: 4px 6px;
  gap: 6px;
  align-items: center;
}
.nav button.gray {
  margin-left: auto !important;
}
.nav button {
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 45%, #d6d2c2 100%);
  border: 1px solid #7F9DB9;
  border-radius: 3px;
  color: #003c74;
  font-weight: bold;
  padding: 3px 10px;
  font-size: 11px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 0 rgba(0,0,0,0.15);
}
.nav button.blue {
  background: linear-gradient(180deg, #4a9bff 0%, #0054e3 100%);
  color: #fff !important;
  border-color: #003c74;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
.nav button.blue:hover {
  background: linear-gradient(180deg, #6db0ff 0%, #1a6bff 100%);
}
.nav button.gray {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  color: #333 !important;
  background: #f0f0f0;
}

/* ===== Двухколоночная область ===== */
.sub2-1 {
  display: flex;
  flex-direction: row;
  flex: 1;
}

/* ===== Контейнер чата ===== */
.container {
  flex-grow: 1;
  margin: 4px 6px 4px 6px;
  border: 1px solid #7F9DB9;
  background: #ffffff;
  border-radius: 4px;
  padding: 6px;
  overflow: auto;
}

/* ===== Секции внутри чата ===== */
.section-container {
  display: flex;
  flex-direction: row;
  border: 1px solid #7F9DB9;
  background: #ffffff;
  border-radius: 3px;
  margin: 2px 0;
}
.section-title {
  text-align: center;
  border: 1px solid #7F9DB9;
  background: linear-gradient(180deg, #f4f8ff 0%, #dce9f7 100%);
  color: #003c74;
  font-weight: bold;
  padding: 3px;
}

/* ===== Wise Chat под MSN ===== */
.wcContainer.wcLightgrayTheme .wcChannel .wcChannelData .wcMessages,
.wcChannelInput {
  background: #ffffff !important;
  border: 1px solid #7F9DB9 !important;
  border-radius: 3px;
}
.wcContainer.wcLightgrayTheme,
.wcContainer.wcLightgrayTheme * {
  font-family: 'Tahoma', 'Segoe UI', 'Arial', sans-serif !important;
  font-size: 12px;
}
.wcContainer .wcChannel .wcChannelInput .wcInputs {
  border: 1px solid #7F9DB9 !important;
  border-radius: 3px;
  background: #ffffff;
}
.wcContainer .wcChannel .wcChannelInput .wcInputs:focus {
  border-color: #0054e3 !important;
  box-shadow: 0 0 3px rgba(0,84,227,0.5);
  outline: none;
}
.wcSubmit {
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 45%, #d6d2c2 100%) !important;
  border: 1px solid #7F9DB9 !important;
  border-radius: 3px;
  color: #003c74 !important;
  font-weight: bold;
}
.wcSubmit:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 45%, #cfe2ff 100%) !important;
  border-color: #0054e3 !important;
}

/* ===== Боковая панель кнопок ===== */
.buttons-container {
  margin: 4px 4px 4px 0;
  display: flex;
  flex-direction: column;
  min-width: 80px;
}
.button-set1 { display: flex; flex-direction: column; }
.buttons1 { display: flex; flex-direction: column; gap: 2px; }
.buttons1-1 { display: flex; flex-direction: column; }
.buttons-container button {
  margin-bottom: 2px;
  margin-top: 2px;
  margin-right: auto !important;
}

/* ===== Универсальные кнопки ===== */
button {
  font-family: 'Tahoma', 'Segoe UI', sans-serif !important;
  font-size: 12px !important;
  color: #003c74 !important;
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 45%, #d6d2c2 100%);
  border: 1px solid #7F9DB9 !important;
  border-radius: 3px;
  padding: 3px 12px;
  margin: 2px !important;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 0 rgba(0,0,0,0.15);
}
button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 45%, #cfe2ff 100%);
  border-color: #0054e3 !important;
}
button:active {
  background: linear-gradient(180deg, #cfe2ff 0%, #a9c9ff 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

/* ===== Строка состояния ===== */
.status-bar {
  background: linear-gradient(180deg, #f4f2e8 0%, #ECE9D8 100%);
  border-top: 1px solid #aca899;
  padding: 3px 8px;
  font-size: 11px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #b6ffb6, #2ecc40 60%, #157a1f);
  box-shadow: 0 0 3px #2ecc40;
}

/* ===== Прочие элементы ===== */
fieldset {
  border: 1px solid #7F9DB9 !important;
  border-radius: 3px;
  padding: 8px !important;
  background: #f4f8ff;
  margin: 4px 0;
}
fieldset legend {
  color: #003c74;
  font-weight: bold;
  padding: 0 4px;
}
fieldset p { color: #000 !important; }

input, textarea {
  background: #ffffff;
  border: 1px solid #7F9DB9;
  border-radius: 3px;
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #000;
  padding: 3px 6px;
}
input:focus, textarea:focus {
  border-color: #0054e3;
  box-shadow: 0 0 3px rgba(0,84,227,0.5);
  outline: none;
}
::placeholder { color: #999; }

hr { border: 1px dashed #aca899; }
.date { color: #808080; }

.blue {
  background: linear-gradient(180deg, #4a9bff 0%, #0054e3 100%);
  color: #fff !important;
  border-color: #003c74;
}
.gray { background: #f0f0f0; }

/* ===== XP-скроллбар ===== */
::-webkit-scrollbar {
  width: 16px;
  background: #f0f0f0;
}
::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-left: 1px solid #d4d0c8;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #cfd8e8 0%, #9fb6d6 50%, #7F9DB9 100%);
  border: 1px solid #7F9DB9;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #dfe7f5 0%, #b0c6e0 50%, #5a86c0 100%);
}