/* ======== BASE CARD STYLES ======== */
.card {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  backdrop-filter: blur(6px);
  background-color: rgba(20, 20, 30, 0.65) !important;
}
.card:hover,
.hover-card:hover {
  transform: translateY(-4px);
  border: 2px solid #ffeb7a !important;
}

.card-img-top {
  object-fit: cover;
  height: 160px;
  width: 100%;
}

img.card-img-top {
  width: 100%;
  height: 100%;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
  min-height: 3.6em;
  white-space: normal;
  word-break: break-word;
  font-weight: 600;
  font-size: 1.05rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  color: #eaeaea !important;
}

a.text-decoration-none:hover .card {
  box-shadow: 0 6px 18px rgba(0, 120, 255, 0.25) !important;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.section-title {
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-left: 6px solid #0d6efd;
  padding-left: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title a {
  font-size: 0.9rem;
}

/* ======== CREATOR'S HUB STYLES ======== */
.top-buttons a,
.top-buttons button {
  flex: 1 1 18%;
  min-width: 180px;
  height: 90px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 10px;
}

.top-buttons,
.top-buttons button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

details {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1rem;
}

details summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1rem;
}
details summary::-webkit-details-marker {
  display: none;
}

/* ======== GLOBAL BACKGROUND ======== */
html, body {
  min-height: 100%;
  height: auto;
  background: none;
}

/* === NIGHT SKY KYIV (v2 — vertical gradient version) === */

body.bg-night-sky-kyiv {
  background-color: #081a36;
  color: #fff;
  min-height: 100vh;
}



/* ======== NAVBAR ======== */
.navbar {
  position: relative;
  z-index: 1000;
  background: rgba(10, 20, 40, 0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 120, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.navbar-brand {
  color: #eaeaea !important;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.navbar-brand img {
  filter: drop-shadow(0 0 2px rgba(0, 150, 255, 0.3));
}

.navbar-nav .nav-link {
  color: #cfd8e3 !important;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #f5a300 !important;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}
.navbar-nav .nav-link.active {
  color: #66b3ff !important;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 150, 255, 0.5);
}

/* dropdown */
.dropdown-menu {
    position: absolute !important;
  z-index: 1050 !important;
  background-color: rgba(12, 24, 45, 0.95);
  border: 1px solid rgba(0, 120, 255, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
.dropdown-item {
  color: #d6dbe5;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background-color: rgba(0, 120, 255, 0.15);
  color: #ffd94d;
}

/* discord button */
.btn-outline-primary {
  border-color: #007bff;
  color: #bcdfff;
  transition: all 0.2s ease;
}
.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 120, 255, 0.6);
}

/* user dropdown */
.navbar .dropdown-menu-end {
  background-color: rgba(12, 24, 45, 0.95);
}
.navbar .dropdown-item.text-danger:hover {
  background-color: rgba(255, 0, 0, 0.1);
}


/* === Mobile navbar fix === */
.navbar-toggler {
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 6px;
  padding: 6px 8px;
  background-color: rgba(10, 20, 40, 0.6);
  transition: all 0.2s ease;
}

.navbar-toggler:hover {
  background-color: rgba(0, 120, 255, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,215,0,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
body.nav-open {
  overflow: hidden;
}
/* === Dropdown menu full-width for mobile === */
/* === Mobile navbar fix === */
/* === Full-screen mobile nav with close button === */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none !important;
  }

  .navbar-collapse.show {
    display: flex !important;
    position: fixed !important;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 20, 40, 0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 3rem;
    z-index: 3000; /* поверх усього */
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
  }

  .navbar-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .navbar-nav .nav-link {
    font-size: 1.3rem;
    padding: 0.6rem 0;
    width: 100%;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding-left: 1.5rem;
  }

  /* Бургер → Хрестик */
  .navbar-toggler {
    position: relative;
    z-index: 4000;
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 6px;
    background-color: rgba(10, 20, 40, 0.6);
  }

  .navbar-toggler.open .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,215,0,0.85)' stroke-width='2' stroke-linecap='round' d='M6 6L24 24M24 6L6 24'/%3E%3C/svg%3E");
  }
}

/* Забороняємо скрол сторінки при відкритому меню */
body.nav-open {
  overflow: hidden !important;
  height: 100vh !important;
}
/* === Tournament cards layout fix === */
.container {
  max-width: 1400px;
}

/* Вирівнюємо колонки */
.row.row-cols-1.row-cols-md-3.g-4 {
  row-gap: 2rem !important;
  column-gap: 1.5rem !important;
  justify-content: center;
}

/* Картка */
.card {
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(10, 15, 30, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 120, 255, 0.25) !important;
}

/* Зображення */
.card .ratio {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Контент */
.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  color: #eaeaea;
  padding: 1rem 0.5rem;
}

/* Назва */
.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* Дата */
.card-body p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Кнопка Edit */
.btn-outline-primary.btn-sm {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-primary.btn-sm:hover {
  background-color: #007bff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 120, 255, 0.6);
}

/* Для малих екранів — 2 в ряд */
@media (max-width: 991px) {
  .row.row-cols-1.row-cols-md-3.g-4 {
    row-gap: 1.5rem !important;
    column-gap: 1rem !important;
  }
}
/* === Mobile dropdown background fix === */
@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    background-color: rgba(15, 25, 45, 0.95) !important;
    border: 1px solid rgba(0, 120, 255, 0.15);
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    margin-top: 0.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  }

  .navbar-nav .dropdown-item {
    background: none;
    color: #e0e6f0 !important;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
  }

  .navbar-nav .dropdown-item:hover {
    background-color: rgba(0, 120, 255, 0.15);
    color: #ffd94d !important;
  }
}
/* === Navbar brand (logo + text) === */
.navbar-brand {
  display: flex;
  align-items: center;
  color: #ffd94d !important;
  font-weight: 700;
  line-height: 1;
}

.navbar-brand .brand-text {
  color: #ffd94d;
  font-size: 0.75rem; /* головне — не розтягує navbar */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
}

.navbar-brand .brand-text span {
  display: block;
  line-height: 1.05;
}

/* трошки зменшуємо лого */
.navbar-brand img {
  height: 36px;
  width: auto;
}

/* === Golden stitched edges for navbar === */
.navbar {
  position: relative;
  z-index: 1000;
}

.navbar::before,
.navbar::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, rgba(255,217,77,0.9), rgba(255,217,77,0));
  height: 1px;
  width: 100%;
  left: 0;
  z-index: -1;
}

