/*
 * darkmode.css — Homekonvent.be
 * Applied via html.dark-mode class (set by inline script in head.ejs).
 * Toggle is handled by static/js/darkmode.js.
 */

/* ── Base ──────────────────────────────────────────────────── */
html.dark-mode {
  background-color: #13131f; /* prevents white showing through transparent/absolute elements */
}

html.dark-mode body {
  background-color: #13131f;
  color: #c0c0d0;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: #e0e0f0;
}

html.dark-mode p {
  color: #9090a8;
}

html.dark-mode a {
  color: #c0c0d0;
}

/* ── Top menu bar ───────────────────────────────────────────── */
html.dark-mode .top_menu {
  background-color: #1a1a2e;
  border-color: #2d2d45;
}

html.dark-mode .top_menu .header_social li a {
  color: #6060a0;
}

/* ── Navbar ─────────────────────────────────────────────────── */
html.dark-mode .header_area.navbar_fixed .main_menu {
  background: #1a1a2e;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}

/* On mobile the navbar is always visible and needs a background */
@media (max-width: 991px) {
  html.dark-mode .header_area,
  html.dark-mode .header_area .top_menu,
  html.dark-mode .header_area .main_menu,
  html.dark-mode .header_area .navbar {
    background-color: #1a1a2e !important;
  }
  html.dark-mode .header_area .navbar-collapse {
    background-color: #1a1a2e !important;
    padding: 10px 15px;
  }
}

html.dark-mode .header_area .navbar .nav .nav-item .nav-link {
  color: #c0c0d0;
}

html.dark-mode .header_area .navbar .nav .nav-item:hover .nav-link,
html.dark-mode .header_area .navbar .nav .nav-item.active .nav-link {
  color: #fab700;
}

/* ── Dropdown ───────────────────────────────────────────────── */
html.dark-mode .header_area .navbar .nav .nav-item.submenu ul {
  background: #1e1e30;
}

html.dark-mode .header_area .navbar .nav .nav-item.submenu ul .nav-item {
  border-color: #2d2d45;
}

html.dark-mode .header_area .navbar .nav .nav-item.submenu ul .nav-item .nav-link {
  color: #c0c0d0;
}

html.dark-mode .header_area .navbar .nav .nav-item.submenu ul .nav-item:hover .nav-link {
  background: #fab700;
  color: #13131f;
}

/* ── Section backgrounds ────────────────────────────────────── */
html.dark-mode .feature_area,
html.dark-mode .latest_blog_area,
html.dark-mode .results_area {
  background-color: #13131f;
}

/* ── Main title ─────────────────────────────────────────────── */
html.dark-mode .main_title h2 {
  color: #e0e0f0;
}

html.dark-mode .main_title p {
  color: #9090a8;
}

/* ── Feature cards ──────────────────────────────────────────── */
html.dark-mode .feature_item {
  background: #1e1e30;
  border-color: #2d2d45;
}

html.dark-mode .feature_item h4 {
  color: #e0e0f0;
}

html.dark-mode .feature_item p {
  color: #9090a8;
}

html.dark-mode .feature_item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: #3a3a60;
}

/* ── Team / Praesidium ──────────────────────────────────────── */
html.dark-mode .team_item .team_name h4 {
  color: #e0e0f0;
}

html.dark-mode .team_item .team_name p {
  color: #9090a8;
}

/* ── Tabs (nav pills) ───────────────────────────────────────── */
html.dark-mode .ab_btn {
  color: #c0c0d0;
  border-color: #2d2d45;
}

html.dark-mode .ab_btn.active,
html.dark-mode .ab_btn:hover {
  background: #fab700;
  color: #13131f;
  border-color: #fab700;
}

/* ── Buttons ────────────────────────────────────────────────── */
html.dark-mode .btn-outline-primary {
  color: #fab700;
  border-color: #fab700;
}

html.dark-mode .btn-outline-primary:hover {
  background-color: #fab700;
  color: #13131f;
}

html.dark-mode .submit_btn {
  color: #fff;
}

