/* Admin Roles Permissions Styles */

.permission-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.permission-checkbox:checked + label {
  color: #DC1F2D !important;
  font-weight: 600 !important;
}

.select-all-checkbox:indeterminate {
  background-color: #DC1F2D;
  border-color: #DC1F2D;
}

.permissions-checkbox-container::-webkit-scrollbar {
  width: 8px;
}

.permissions-checkbox-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.permissions-checkbox-container::-webkit-scrollbar-thumb {
  background: #DC1F2D;
  border-radius: 10px;
}

.permissions-checkbox-container::-webkit-scrollbar-thumb:hover {
  background: #b81a28;
}

.permission-item.hidden,
.permission-type-group.hidden,
.permission-type-section-header.hidden {
  display: none !important;
}

#update-permissions-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === NAVBAR CLEAN DARK THEME === */
.top-navbar {
  background: #1C1B1F;
  padding: 8px 20px;
  border-bottom: 1px solid #2E2C32;
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* logo */
.navbar .brand-logo {
  width: 40px;
  height: auto;
}

.navbar .brand-name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-left: 10px;
}

.navbar .nav-link {
  color: #fff;
  font-size: 18px;
}

.navbar .nav-link:hover {
  color: #DC1F2D;
}

/* === SIDEBAR CORE === */
.sidebar {
  width: 65px;
  transition: width 0.3s ease;
  background: #1f2937;
  color: white;
  height: 100vh;
  position: fixed;
  overflow-x: hidden;
  padding-top: 20px;
  left: 0;
  top: 0;
  z-index: 1030; /* keeps it above navbar */
}

/* === TEXT HIDDEN WHEN COLLAPSED === */
.sidebar span,
.sidebar .group-title {
  opacity: 0;
  width: 0;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* === SHOW TEXT ON HOVER === */
.sidebar:hover span,
.sidebar:hover .group-title {
  opacity: 1;
  width: auto;
  margin-left: 10px;
}

/* === ICONS === */
.sidebar a i {
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}

/* === EXPAND WIDTH === */
.sidebar:hover {
  width: 240px;
}

/* === LINKS === */
.sidebar a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sidebar a:hover {
  background: #374151;
}

/* === GROUP TITLES === */
.group-title {
  font-size: 12px;
  opacity: 0.7;
  padding-left: 20px;
  margin-top: 15px;
  text-transform: uppercase;
}

/* === CONTENT WRAPPER SHIFT === */
.content-wrapper {
  margin-left: 65px;
  transition: margin-left 0.3s ease;
  padding: 65px;
}

.sidebar:hover + .content-wrapper {
  margin-left: 240px;
}
/* Common Form Styles for Admin Forms */

/* === Form Row Styles === */
.faq-form-row {
  clear: both;
  margin-top: 30px;
}

.faq-form-wrapper {
  margin-top: 10px;
}

/* === Thumbnail Styles === */
.faq-thumbnail {
  max-width: 200px;
  max-height: 150px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.faq-thumbnail-large {
  max-width: 300px;
  max-height: 200px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* === Back Link Styles === */
.faq-back-link {
  color: white;
  text-decoration: none;
}

.faq-back-link:hover {
  color: white;
  text-decoration: underline;
}

/* === Video URL Row === */
.video-url-row {
  /* Default visible */
}

.video-url-row.hidden {
  display: none;
}

/* === Form Actions === */
.faq-form-actions {
  /* Add any specific styles for form action buttons if needed */
}

/* === Quill Editor Styles === */
.quill-editor-wrapper {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  overflow: hidden;
}

.quill-editor-wrapper #faq_answer_editor {
  min-height: 200px;
  max-height: 400px;
}

.quill-editor-wrapper .ql-container {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  height: auto;
  min-height: 200px;
  max-height: 400px;
  margin: 0;
  position: relative;
  box-sizing: border-box;
}

.quill-editor-wrapper .ql-editor {
  box-sizing: border-box;
  line-height: 1.42;
  height: 100%;
  min-height: 200px;
  max-height: 400px;
  outline: none;
  overflow-y: auto;
  padding: 12px 15px;
  tab-size: 4;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.quill-editor-wrapper .ql-toolbar {
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  padding: 8px;
  border-top: none;
  border-left: none;
  border-right: none;
}

.quill-editor-wrapper .ql-container.ql-snow {
  border: none;
}

.quill-editor-wrapper .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid #ccc;
}

/* UI Components Stylesheet */

/* Option Tile Styles */
.ui-option-tile {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  margin: 2px;
}

.ui-option-text {
  font-weight: 500;
}

.ui-option-meta {
  font-size: 0.875rem;
  color: #6c757d;
  margin-left: 8px;
}

/* Select Component Styles */
.ui-select-wrapper {
  position: relative;
}

.ui-es-select {
  position: relative;
}

.ui-es-select .form-control {
  width: 100%;
}

/* Multiselect Component Styles */
.ui-multiselect-wrapper {
  position: relative;
}

.ui-es-multiselect {
  position: relative;
}

.ui-es-multiselect .form-control {
  width: 100%;
}

.selected-items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
}

.ui-selected-tile {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}

.ui-selected-tile .btn-close {
  font-size: 0.75rem;
  opacity: 0.8;
}

.ui-selected-tile .btn-close:hover {
  opacity: 1;
}

/* Form Card Styles */
.ui-form-card {
  margin-bottom: 2rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.ui-form-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem 1.25rem;
}

.ui-form-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
}

