/* 1. Import fonts (Must be at the very top) */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700&display=swap');

/* 2. Define local font-face */
@font-face {
  font-family: 'CSChatThaiUI';
  /* src: url('../fonts/CSChatThaiUI.eot?#iefix') format('embedded-opentype'),
       url('../fonts/CSChatThaiUI.woff') format('woff'),
       url('../fonts/CSChatThaiUI.ttf') format('truetype'),
       url('../fonts/CSChatThaiUI.svg#CSChatThaiUI') format('svg'); */
  src: url('../fonts/CSChatThaiUI.woff') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* 3. Tabler variable overrides */
:root {
  --tb-font-sans-serif: 'CSChatThaiUI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 4. Force override including select and option elements */
body,
p,
span,
a,
li,
td,
th,
input,
textarea,
select,
option,
button {
  font-family: var(--tb-font-sans-serif) !important;
}

/* 5. Headings and titles configuration */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.card-title {
  font-family: 'Prompt', var(--tb-font-sans-serif) !important;
  font-weight: 500 !important;
}

/* Disable underline on hover globally for all links and elements */
a:hover,
a:focus,
.link:hover,
.link:focus,
[class*="card-link"]:hover,
[class*="btn"]:hover {
  text-decoration: none !important;
}

/* Deep clear inside interactive containers to prevent text inherit underlines */
a:hover *,
.card-link:hover * {
  text-decoration: none !important;
}

/* ========================================== */
/* Form Controls Focus                        */
/* ========================================== */

/* Form Controls (Input, Select, Textarea) */
.form-control:focus,
.form-select:focus {
  border-color: var(--tblr-primary);
  background-color: var(--tblr-bg-surface, #fff);
  color: var(--tblr-body-color);
  outline: 0;
  /* Dynamic soft glow using theme primary color */
  box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb), 0.15);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Checkboxes and Radios */
.form-check-input:focus {
  border-color: var(--tblr-primary);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb), 0.15);
}

.form-check-input:checked {
  background-color: var(--tblr-primary);
  border-color: var(--tblr-primary);
}

/* Valid State Focus */
.form-control.is-valid:focus,
.form-select.is-valid:focus,
.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus {
  border-color: var(--tblr-success);
  box-shadow: 0 0 0 2px rgba(var(--tblr-success-rgb), 0.15);
}

.form-check-input.is-valid:focus,
.was-validated .form-check-input:valid:focus {
  box-shadow: 0 0 0 2px rgba(var(--tblr-success-rgb), 0.15);
}

/* Invalid State Focus */
.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
  border-color: var(--tblr-danger);
  box-shadow: 0 0 0 2px rgba(var(--tblr-danger-rgb), 0.15);
}

.form-check-input.is-invalid:focus,
.was-validated .form-check-input:invalid:focus {
  box-shadow: 0 0 0 2px rgba(var(--tblr-danger-rgb), 0.15);
}

/* ========================================== */
/* Input Groups & Input Groups Flat Focus     */
/* ========================================== */

/* Base container glow when focused inside */
.input-group:focus-within {
  border-radius: var(--tblr-border-radius, 4px);
  transition: box-shadow 0.2s ease-in-out;
}

/* Remove default inner shadow inside group */
.input-group:focus-within .form-control:focus {
  box-shadow: none;
}

/* Standard & Flat - Theme Primary Focus */
.input-group:focus-within:not(:has(.is-invalid, .is-valid)),
.was-validated .input-group:focus-within:not(:has(:invalid, :valid)) {
  box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb), 0.15);
}
.input-group-flat:focus-within:not(:has(.is-invalid, .is-valid)) .form-control,
.input-group-flat:focus-within:not(:has(.is-invalid, .is-valid)) .input-group-text {
  border-color: var(--tblr-primary);
}

/* Standard & Flat - Valid State Focus */
.input-group:has(.is-valid:focus),
.was-validated .input-group:has(:valid:focus) {
  box-shadow: 0 0 0 2px rgba(var(--tblr-success-rgb), 0.15);
}
.input-group-flat:has(.is-valid:focus) .form-control,
.input-group-flat:has(.is-valid:focus) .input-group-text,
.was-validated .input-group-flat:has(:valid:focus) .form-control,
.was-validated .input-group-flat:has(:valid:focus) .input-group-text {
  border-color: var(--tblr-success) !important;
}

