/**
 * Custom theme & UI overrides
 * Makes Default / Prestige / Midnight visually distinct
 * and improves button / accent colour combinations.
 */

/* ---- Username font consistency (no serif bleed from broken-image alt text) ---- */
#topnav_username,
#topnav_dropdown_full_name {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
}

/* ---- Shared button polish ---- */
.btn-info,
.btn-rounded-x.btn-info,
.help-documentation {
  background-color: #1a7f8e !important;
  border-color: #1a7f8e !important;
  color: #fff !important;
}
.btn-info:hover,
.btn-rounded-x.btn-info:hover {
  background-color: #156874 !important;
  border-color: #156874 !important;
}

.btn-danger,
.btn-rounded-x.btn-danger,
#commonModalSubmitButton.btn-danger {
  background-color: #c45c26 !important;
  border-color: #c45c26 !important;
}
.btn-danger:hover {
  background-color: #a84c1e !important;
  border-color: #a84c1e !important;
}

.btn-success,
.btn-outline-success:hover {
  background-color: #2a9d6e !important;
  border-color: #2a9d6e !important;
}

/* ============================================================
 * DEFAULT THEME — warm teal / slate
 * ============================================================ */
html.default .left-sidebar,
html.default .navbar-header {
  background-color: #1e2a32 !important;
}
html.default .topbar .navbar-collapse {
  background-color: #f4f7f8 !important;
}
html.default .btn-primary,
html.default .btn-primary.disabled {
  background-color: #1a7f8e !important;
  border-color: #1a7f8e !important;
}
html.default .btn-primary:hover {
  background-color: #156874 !important;
  border-color: #156874 !important;
}
html.default html body .text-info,
html.default .text-info {
  color: #1a7f8e !important;
}
html.default .sidebar-nav ul li a.active,
html.default .sidebar-nav > ul > li.active > a {
  color: #2ec4b6 !important;
}
html.default .page-wrapper {
  background-color: #eef2f4 !important;
}

/* ============================================================
 * PRESTIGE THEME — navy / soft gold accent
 * ============================================================ */
html.prestige .left-sidebar,
html.prestige .navbar-header {
  background-color: #1b2a4a !important;
}
html.prestige .topbar .navbar-collapse {
  background-color: #f7f5f0 !important;
  border-bottom: 1px solid #e4dfd4 !important;
}
html.prestige .btn-primary,
html.prestige .btn-primary.disabled {
  background-color: #3d5a80 !important;
  border-color: #3d5a80 !important;
}
html.prestige .btn-primary:hover {
  background-color: #2f4664 !important;
  border-color: #2f4664 !important;
}
html.prestige .btn-info,
html.prestige .btn-rounded-x.btn-info {
  background-color: #b08d57 !important;
  border-color: #b08d57 !important;
}
html.prestige .sidebar-nav ul li a.active,
html.prestige .sidebar-nav > ul > li.active > a,
html.prestige .text-info {
  color: #b08d57 !important;
}
html.prestige .page-wrapper {
  background-color: #f3efe8 !important;
}
html.prestige #topnav_username {
  color: #3d5a80 !important;
}

/* ============================================================
 * MIDNIGHT THEME — deep charcoal / cyan accent
 * ============================================================ */
html.midnight,
html.midnight body,
html.midnight .page-wrapper {
  background-color: #0f1216 !important;
  color: #d5dde5 !important;
}
html.midnight .left-sidebar,
html.midnight .navbar-header {
  background-color: #0a0c0f !important;
}
html.midnight .topbar .navbar-collapse {
  background-color: #161a20 !important;
  border-bottom: 1px solid #2a3038 !important;
}
html.midnight .card,
html.midnight .modal-content,
html.midnight .table,
html.midnight .form-control,
html.midnight .select2-container--bootstrap .select2-selection.form-control {
  background-color: #1a1f26 !important;
  border-color: #2e3540 !important;
  color: #d5dde5 !important;
}
html.midnight .btn-primary,
html.midnight .btn-primary.disabled {
  background-color: #00b4d8 !important;
  border-color: #00b4d8 !important;
  color: #0a0c0f !important;
}
html.midnight .btn-primary:hover {
  background-color: #0096c7 !important;
  border-color: #0096c7 !important;
}
html.midnight .btn-info,
html.midnight .btn-rounded-x.btn-info {
  background-color: #48cae4 !important;
  border-color: #48cae4 !important;
  color: #0a0c0f !important;
}
html.midnight .sidebar-nav ul li a.active,
html.midnight .sidebar-nav > ul > li.active > a,
html.midnight .text-info {
  color: #48cae4 !important;
}
html.midnight #topnav_username {
  color: #caf0f8 !important;
}
html.midnight .table td,
html.midnight .table th {
  border-color: #2e3540 !important;
  color: #d5dde5 !important;
}