.navbar::before {
  top: 0;
}

.navbar::after {
  bottom: 0;
  transform: rotate(180deg);
}

/* Бокові “шви” */
.navbar::part(left-edge),
.navbar::part(right-edge) {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,217,77,0.9), rgba(255,217,77,0));
}

.navbar::part(left-edge) {
  left: 0;
}

.navbar::part(right-edge) {
  right: 0;
}

/* === UNIVERSAL INPUT STYLING === */
input.form-control,
textarea.form-control,
select.form-control,
input[type="file"].form-control,
input[type="date"].form-control {
  background: rgba(10, 20, 40, 0.6);
  color: #eaeaea;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

input.form-control::placeholder,
textarea.form-control::placeholder {
  color: rgba(200, 200, 200, 0.6);
}

/* === Hover === */
input.form-control:hover,
textarea.form-control:hover,
select.form-control:hover {
  border-color: rgba(255, 217, 77, 0.4);
  box-shadow: 0 0 5px rgba(255, 217, 77, 0.15);
}

/* === Focus === */
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
  background: rgba(15, 25, 50, 0.8);
  border-color: #ffd94d;
  box-shadow:
    0 0 6px rgba(255, 217, 77, 0.4),
    inset 0 0 3px rgba(255, 217, 77, 0.25);
  outline: none;
  color: #fff;
}

/* === File input === */
input[type="file"].form-control {
  padding: 6px;
  background: rgba(15, 25, 45, 0.6);
  color: #eaeaea;
  cursor: pointer;
}