/* Standard & Flat - Invalid State Focus */
.input-group:has(.is-invalid:focus),
.was-validated .input-group:has(:invalid:focus) {
  box-shadow: 0 0 0 2px rgba(var(--tblr-danger-rgb), 0.15);
}
.input-group-flat:has(.is-invalid:focus) .form-control,
.input-group-flat:has(.is-invalid:focus) .input-group-text,
.was-validated .input-group-flat:has(:invalid:focus) .form-control,
.was-validated .input-group-flat:has(:invalid:focus) .input-group-text {
  border-color: var(--tblr-danger) !important;
}

/* ========================================== */
/* Input Group Flat - Fix Blur/Normal State  */
/* ========================================== */

/* Ensure the icon box maintains its proper borders when NOT focused */
.input-group-flat .input-group-text {
  border-color: var(--tblr-border-color, #e6e7e9);
  background-color: var(--tblr-bg-surface, #fff);
  /* Keep the left border seamless but preserve top, right, and bottom */
  border-left: 0 !important;
  transition: border-color 0.2s ease-in-out;
}

.input-group-flat .form-control {
  border-right: 0 !important;
}

/* Maintain proper borders for validation states even when NOT focused */
.input-group-flat:has(.is-valid) .form-control,
.input-group-flat:has(.is-valid) .input-group-text,
.was-validated .input-group-flat:has(:valid) .form-control,
.was-validated .input-group-flat:has(:valid) .input-group-text {
  border-color: var(--tblr-success) !important;
}

.input-group-flat:has(.is-invalid) .form-control,
.input-group-flat:has(.is-invalid) .input-group-text,
.was-validated .input-group-flat:has(:invalid) .form-control,
.was-validated .input-group-flat:has(:invalid) .input-group-text {
  border-color: var(--tblr-danger) !important;
}

/* ========================================== */
/* Input Group Focus Layout Fix               */
/* ========================================== */

/* Fix the loose/overflowing shadow outline */
.input-group {
  /* Ensure shadow wraps perfectly around the group's current shape */
  border-radius: var(--tblr-border-radius, 4px);
  transition: box-shadow 0.2s ease-in-out;
}

/* Make the soft glow tighter and match the standard inputs exactly */
.input-group:focus-within:not(:has(.is-invalid, .is-valid)),
.was-validated .input-group:focus-within:not(:has(:invalid, :valid)) {
  /* Reduced spread and blur to make it snug, not bloated */
  box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb), 0.15);
}

/* Prevent inner inputs/buttons from displaying individual focus rings inside the group */
.input-group:focus-within .form-control:focus,
.input-group:focus-within .btn:focus {
  box-shadow: none !important;
  outline: 0 !important;
}

/* Smooth border color transition for the entire row inside input-group */
.input-group:focus-within .form-control,
.input-group:focus-within .btn {
  border-color: var(--tblr-primary);
}

/* Apply tight glow to validation states as well */
.input-group:has(.is-valid:focus),
.was-validated .input-group:has(:valid:focus) {
  box-shadow: 0 0 0 2px rgba(var(--tblr-success-rgb), 0.15);
}

.input-group:has(.is-invalid:focus),
.was-validated .input-group:has(:invalid:focus) {
  box-shadow: 0 0 0 2px rgba(var(--tblr-danger-rgb), 0.15);
}

/* ========================================== */
/* Tom Select Component Focus & Validation   */
/* ========================================== */

