/* 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;
}
/*
 * 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);
  }
}