/* === Labels === */
.form-label {
  color: #ffd94d;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

/* === Buttons match the theme === */
.btn-primary {
  background: linear-gradient(90deg, #2a5a87, #8b7b25);
  border: 1px solid #ffd94d;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #3a7ad8, #c8a11a);
  box-shadow: 0 0 10px rgba(255, 217, 77, 0.4);
}
/* === File input === */
input[type="file"].form-control {
  background: rgba(15, 25, 45, 0.75);
  color: #eaeaea;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

input[type="file"].form-control:hover {
  border-color: rgba(255, 217, 77, 0.6);
  background: rgba(20, 30, 55, 0.85);
  box-shadow: 0 0 6px rgba(255, 217, 77, 0.25);
}

input[type="file"]::file-selector-button {
  background: rgba(40, 60, 90, 0.8);
  color: #ffd94d;
  border: 1px solid rgba(255, 217, 77, 0.4);
  border-radius: 4px;
  padding: 4px 10px;
  margin-right: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(60, 80, 120, 0.9);
  border-color: #ffd94d;
  box-shadow: 0 0 8px rgba(255, 217, 77, 0.3);
}

/* === CKEditor Dark Mode === */
/* === CKEditor Dark Mode — повне оформлення === */
.cke_chrome {
  background: rgba(10, 20, 40, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.cke_top {
  background: rgba(25, 35, 60, 0.95) !important;
  border-bottom: 1px solid rgba(255, 217, 77, 0.25) !important;
}

.cke_bottom {
  background: rgba(25, 35, 60, 0.95) !important;
  border-top: 1px solid rgba(255, 217, 77, 0.15) !important;
}

.cke_contents {
  background: rgba(15, 25, 45, 0.9) !important;
  border-radius: 0 0 8px 8px;
}

/* === Сам iframe — темне полотно === */
iframe.cke_wysiwyg_frame {
  background-color: rgba(15, 25, 45, 0.95) !important;
  color-scheme: dark !important;
}

/* === Стиль контенту всередині iframe === */
iframe.cke_wysiwyg_frame html,
iframe.cke_wysiwyg_frame body {
  background: rgba(15, 25, 45, 0.95) !important;
  color: #eaeaea !important;
  font-family: system-ui, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  padding: 10px !important;
}

/* === Іконки тулбара трохи світліші === */
.cke_button_icon {
  filter: brightness(1.8) contrast(1.3);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.cke_button:hover .cke_button_icon {
  filter: brightness(2.2) contrast(1.4);
  opacity: 1;
}

/* === Текст кнопок тулбара (Styles, Format, Source) === */
.cke_combo_text,
.cke_button_label {
  color: #ffd94d !important;
  font-weight: 500 !important;
}
/* === Select dropdown (dark theme) === */
select.form-select,
select.form-control {
  background: rgba(10, 20, 40, 0.7);
  color: #eaeaea;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffd94d' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

select.form-select:hover {
  border-color: rgba(255, 217, 77, 0.4);
  box-shadow: 0 0 5px rgba(255, 217, 77, 0.15);
}

select.form-select:focus {
  background: rgba(15, 25, 50, 0.8);
  border-color: #ffd94d;
  box-shadow: 0 0 6px rgba(255, 217, 77, 0.4);
  outline: none;
  color: #fff;
}

/* Option list */
select.form-select option {
  background-color: #0a1428;
  color: #eaeaea;
}

/* === Playlist checkboxes (dark theme) === */
.form-check-container {
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Елементи списку */
.form-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.form-check-input {
  appearance: none;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background-color: rgba(20, 30, 50, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-check-input:hover {
  border-color: rgba(255, 217, 77, 0.6);
  box-shadow: 0 0 4px rgba(255, 217, 77, 0.25);
}

.form-check-input:checked {
  background-color: #ffd94d;
  border-color: #ffd94d;
  box-shadow: 0 0 6px rgba(255, 217, 77, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M6.173 12.727l-3.9-3.9 1.414-1.414L6.173 9.9l6.14-6.14 1.414 1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75em;
}

.form-check-label {
  color: #eaeaea;
  cursor: pointer;
  font-weight: 500;
}

/* Повідомлення про відсутність плейлістів */
.form-check-container .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* === Channel dropdown (dark theme) === */
select,
select.form-select,
select.form-control {
  background: rgba(10, 20, 40, 0.7);
  color: #eaeaea;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  appearance: none;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffd94d' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

select:hover {
  border-color: rgba(255, 217, 77, 0.4);
  box-shadow: 0 0 5px rgba(255, 217, 77, 0.15);
}

select:focus {
  background: rgba(15, 25, 50, 0.8);
  border-color: #ffd94d;
  box-shadow: 0 0 6px rgba(255, 217, 77, 0.4);
  outline: none;
  color: #fff;
}

select option {
  background-color: #0a1428;
  color: #eaeaea;
}

/* === Videos / Streams containers (dark themed, unified style) === */
.form-check-container {
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}

/* елементи списку */
.form-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.form-check-input {
  appearance: none;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background-color: rgba(20, 30, 50, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-check-input:hover {
  border-color: rgba(255, 217, 77, 0.6);
  box-shadow: 0 0 4px rgba(255, 217, 77, 0.25);
}

.form-check-input:checked {
  background-color: #ffd94d;
  border-color: #ffd94d;
  box-shadow: 0 0 6px rgba(255, 217, 77, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M6.173 12.727l-3.9-3.9 1.414-1.414L6.173 9.9l6.14-6.14 1.414 1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75em;
}

.form-check-label {
  color: #eaeaea;
  cursor: pointer;
  font-weight: 500;
}

/* якщо порожній */
.form-check-container:empty::before {
  content: "No items available.";
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
  padding: 8px 0;
}

/* === Medals Management — FINAL DARK FIX === */

.table {
  background: rgba(10, 20, 40, 0.85) !important;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #eaeaea !important;
}
.table th {
  background: rgba(15, 25, 50, 0.9) !important;
  color: #ffd94d !important;
  border-bottom: 1px solid rgba(255, 217, 77, 0.25) !important;
}
.table td {
  background: rgba(10, 20, 40, 0.6) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* details */
details {
  background: rgba(15, 25, 45, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  overflow: hidden;
  transition: all 0.25s ease;
}
details summary {
  list-style: none;
  background: rgba(20, 30, 55, 0.9) !important;
  color: #ffd94d !important;
  font-weight: 500;
  border: none;
  border-radius: 8px 8px 0 0 !important;
  cursor: pointer;
}
details summary::marker,
details summary::-webkit-details-marker {
  display: none !important;
}
details[open] summary {
  background: rgba(25, 40, 70, 0.95) !important;
}

/* контейнер списку користувачів */
details .p-2 {
  background: rgba(10, 20, 40, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  color: #eaeaea !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}
details .bg-light {
  background: rgba(10, 20, 40, 0.9) !important;
}

/* чекбокси */
.form-check-input {
  appearance: none;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background-color: rgba(20, 30, 50, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
}
.form-check-input:hover {
  border-color: rgba(255, 217, 77, 0.6);
  box-shadow: 0 0 4px rgba(255, 217, 77, 0.25);
}
.form-check-input:checked {
  background-color: #ffd94d;
  border-color: #ffd94d;
  box-shadow: 0 0 6px rgba(255, 217, 77, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M6.173 12.727l-3.9-3.9 1.414-1.414L6.173 9.9l6.14-6.14 1.414 1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75em;
}
.form-check-label {
  color: #eaeaea !important;
}

/* кнопка Save */
.btn-assign {
  background: linear-gradient(90deg, #2a5a87, #8b7b25) !important;
  border: 1px solid #ffd94d !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: all 0.2s ease;
}
.btn-assign:hover {
  background: linear-gradient(90deg, #3a7ad8, #c8a11a) !important;
  box-shadow: 0 0 8px rgba(255, 217, 77, 0.4) !important;
}
.table td,
.table td .fw-semibold,
.table td span,
.table td p,
.table td div {
  color: #eaeaea !important;
}

/* === Profile Page Dark Theme === */

.card {
  background: rgba(10, 20, 40, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #eaeaea !important;
}

.text-muted {
  color: #b0b0b0 !important;
}

strong, h4, h5, p, small, a, li, pre {
  color: #eaeaea !important;
}

hr {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

pre.bg-light {
  background: rgba(15, 25, 45, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #eaeaea !important;
}

.list-group-item {
  background: rgba(15, 25, 45, 0.8) !important;
  color: #eaeaea !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.list-group-item:hover {
  background: rgba(25, 35, 60, 0.9) !important;
}

.btn-outline-primary {
  color: #ffd94d !important;
  border-color: #ffd94d !important;
}
.btn-outline-primary:hover {
  background: #ffd94d !important;
  color: #1b1b1b !important;
}

.btn-outline-success {
  color: #90ee90 !important;
  border-color: #90ee90 !important;
}
.btn-outline-success:hover {
  background: #90ee90 !important;
  color: #1b1b1b !important;
}
/* === Manage Roles Dark Theme === */

.card {
  background: rgba(10, 20, 40, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #eaeaea !important;
}

.bg-light {
  background: rgba(15, 25, 45, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #eaeaea !important;
}

.form-control, textarea {
  background: rgba(20, 30, 50, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #eaeaea !important;
}
.form-control:focus {
  border-color: #ffd94d !important;
  box-shadow: 0 0 6px rgba(255, 217, 77, 0.4) !important;
  background: rgba(25, 35, 60, 0.95) !important;
}

.list-group-item {
  background: rgba(15, 25, 45, 0.8) !important;
  color: #eaeaea !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.list-group-item:hover {
  background: rgba(25, 35, 60, 0.9) !important;
}

.text-muted {
  color: #b0b0b0 !important;
}

.alert.alert-secondary {
  background: rgba(25, 35, 55, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #eaeaea !important;
}

.btn-primary {
  background: linear-gradient(90deg, #2a5a87, #8b7b25) !important;
  border: 1px solid #ffd94d !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #3a7ad8, #c8a11a) !important;
  box-shadow: 0 0 8px rgba(255, 217, 77, 0.4) !important;
}
/* === FINAL CARD BORDER FIX (deep gold tone) === */
.card {
  border: 2px solid #d4af37 !important; /* темно-золотий */
  border-radius: 8px !important;
  box-shadow: none !important;
  background-color: rgba(20, 20, 30, 0.65) !important;
}

.card:hover {
  border-color: #f5d76e !important; /* трохи світліше при наведенні */
}
/* === FINAL CARD GLOW (deep gold tone) === */
.card {
  border: none !important;
  border-radius: 8px !important;
  background-color: rgba(20, 20, 30, 0.65) !important;
  box-shadow:
    0 0 6px rgba(212, 175, 55, 0.3),
    0 0 12px rgba(212, 175, 55, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 10px rgba(245, 215, 110, 0.6),
    0 0 20px rgba(245, 215, 110, 0.4);
}

/* === GOLD BUTTON → LIGHTER GOLD ON HOVER === */
.btn-outline-primary {
  background-color: #f5a300 !important; /* початково — насичене золото */
  color: #0b152c !important;
  border: 1px solid #f5a300 !important;
  font-weight: 600 !important;
  transition: background-color 0.8s ease, border-color 0.8s ease;
}

.btn-outline-primary:hover {
  background-color: #ffd24d !important; /* світліше золото */
  border-color: #ffd24d !important;
  color: #0b152c !important;
}

/* === GOLD BUTTON → YOUTUBE ON HOVER === */
.btn-outline-primary-yt {
  position: relative;
  background-color: #f5a300 !important; /* золота */
  color: #0b152c !important;
  border: 1px solid #f5a300 !important;
  font-weight: 600 !important;
  transition: all 0.8s ease;
  overflow: hidden;
}

/* при наведенні — YouTube стиль */
.btn-outline-primary-yt:hover {
  background-color: #ff0000 !important; /* червона */
  border-color: #ff0000 !important;
  color: transparent !important; /* текст зникає */
}

/* трикутник YouTube */
.btn-outline-primary-yt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%) scale(0);
  width: 0;
  height: 0;
  border-left: 12px solid white;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transition: transform 0.6s ease;
}


.btn-outline-primary-yt:hover::before {
  transform: translate(-40%, -50%) scale(1);
}




.carousel {
  position: relative;
  overflow: visible;
}
.carousel-inner {
  overflow: visible;
  position: relative;
  z-index: 1;
}
.carousel-control-prev,
.carousel-control-next {
  z-index: 10;
  width: 5%;
}


.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #f5a300;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  background-size: 1.5rem;
  filter: brightness(1.1);
  box-shadow: 0 0 8px rgba(245,163,0,0.5);
}
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  box-shadow: 0 0 12px rgba(245,163,0,0.8);
}


.carousel .card {
  overflow: visible !important;
  position: relative;
  z-index: 2;
}
.carousel .card:hover {
  z-index: 3;
}

.btn-nav {
  background-color: #f5a300 !important;
  color: #0b152c !important;
  border: 1px solid #f5a300 !important;
  border-radius: 6px !important; /* як у watch stream */
  width: 44px;
  height: 28px; /* трохи нижче */
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  transition: background-color 0.8s ease, border-color 0.8s ease;
  box-shadow: 0 0 8px rgba(245, 163, 0, 0.4);
  transform: translateY(-1px); /* підіймає стрілку */

}

.btn-nav:hover {
  background-color: #ffd24d !important;
  border-color: #ffd24d !important;
  color: #0b152c !important;
  box-shadow: 0 0 14px rgba(255, 210, 77, 0.6);
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&display=swap');

/* === LED Clock Style === */
#time-bar {
  background-color: #081a36;
  border-top: 1px solid #f5a300;
  font-weight: 600;
  letter-spacing: 0.5px;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 8px 0;
}


.time-led {
  font-family: "Orbitron", monospace;
  font-size: 1.2rem;
  font-weight: 700;
}

.time-led-display {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  letter-spacing: 2px;
  padding: 0 6px;
}

/* Kyiv (gold LED) */
.time-led.kyiv,
.time-led-display:not(.gmt) {
  color: #f5a300;
  text-shadow:
    0 0 6px rgba(245,163,0,0.8),
    0 0 12px rgba(245,163,0,0.4),
    0 0 20px rgba(245,163,0,0.2);
}

/* GMT (cyan LED) */
.time-led.gmt,
.time-led-display.gmt {
  color: #00d4ff;
  text-shadow:
    0 0 6px rgba(0,212,255,0.8),
    0 0 12px rgba(0,212,255,0.4),
    0 0 20px rgba(0,212,255,0.2);
}
@font-face{
  font-family: "LCDNova";
  src: url("/static/fonts/a_LCDNova.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

.time-led,
.time-led-display{
  font-family: "LCDNova", monospace;
}
@media (max-width: 991px) {
  .navbar-nav .dropdown-menu,
  .navbar-nav .dropstart .dropdown-menu,
  .navbar-nav .dropdown-menu-end {
    position: static !important;
    transform: none !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    margin: 8px 0 0 0 !important;
  }

  .navbar-collapse.show {
    display: flex !important;
    position: fixed !important;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(10, 20, 40, 0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 3rem;
    z-index: 3000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .navbar-collapse.show > ul {
    flex: 0 0 auto !important;
  }
}

body.nav-open {
  overflow: hidden !important;
  height: 100vh !important;
}
/* === FIX CARD HOVER LAYOUT SHIFT === */
.card,
.hover-card {
  box-sizing: border-box;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
}

.card:hover,
.hover-card:hover {
  transform: translateY(-4px);
  border: 1px solid rgba(245, 215, 110, 0.85) !important;
  box-shadow:
    0 0 10px rgba(245, 215, 110, 0.6),
    0 0 20px rgba(245, 215, 110, 0.35) !important;
}

a.text-decoration-none:hover .card {
  box-shadow:
    0 0 10px rgba(245, 215, 110, 0.6),
    0 0 20px rgba(245, 215, 110, 0.35) !important;
}