/* Base container for Tom Select */
.ts-wrapper.form-select {
  border-radius: var(--tblr-border-radius, 4px);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Theme Primary Focus State */
.ts-wrapper.form-select.focus {
  border-color: var(--tblr-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15) !important;
}

/* Remove internal focus styling from the control element */
.ts-wrapper.form-select.focus .ts-control {
  box-shadow: none !important;
  outline: 0 !important;
}

/* Valid State Focus (Tom Select) */
.ts-wrapper.form-select.is-valid.focus,
.was-validated .ts-wrapper.form-select:has(:valid).focus {
  border-color: var(--tblr-success) !important;
  box-shadow: 0 0 0 3px rgba(var(--tblr-success-rgb), 0.15) !important;
}

/* Invalid State Focus (Tom Select) */
.ts-wrapper.form-select.is-invalid.focus,
.was-validated .ts-wrapper.form-select:has(:invalid).focus {
  border-color: var(--tblr-danger) !important;
  box-shadow: 0 0 0 3px rgba(var(--tblr-danger-rgb), 0.15) !important;
}

/* ========================================== */
/* Tom Select - Layout & Row Wrap Fix         */
/* ========================================== */

/* Force items and input to stay in a single horizontal row */
.ts-wrapper.form-select .ts-control {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important; /* Prevent dropping to the next line */
  overflow: hidden; /* Prevent text overflow from blowing the container width */
}

/* Ensure the input takes up remaining space but never wraps */
.ts-wrapper.form-select .ts-control > input {
  flex: 1 1 auto !important;
  min-width: 0 !important; /* Allow input to shrink smaller than its text if needed */
  max-width: 100% !important;
}

/* Adjust layout if it's a single select with an existing value */
.ts-wrapper.single.form-select .ts-control .item {
  margin-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Add dots (...) if text is too long */
  max-width: calc(100% - 20px); /* Leave room for the dropdown arrow */
}

/* ========================================== */
/* Icon - Validation                          */
/* ========================================== */

.was-validated .form-control:invalid, .form-control.is-invalid {
  background-image: url("data:image/svg+xml,%3Csvg%20%20xmlns=%22http://www.w3.org/2000/svg%22%20%20width=%2224%22%20%20height=%2224%22%20%20viewBox=%220%200%2024%2024%22%20%20fill=%22none%22%20%20stroke=%22%23d63939%22%20%20stroke-width=%221.5%22%20%20stroke-linecap=%22round%22%20%20stroke-linejoin=%22round%22%20%20class=%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-alert-triangle%22%3E%3Cpath%20stroke=%22none%22%20d=%22M0%200h24v24H0z%22%20fill=%22none%22/%3E%3Cpath%20d=%22M12%209v4%22%20/%3E%3Cpath%20d=%22M10.363%203.591l-8.106%2013.534a1.914%201.914%200%200%200%201.636%202.871h16.214a1.914%201.914%200%200%200%201.636%20-2.87l-8.106%20-13.536a1.914%201.914%200%200%200%20-3.274%200z%22%20/%3E%3Cpath%20d=%22M12%2016h.01%22%20/%3E%3C/svg%3E");
  background-position: right calc(0.3571428572em + 0.28125rem) center;
  background-size: calc(0.7142857143em + 0.5625rem) calc(0.7142857143em + 0.5625rem);
}

.was-validated .form-select:invalid:not([multiple]):not([size]), .was-validated .form-select:invalid:not([multiple])[size="1"], .form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"] {
  --tblr-form-select-bg-icon: url("data:image/svg+xml,%3Csvg%20%20xmlns=%22http://www.w3.org/2000/svg%22%20%20width=%2224%22%20%20height=%2224%22%20%20viewBox=%220%200%2024%2024%22%20%20fill=%22none%22%20%20stroke=%22%23d63939%22%20%20stroke-width=%221.5%22%20%20stroke-linecap=%22round%22%20%20stroke-linejoin=%22round%22%20%20class=%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-alert-triangle%22%3E%3Cpath%20stroke=%22none%22%20d=%22M0%200h24v24H0z%22%20fill=%22none%22/%3E%3Cpath%20d=%22M12%209v4%22%20/%3E%3Cpath%20d=%22M10.363%203.591l-8.106%2013.534a1.914%201.914%200%200%200%201.636%202.871h16.214a1.914%201.914%200%200%200%201.636%20-2.87l-8.106%20-13.536a1.914%201.914%200%200%200%20-3.274%200z%22%20/%3E%3Cpath%20d=%22M12%2016h.01%22%20/%3E%3C/svg%3E");
  padding-right: 5.5rem;
  background-position: right 1rem center, center right 2rem;
  background-size: 16px 12px, calc(0.7142857143em + 0.5625rem) calc(0.7142857143em + 0.5625rem)/* 1.8125rem 1.8125rem */;
}