.ui-form-card .card-body {
  padding: 1.5rem;
}

.ui-form-card .card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem 1.25rem;
}

/* Form Field Wrapper */
.form-field-wrap {
  margin-bottom: 1rem;
}

.form-field-wrap .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #212529;
}

.form-field-wrap .form-label.required::after {
  content: " *";
  color: #dc3545;
}

.form-field-wrap .form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Status Badge Colors */
.badge.bg-success {
  background-color: #198754 !important;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
}

.badge.bg-info {
  background-color: #0dcaf0 !important;
}

.badge.bg-primary {
  background-color: #0d6efd !important;
}

/* Autocomplete Dropdown Styling */
.ui-autocomplete {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.ui-autocomplete .ui-menu-item {
  padding: 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #212529;
}

.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #212529 !important;
}

.ui-autocomplete .ui-menu-item-wrapper:hover *,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active * {
  color: #212529 !important;
}

.ui-autocomplete .ui-menu-item-wrapper:hover .badge,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active .badge {
  color: #fff !important;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-disabled {
  color: #6c757d !important;
  cursor: default;
  font-style: italic;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-disabled:hover {
  background-color: #fff;
  color: #6c757d !important;
}

.ui-autocomplete .ui-menu-item:last-child .ui-menu-item-wrapper {
  border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .ui-form-card .card-body {
    padding: 1rem;
  }
  
  .selected-items-container {
    padding: 6px;
  }
  
  .ui-selected-tile {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

/* Select2 Integration Styles */
.select2-container--default .select2-selection--multiple {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  min-height: 38px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #0d6efd;
  border: 1px solid #0d6efd;
  color: #fff;
  padding: 4px 8px;
  margin: 2px;
  border-radius: 0.25rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #fff;
  margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #fff;
  opacity: 0.8;
}

/* Loading States */
.ui-select-wrapper.loading::after,
.ui-multiselect-wrapper.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translateY(-50%);
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

/* Common-css */
body {
    font-family: 'Poppins', sans-serif;
    background: #FFFBFB;
}

img {
    max-width: 100%;
}

.text-red {
    color: #DC1F2D;
}

h2 {
    font-size: 40px;
    font-weight: 700;
}

h3 {
    font-size: 32px;
    font-weight: 600;
    line-height: 48px;
}

.font-size-16 {
    font-size: 16px;
    line-height: 18px;
}

.font-size-18 {
    font-size: 18px;
    line-height: 20px;
}

.font-size-20 {
    font-size: 20px;
    line-height: 22spx;
}

.mb-40 {
    margin-bottom: 40px;
}

.pl-3 {
    padding-left: 16px;
}

.pr-3 {
    padding-right: 16px;
}

.pr-8 {
    padding-right: 8px;
}

.pl-8 {
    padding-left: 8px;
}

.mr-8 {
    margin-right: 8px;
}

.ml-8 {
    margin-left: 8px;
}

.mb-8 {
    margin-bottom: 32px;
}

table {
    table-layout: fixed;
    width: 100%;
}

table td {
    word-wrap: break-word;
}

  th {
    background-color: #f2f2f2;
    cursor: pointer;
    position: relative;
  }
  th svg {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
  }
  th.sort-asc svg {
    transform: translateY(-50%) rotate(180deg);
  }
  th.sort-desc svg {
    transform: translateY(-50%);
  }
  tr:nth-child(even) {
    background-color: #f2f2f2;
  }


body .comm-btn-black {
    padding: 13px 35px;
    background: #000000;
    border-radius: 100px;
    font-weight: 500;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.1px;
    box-shadow: none;
    color: #fff;
    border: 0;
}

.comm-btn-black:focus {
    box-shadow: none;
}

body .comm-red-btn {
    background: #DC1F2D !important;
    border-radius: 0.25rem;
    color: #FFFFFF;
    padding: 10px 20px;
    border: 0;
    font-size: 16px;
    line-height: 20px;
    text-transform: capitalize;
    margin-bottom: 0;
    border: solid 1px #DC1F2D !important;
}

.text-upper {
    text-transform: uppercase;
}

.main-light-heading {
    font-weight: 600 !important;
    font-size: 22px !important;
    text-transform: capitalize;
}


/* Header css-starts */
body header {
    padding: 0 64px;
    border-bottom: 1px solid #DADCE0;
    background-color: #1C1B1F; /* Dark background color for the header */
    margin-bottom: 35px;
}

header .navbar {
    background-color: #1C1B1F !important; /* Dark background color for the navbar */
    padding-top: 3px;
    padding-bottom: 3px;
    margin-right: 240px;
}

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

header .navbar-brand img {
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    border: 1px solid transparent;
}

header .navbar-nav.me-auto {
    margin-left: auto;
    margin-right: 0 !important;
    align-items: center;
}

header .navbar .navbar-nav li a.nav-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #fff; /* Text color for navbar links */
    padding: 0;
}

header .navbar .navbar-nav li a.nav-link.active {
    padding-bottom: 10px;
    border-bottom: 3px solid #DC1F2D;
    color: #DC1F2D;
}

header .navbar .navbar-nav li a.nav-link svg {
    margin-right: 8px !important;
    width: 26px;
}

header .navbar .navbar-nav li a.nav-link.active svg path {
    fill: #DC1F2D;
}

header .navbar-nav .nav-item {
    padding: 0 20px;
}

body .tb-error-text {
    color: #e71c1c;
    padding: 5px 0;
}

.tb-error-text h4, .tb-error-text h2 {
    font-size: 16px;
    font-weight: 500;
}

.tb-error-text ul {
    padding: 0 28px;
    font-weight: 100;
    font-size: 14px;
}

.btn-secondary.large {
    background-color: #1C1B1F;
    width: 16rem;
}

.btn-secondary {
    background-color: #1C1B1F;
    white-space: nowrap;
}

.mb-30 {
    margin-bottom: 30px;
}

li.page-item.active a.page-link {
    background-color: #1C1B1F;
    border-color: #1C1B1F;
}

li.page-item a.page-link {
    color: #1C1B1F;
}

.custom-margin {
    margin-right: 10px;
  }


#flash-container {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: 90%;
}

.flash-message {
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  animation: fadeOut 0.5s ease-in-out 3s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.table-responsive {
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