/* ── Calendar ───────────────────────────────────────────────── */
html.dark-mode .calendar-container {
  background: #1e1e30;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

html.dark-mode .calendar-header {
  background: linear-gradient(to bottom, #252540 0%, rgba(30, 30, 48, 0) 100%);
  border-color: #2d2d45;
}

html.dark-mode .calendar-header h1 {
  color: #e0e0f0;
}

html.dark-mode .day {
  color: #5050a0;
  border-color: #2d2d45;
}

html.dark-mode .day-name {
  color: #6060a0;
  border-color: #2d2d45;
}

html.dark-mode .day--disabled {
  background-color: #181828;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a1a30' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Tables (IHC / allchat) ─────────────────────────────────── */
html.dark-mode .table {
  color: #c0c0d0;
}

html.dark-mode .table thead th {
  background-color: #252540;
  color: #e0e0f0;
  border-color: #2d2d45;
}

html.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: #1a1a30;
}

html.dark-mode .table-bordered,
html.dark-mode .table-bordered td,
html.dark-mode .table-bordered th {
  border-color: #2d2d45;
}

/* ── Progress table (allchat) ───────────────────────────────── */
html.dark-mode .progress-table-wrap {
  background: #1e1e30;
}

html.dark-mode .progress-table .table-head {
  background: #252540;
  color: #e0e0f0;
}

html.dark-mode .progress-table .table-row {
  background: #1e1e30;
  border-color: #2d2d45;
  color: #c0c0d0;
}

/* ── Responsive table (verslagen) ───────────────────────────── */
html.dark-mode .responsive-table .table-row {
  background-color: #1e1e30;
  box-shadow: 0 0 9px rgba(0, 0, 0, 0.4);
  color: #c0c0d0;
}

html.dark-mode .responsive-table .table-header {
  background-color: #13203a;
}

/* ── Nice-select dropdowns (jaar, IHC) ──────────────────────── */
html.dark-mode .nice-select,
html.dark-mode .default-select .nice-select,
html.dark-mode .form-select .nice-select {
  background: #1e1e30 !important;
  color: #c0c0d0 !important;
  border-color: #2d2d45 !important;
}

html.dark-mode .nice-select .current {
  color: #c0c0d0;
}

html.dark-mode .nice-select::after {
  border-bottom-color: #c0c0d0;
  border-right-color: #c0c0d0;
}

html.dark-mode .nice-select .list {
  background: #1e1e30;
  border: 1px solid #2d2d45;
}

html.dark-mode .nice-select .list .option {
  color: #c0c0d0;
}

html.dark-mode .nice-select .list .option:hover,
html.dark-mode .nice-select .list .option.selected {
  color: #fab700;
  background: #252540;
}

/* ── Forms / inputs ─────────────────────────────────────────── */
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
  background-color: #1e1e30 !important;
  color: #c0c0d0 !important;
  border-color: #2d2d45 !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
  color: #6060a0;
}

/* ── Sponsor logos (PNGs with transparent background) ──────── */
html.dark-mode .clients_logo_area .item img {
  background-color: #fff;
  border-radius: 6px;
  padding: 6px;
}

/* ── Footer ─────────────────────────────────────────────────── */
html.dark-mode .footer-area {
  background: #0d0d1a;
}

html.dark-mode .footer_title {
  color: #e0e0f0;
}

html.dark-mode .footer-area p,
html.dark-mode .footer-area a {
  color: #d0d0e0;
}

html.dark-mode .footer-area .footer-social a {
  color: #9090c0;
}

/* ── Clublied tab ───────────────────────────────────────────── */
html.dark-mode #clublied p,
html.dark-mode #clublied * {
  color: #d0d0e0;
}

/* ── Vertrouwelijk — secties met inline witte achtergrond ───── */
html.dark-mode #getroffene,
html.dark-mode #omstaander,
html.dark-mode #pleger {
  background-color: #181828 !important;
}

html.dark-mode #getroffene h3,
html.dark-mode #getroffene h4,
html.dark-mode #getroffene p,
html.dark-mode #getroffene li,
html.dark-mode #getroffene a,
html.dark-mode #omstaander h3,
html.dark-mode #omstaander h4,
html.dark-mode #omstaander p,
html.dark-mode #omstaander li,
html.dark-mode #omstaander a,
html.dark-mode #pleger h3,
html.dark-mode #pleger h4,
html.dark-mode #pleger p,
html.dark-mode #pleger li,
html.dark-mode #pleger a {
  color: #d0d0e0;
}

/* ── Contact info (9000 Gent, praeses@homekonvent.be) ──────── */
html.dark-mode .contact_info .info_item h6,
html.dark-mode .contact_info .info_item h6 a,
html.dark-mode .contact_info .info_item p {
  color: #d0d0e0;
}

/* ── Banner area text (already white, no change needed) ─────── */

/* ── Dark mode toggle button ────────────────────────────────── */
#theme-toggle,
#theme-toggle-mobile {
  background: transparent;
  border: 1px solid #fab700;
  color: #fab700;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  margin-left: 8px;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
  vertical-align: top;
  padding: 0;
}

#theme-toggle:hover,
#theme-toggle-mobile:hover {
  background: #fab700;
  color: #13131f;
}

#theme-toggle-mobile {
  margin-left: auto;
  margin-right: 10px;
  margin-top: 0;
  vertical-align: middle;
}