.was-validated .form-control:valid, .form-control.is-valid {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
  background-position: right calc(0.3571428572em + 0.28125rem) center;
  background-size: calc(0.7142857143em + 0.5625rem) calc(0.7142857143em + 0.5625rem);
}

.was-validated .form-select:valid:not([multiple]):not([size]), .was-validated .form-select:valid:not([multiple])[size="1"], .form-select.is-valid:not([multiple]):not([size]), .form-select.is-valid:not([multiple])[size="1"] {
  --tblr-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
  padding-right: 5.5rem;
  background-position: right 1rem center, center right 2rem;
  background-size: 16px 12px, calc(0.7142857143em + 0.5625rem) calc(0.7142857143em + 0.5625rem);
}

.nav-link-icon {
  width: auto;
  height: auto;
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand-image {
  height: 3rem;
}

/* --- Base / Tablet & Desktop Style (4 & 2 Columns: Vertical Layout) --- */

.card.card-link {
  position: relative;
  display: flex !important;
  flex-direction: column !important; /* Stack vertically on desktop */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Force full width by unlocking layout constraints */
.card.card-link .card-cover-wrapper {
  position: relative;
  display: flex !important;
  justify-content: center; /* Center the auto-width image horizontally */
  align-items: center; /* Center the auto-width image vertically */
  width: 100% !important;
  height: 160px !important;
  background-color: #f8f9fa; /* Optional: background color for empty sides */
  transition: filter 0.3s ease;
  filter: brightness(0.9); /* Apply brightness evenly across 100% width */
}

/* Image maintains auto-width and scales gracefully */
.card.card-link .card-cover-img {
  width: auto !important;
  max-width: 100%;
  height: 100% !important;
  object-fit: contain; /* Show complete image without distortion */
}

/* Hover Effects */
.card.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card.card-link:hover .card-cover-wrapper {
  filter: brightness(1); /* Smooth light up across full width */
}

/* --- Mobile Style (1 Column Only: Horizontal Layout) --- */

@media (max-width: 767.98px) {
  /* Switch entire card structure to row layout */
  .card.card-link {
    flex-direction: row !important;
    align-items: center;
    text-align: left !important;
  }

  /* Transform image container to side-thumbnail */
  .card.card-link .card-cover-wrapper {
    width: 90px !important; /* Fixed width on mobile side */
    height: auto !important;
    align-self: stretch; /* Stretch container to match card-body height */
    flex-shrink: 0;
  }

  /* Reset text alignment for mobile readability */
  .card.card-link .card-body {
    flex-grow: 1;
    text-align: left !important;
    padding: 0.75rem 1rem !important;
  }
}

.footer {
  padding: 1rem 0;
}

.page-header {
  margin: 0 0 .75rem;
}

.card-cover .fe, .page-link .fe {
  padding: 0;
}

.card-cover::before {
  background: rgba(53, 64, 82, 0.24);
}

.avatar-transparent {
  opacity: 0.7;
}

[data-bs-theme="dark"] .navbar-brand-autodark .navbar-brand-image {
  filter: none;
}

[data-bs-theme="dark"] .card-cover {
  opacity: 0.7;
}

.nav-link-icon {
  width: auto;
  height: auto;
}

.content {
  margin-top: 1.2rem;
  /* margin-bottom: 1.2rem; */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-label {
  color: var(--tblr-gray-400);
}
.form-check {
  margin-top: 0.5rem;
}

.hr-text {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.pagination {
  --tblr-pagination-bg: var(--tblr-bg-surface);
}

.table, .markdown > table {
  /* --tblr-table-hover-bg: rgba(0, 0, 0, 0.05); */
  --tblr-table-striped-bg: var(--tblr-bg-surface);
  /* --tblr-table-hover-bg: color-mix(in srgb, var(--tblr-bg-surface), #000 13%); */
}
.table a:hover {
  text-decoration: none;
}
.table > thead, .markdown > table > thead {
  vertical-align: middle;
}
.table thead th, .markdown > table thead th {
  background-color: color-mix(in srgb, var(--tblr-bg-surface), #000 7%);
  /* font-size: 0.8rem;
  white-space: nowrap; */
}
.table .fe,
.table .ti {
  font-size: 1rem;
}
.table .form-check .form-check-input {
  float: none;
}

.page-link {
  margin: 0 3px;
  padding: 4px 10px;
  /* background-color: #fff; */
  border: 1px solid var(--tblr-border-color);
}

.btn-sm, .btn-group-sm > .btn {
  font-size: 0.85rem;
  --tblr-btn-line-height: 1.5;
  --tblr-btn-icon-size: .75rem;
}
.btn-sm svg {
  font-size: 1.2rem;
  margin-right: 2px;
}
.dropdown-item svg {
  font-size: 1.2rem;
  fill: #777;
  margin-right: .5rem;
}

.card a:hover {
  text-decoration: none;
}

.datepicker {
  z-index: 2000 !important;
}
.datepicker-dropdown.datepicker-orient-top::before {
  /* border-top: 7px solid #e6e7e9; */
  border-top: none;
}

.tagsinput .tag {
  position: relative;
  background: #c9e1f9;
  display: block;
  max-width: 100%;
  word-wrap: break-word;
  color: #000;
  padding: 5px 30px 5px 5px;
  border-radius: 2px;
  margin: 0 5px 5px 0;
}
.tagsinput div input::placeholder {
  color: #a7abb1;
}

/* TRIGGER RADIO BUTTON */
.trigger-radio {
  background-color:red;
}

/* JQUERY UI */
.ui-autocomplete {
  /* z-index MODAL 1040 */
  z-index: 2000;
  background: #fff;
}

.ui-widget.ui-widget-content {
  border: 1px solid #c5c5c5;
}
.ui-widget-content {
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #333333;
}
.ui-widget-content a {
  color: #333333;
}
.ui-widget-content a:hover {
  color: #fff;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
  border: 1px solid #307fdd;
  background: #307fdd;
  color: #ffffff;
}
.ui-icon-background,
.ui-state-active .ui-icon-background {
  border: #307fdd;
}

@media only screen and (max-width: 800px) {

  .table-responsive .table{
    margin-bottom: 20px;
  }

  /* Force table to not be like tables anymore */
  .table-responsive .table table,
  .table-responsive .table thead,
  .table-responsive .table tbody,
  .table-responsive .table th,
  .table-responsive .table td,
  .table-responsive .table tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  .table-responsive .table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-responsive .table tr {
    border: 1px solid #ccc;
    margin-top: 1.5rem;
  }

  .table-responsive .table td {
    /* Behave  like a "row" */
    border: none;
    /* border-bottom: 1px solid #eee; */
    border-bottom: 1px dotted #666;
    position: relative;
    padding-left: 120px;
    white-space: normal;
    text-align: left !important;
    min-height: 36px;
  }

  .table-responsive .table td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 115px;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  /*
  Label the data
  */
  .table-responsive .table td:before {
    content: attr(data-label);
  }

  /* .table-light {
    --tblr-table-hover-bg: rgba(66, 153, 225, 0.06);
  } */

}

.icon-vdo-card {
  position: absolute;
  bottom: 8px;
  right: 8px;
}
.icon-vdo-card i {
  margin-right: 4px;
}

.list-timeline:not(.list-timeline-simple)::before {
  left: calc(15rem + 2px);
}
.list-timeline:not(.list-timeline-simple) .list-timeline-content {
  padding: .625rem 0 0 17.5rem;
}
.list-timeline:not(.list-timeline-simple) .list-timeline-icon {
  left: 14rem;
}
.list-timeline:not(.list-timeline-simple) .list-timeline-time {
  width: 13rem;
}

.list-group {
  background: var(--tblr-bg-surface);
}
.list-group-item {
  padding: .75rem 1.25rem;
}

.form-control:disabled, .form-control[readonly] {
  border: none;
  background-color: var(--tblr-backdrop-bg-dark);
}
.form-select:-moz-focusring {
  color: inherit;
}
.form-select.option-loading {
  background-image: url("/images/loading2.gif");
  background-repeat: no-repeat;
  background-position: 20px center;
}

/* --- High-Contrast Inputs (Radio & Checkbox) --- */
/* .form-check-input {
  --tblr-form-check-bg: var(--tblr-primary);
} */
.form-check-input {
  border: 1px solid #64748b !important; /* Thick slate-500 border */
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-check-input:hover {
  border-color: #1e293b !important; /* Darker border on hover */
}

.card-cover {
  min-height: 160px;
}

.vdo-thumb {
  cursor: pointer;
}

@media only screen and (min-width: 1000px) {
  .modal-lg, .modal-xl {
    max-width: 960px;
  }
}

.btn-outline-tabler:hover, .btn-outline-bitbucket:hover, .btn-outline-flickr:hover, .btn-outline-rss:hover, .btn-outline-vk:hover, .btn-outline-pinterest:hover, .btn-outline-instagram:hover, .btn-outline-github:hover, .btn-outline-dribbble:hover, .btn-outline-vimeo:hover, .btn-outline-youtube:hover, .btn-outline-google:hover, .btn-outline-linkedin:hover, .btn-outline-twitter:hover, .btn-outline-facebook:hover, .btn-outline-cyan:hover, .btn-outline-teal:hover, .btn-outline-green:hover, .btn-outline-lime:hover, .btn-outline-yellow:hover, .btn-outline-orange:hover, .btn-outline-red:hover, .btn-outline-pink:hover, .btn-outline-purple:hover, .btn-outline-indigo:hover, .btn-outline-azure:hover, .btn-outline-blue:hover, .btn-outline-muted:hover, .btn-outline-dark:hover, .btn-outline-light:hover, .btn-outline-danger:hover, .btn-outline-warning:hover, .btn-outline-info:hover, .btn-outline-success:hover, .btn-outline-secondary:hover, .btn-outline-primary:hover {
  --tblr-btn-hover-color: var(--tblr-white);
}

.btn-outline-tabler:hover {
  --tblr-btn-hover-bg: var(--tblr-tabler);
}

.btn-outline-bitbucket:hover {
  --tblr-btn-hover-bg: var(--tblr-bitbucket);
}

.btn-outline-flickr:hover {
  --tblr-btn-hover-bg: var(--tblr-flickr);
}

.btn-outline-rss:hover {
  --tblr-btn-hover-bg: var(--tblr-rss);
}

.btn-outline-vk:hover {
  --tblr-btn-hover-bg: var(--tblr-vk);
}

.btn-outline-pinterest:hover {
  --tblr-btn-hover-bg: var(--tblr-pinterest);
}

.btn-outline-instagram:hover {
  --tblr-btn-hover-bg: var(--tblr-instagram);
}

.btn-outline-github:hover {
  --tblr-btn-hover-bg: var(--tblr-github);
}

.btn-outline-dribbble:hover {
  --tblr-btn-hover-bg: var(--tblr-dribbble);
}

.btn-outline-vimeo:hover {
  --tblr-btn-hover-bg: var(--tblr-vimeo);
}

.btn-outline-youtube:hover {
  --tblr-btn-hover-bg: var(--tblr-youtube);
}

.btn-outline-google:hover {
  --tblr-btn-hover-bg: var(--tblr-google);
}

.btn-outline-linkedin:hover {
  --tblr-btn-hover-bg: var(--tblr-linkedin);
}

.btn-outline-twitter:hover {
  --tblr-btn-hover-bg: var(--tblr-twitter);
}

.btn-outline-facebook:hover {
  --tblr-btn-hover-bg: var(--tblr-facebook);
}

.btn-outline-cyan:hover {
  --tblr-btn-hover-bg: var(--tblr-cyan);
}

.btn-outline-teal:hover {
  --tblr-btn-hover-bg: var(--tblr-teal);
}

.btn-outline-green:hover {
  --tblr-btn-hover-bg: var(--tblr-green);
}

.btn-outline-lime:hover {
  --tblr-btn-hover-bg: var(--tblr-lime);
}

.btn-outline-yellow:hover {
  --tblr-btn-hover-bg: var(--tblr-yellow);
}

.btn-outline-orange:hover {
  --tblr-btn-hover-bg: var(--tblr-orange);
}

.btn-outline-red:hover {
  --tblr-btn-hover-bg: var(--tblr-red);
}

.btn-outline-pink:hover {
  --tblr-btn-hover-bg: var(--tblr-pink);
}

.btn-outline-purple:hover {
  --tblr-btn-hover-bg: var(--tblr-purple);
}

.btn-outline-indigo:hover {
  --tblr-btn-hover-bg: var(--tblr-indigo);
}

.btn-outline-azure:hover {
  --tblr-btn-hover-bg: var(--tblr-azure);
}

.btn-outline-blue:hover {
  --tblr-btn-hover-bg: var(--tblr-blue);
}

.btn-outline-muted:hover {
  --tblr-btn-hover-bg: var(--tblr-muted);
}

.btn-outline-dark:hover {
  --tblr-btn-hover-bg: var(--tblr-dark);
}

.btn-outline-light:hover {
  --tblr-btn-hover-bg: var(--tblr-light);
}

.btn-outline-danger:hover {
  --tblr-btn-hover-bg: var(--tblr-danger);
}

.btn-outline-warning:hover {
  --tblr-btn-hover-bg: var(--tblr-warning);
}

.btn-outline-info:hover {
  --tblr-btn-hover-bg: var(--tblr-info);
}

.btn-outline-success:hover {
  --tblr-btn-hover-bg: var(--tblr-success);
}

.btn-outline-secondary:hover {
  --tblr-btn-hover-bg: var(--tblr-secondary);
}

.btn-outline-primary:hover {
  --tblr-btn-hover-bg: var(--tblr-primary);
}

/* TOM-SELECT */
.ts-control{
  padding: 0.5625rem 2.25rem 0.5625rem 0.75rem;
}

.ts-dropdown{
  background-color: var(--tblr-bg-forms);
  white-space: nowrap;
}

.ts-control, .ts-control input, .ts-dropdown {
  color: var(--tblr-body-color);
}

.ts-dropdown-content {
  background-color: var(--tblr-bg-forms);
}

/* TAGSINPUT */
.tagsinput {
  background-color: var(--tblr-bg-forms);
  border: var(--tblr-border-width) solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-brand-image {
  height: 3rem;
}

.icon-label {
  height: 1rem;
  width: auto;
  vertical-align: middle;
}

.img-info {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.dark-popover {
  --tblr-popover-bg: #232e3c;
  --tblr-popover-border-color: #232e3c;
  --tblr-popover-border-width: 1px;
  color: #fff;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Update result-card to support micro-interactions */
.result-card {
  display: flex !important;
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid #f2f4f7 !important;
  border-left: 6px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  /* Premium smooth transition for all elements inside */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
}

/* Base icon badge transition */
.status-badge {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease !important;
}

.status-badge i {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

/* Base arrow button transition */
.btn-minimal-detail {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.btn-minimal-detail i {
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===================================================
   GLOBAL HOVER EFFECTS (Triggered by card hover)
   =================================================== */

/* Card lifts up */
.result-card:hover {
  transform: translateY(-5px) !important;
}

/* Icon badge pops up and subtle tilts */
.result-card:hover .status-badge {
  transform: scale(1.05);
}

.result-card:hover .status-badge i {
  transform: rotate(-8deg) scale(1.1); /* Minimal playful tilt */
}

/* Arrow button scales up */
.result-card:hover .btn-minimal-detail {
  transform: scale(1.08);
  background: #ffffff;
}

/* Arrow nudges to the right */
.result-card:hover .btn-minimal-detail i {
  transform: translateX(4px);
}

/* ===================================================
   THEME SPECIFIC HOVER EFFECTS (Green / Yellow / Red)
   =================================================== */

/* 1. Green Theme Hover */
.result-card.status-green:hover {
  border-color: #10b981 !important;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08) !important;
}
.result-card.status-green:hover .status-badge {
  background-color: #10b981 !important;
  color: #ffffff !important;
}
.result-card.status-green:hover .btn-detail-green {
  border-color: #10b981 !important;
  color: #10b981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* 2. Yellow Theme Hover */
.result-card.status-yellow:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.08) !important;
}
.result-card.status-yellow:hover .status-badge {
  background-color: #f59e0b !important;
  color: #ffffff !important;
}
.result-card.status-yellow:hover .btn-detail-yellow {
  border-color: #f59e0b !important;
  color: #d97706 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* 3. Red Theme Hover */
.result-card.status-red:hover {
  border-color: #ef4444 !important;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.08) !important;
}
.result-card.status-red:hover .status-badge {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}
.result-card.status-red:hover .btn-detail-red {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Mobile responsive styling */
@media (max-width: 576px) {
  .action-group {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 12px;
    margin-top: 4px;
  }
}