/**
* Template Name: NiceAdmin
* Updated: Jan 29 2024 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Design Tokens — Global type scale & colour palette
# All font sizes, weights, and key spacing values live here.
# Reference these variables throughout the file instead of
# hard-coding pixel values so the whole admin stays consistent.
--------------------------------------------------------------*/
:root {
  /* -- Typography scale -- */
  --fs-xs:   11px;   /* badges, micro-labels              */
  --fs-sm:   12px;   /* helper text, timestamps, captions */
  --fs-base: 14px;   /* body copy, table cells, inputs    */
  --fs-md:   15px;   /* slightly larger body              */
  --fs-lg:   16px;   /* notification headings, sub-titles */
  --fs-xl:   18px;   /* card titles, section headings     */
  --fs-2xl:  20px;   /* modal headings, alert headings    */
  --fs-3xl:  24px;   /* page title h1                     */
  --fs-icon: 22px;   /* header nav icons                  */

  /* -- Font weights -- */
  --fw-normal:  400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* -- Brand colours (unchanged from NiceAdmin) -- */
  --clr-primary:  #4154f1;
  --clr-dark:     #012970;
  --clr-muted:    #899bbd;
  --clr-body:     #444444;
  --clr-border:   #ebeef4;
  --clr-bg:       #f6f9ff;
  --clr-white:    #ffffff;

  /* -- Spacing -- */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  30px;

  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: var(--fs-base);
  background: var(--clr-bg);
  color: var(--clr-body);
}

a {
  color: var(--clr-primary);
  text-decoration: none;
}

a:hover {
  color: #717ff5;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: var(--fs-3xl);
  margin-bottom: 0;
  font-weight: var(--fw-bold);
  color: var(--clr-dark);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: var(--fs-md);
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: var(--fs-base);
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--clr-dark);
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: #899bbd;
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
}

.card-body {
  padding: 0 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: var(--fw-medium);
  font-family: "Poppins", sans-serif;
  font-size: var(--fs-2xl);
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: var(--fs-base);
  font-family: "Nunito", sans-serif;
  color: var(--clr-muted);
  font-weight: var(--fw-semi);
}

.breadcrumb a {
  color: #51678f;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #012970;
}

.breadcrumb .breadcrumb-item::before {
  color: #51678f;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #4154f1;
  border-bottom: 2px solid #4154f1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #012970;
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 10px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #012970;
}

.header .toggle-sidebar-btn:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: var(--fs-icon);
  color: var(--clr-dark);
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: var(--fs-xs);
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: var(--fs-sm);
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: var(--fs-sm);
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: var(--fs-xl);
  margin-bottom: 0;
  font-weight: var(--fw-semi);
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: var(--fs-base);
}

.header-nav .profile .dropdown-item {
  font-size: var(--fs-base);
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--clr-muted);
  font-weight: var(--fw-semi);
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--clr-primary);
  transition: 0.3;
  background: var(--clr-bg);
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #4154f1;
}

.sidebar-nav .nav-link.collapsed {
  color: #012970;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  color: var(--clr-dark);
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
  background-color: #4154f1;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #4154f1;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: var(--fs-base);
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: var(--fs-md);
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: var(--fs-base);
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: var(--fs-base);
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: var(--fs-base);
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: var(--fs-base);
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: var(--clr-dark);
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--clr-dark);
}

/* The template names hosted Google Fonts. Use installed system fonts offline. */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.logo span,
.card-title,
.sidebar-nav,
.header-nav {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Small adjustments for Mogao's data and forms within the NiceAdmin theme. */
.header .logo img{max-height:32px;margin-right:8px}
.header .logo span{font-size:var(--fs-3xl)}
.main .alert{margin-bottom:var(--sp-md)}

/* Login page logo - inside white box, no stretching */
.login-logo {
  max-width: 180px;
}
.login-logo img {
  max-height: none !important;
  height: auto;
  width: auto;
  max-width: 100%;
  display: block;
}

/* Dashboard header logo - no max-height, no stretching */
.dashboard-logo img {
  max-height: none !important;
  height: auto;
  width: auto;
  max-width: 180px;
  display: block;
}
.stat-card{display:block;color:inherit;transition:transform .2s ease,box-shadow .2s ease}
.stat-card:hover{color:inherit;transform:translateY(-2px);box-shadow:0 8px 28px rgba(1,41,112,.14)}
.stat-card .card-title{padding-top:8px}
.dashboard .service-card .card-icon{color:#6f42c1;background:#f1eafe}
.dashboard .card{position:relative}
.dashboard-period{position:absolute;top:18px;right:20px;color:var(--clr-muted);font-size:var(--fs-sm)}
.dashboard-chart{min-height:320px}
.dashboard-donut{min-height:280px}
.dashboard-list-row{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-md);padding:12px 0;border-bottom:1px solid var(--clr-border)}
.dashboard-list-row:last-child{border-bottom:0}
.dashboard-list-row small{text-align:right;white-space:nowrap;font-size:var(--fs-sm);color:var(--clr-muted)}
.filter-card .card-body{padding:20px}
.records-card{overflow:hidden}
.records-card .table th{font-weight:var(--fw-semi);color:var(--clr-dark);white-space:nowrap;font-size:var(--fs-base)}
.records-card .table td{color:var(--clr-body);vertical-align:middle;font-size:var(--fs-base)}
.records-card .table .text-nowrap{white-space:nowrap}
.data-table-controls,.data-table-footer{background:var(--clr-white)}
.data-table-controls{border-bottom:1px solid var(--clr-border)}
.data-table-controls label{white-space:nowrap;font-size:var(--fs-base)}
.data-table-controls .data-table-page-size{width:auto;min-width:76px}
.data-table-controls .data-table-search{width:min(260px,55vw)}
.data-table-footer{border-top:1px solid var(--clr-border);font-size:var(--fs-base)}
.data-table-sortable{cursor:pointer;user-select:none}
.data-table-sortable:focus-visible{outline:2px solid var(--clr-primary);outline-offset:2px}
.records-card td form{display:inline-block;margin:0}
.records-card .btn-icon{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;padding:0}
.table-serial-col{width:56px;white-space:nowrap}
.table-serial-cell{color:#6c757d;font-variant-numeric:tabular-nums;font-weight:var(--fw-semi);font-size:var(--fs-base)}
.price{color:var(--clr-primary);font-weight:var(--fw-semi);white-space:nowrap}
.thumb{display:inline-block;width:44px;height:44px;border-radius:5px;background:var(--clr-bg) center/cover no-repeat}
.thumb.big{display:block;width:96px;height:72px;margin:8px 0}
.single-image-field [data-single-image-current] > .thumb.big{margin:0}
.single-image-field-stacked .single-image-preview{min-height:91px}
.compact-fields .item-fields-grid:has([data-product-image-preview] .product-image-choice-wrap:not([data-product-image-placeholder]))>.field-image .single-image-preview{min-height:108px}
.product-gallery-preview{display:flex;flex-wrap:wrap;gap:var(--sp-sm)}
.product-gallery-preview img{object-fit:cover}
.image-unavailable{object-fit:contain;background:#eef2f8;cursor:default}
.thumb.image-space{background-image:none;border:1px dashed var(--clr-border)}
.compact-fields .product-gallery-preview .thumb.image-space,
.compact-fields .single-image-preview .thumb.image-space{border:0;vertical-align:baseline}
.product-image-choice{display:flex;flex-direction:column;align-items:center;gap:var(--sp-xs);border:1px solid var(--clr-border);border-radius:6px;padding:6px;font-size:var(--fs-sm)}
.product-image-choice span{display:flex;align-items:center;gap:var(--sp-xs)}
.image-remove-x{display:inline-flex;width:12px;height:12px;min-width:12px;min-height:12px;align-items:center;justify-content:center;margin:1px;padding:0;border:0;border-radius:50%;background:#dc3545;color:#fff;font-size:9px;font-weight:var(--fw-bold);line-height:12px}
.image-remove-x:hover,.image-remove-x:focus{background:#b02a37;color:#fff}
.form-card .card-body{padding:var(--sp-lg)}
.form-card .card-body>.row,.modal-content .modal-body>.row{align-items:start}
.crud-form-field{min-width:0}
.crud-form-field>.form-label{display:block;width:100%;margin-bottom:.5rem;font-size:var(--fs-base);font-weight:var(--fw-normal);color:var(--clr-body)}
.crud-form-field>.form-control,.crud-form-field>.form-select{display:block;width:100%;max-width:100%;font-size:var(--fs-base)}
.crud-form-field [data-select-new-field]>.form-control,.crud-form-field [data-select-new-field]>.form-select{display:block;width:100%;max-width:100%;font-size:var(--fs-base)}
.crud-switch{display:flex;align-items:center;gap:.75rem;min-height:66px;margin:0;padding-top:1.6rem}
.crud-switch .form-check-label{margin:0;color:var(--clr-body);font-size:var(--fs-base);font-weight:var(--fw-normal)}
.crud-form-field .invalid-feedback{margin-top:.35rem;font-size:var(--fs-sm)}
.form-section-heading{margin-top:.75rem;padding-bottom:.25rem;border-bottom:1px solid var(--clr-border)}
.form-section-heading h2{margin:0;color:var(--clr-dark);font-size:var(--fs-md);font-weight:var(--fw-bold)}
.json-textarea{min-height:120px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:var(--fs-sm);line-height:1.5;white-space:pre}
.availability-schedule{width:100%}
.availability-row .btn{min-height:38px;font-size:20px;line-height:1}
.combo-product-dropdown{position:relative}
.combo-product-summary{display:flex;align-items:center;min-height:38px;cursor:pointer;list-style:none;background-image:none;font-size:var(--fs-base);line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.combo-product-summary::-webkit-details-marker{display:none}
.combo-product-summary::after{content:"";margin-left:auto;width:0;height:0;border:5px solid transparent;border-top-color:#6c757d;transform:translateY(3px)}
.combo-product-menu{position:absolute;inset:calc(100% + 4px) 0 auto;z-index:1050;padding:10px;background:var(--clr-white);border:1px solid #ced4da;border-radius:5px;box-shadow:0 6px 18px rgba(1,41,112,.15)}
.combo-product-options{max-height:260px;overflow:auto}
.combo-product-option{display:flex;align-items:flex-start;gap:var(--sp-sm);padding:7px 6px;border-radius:4px;cursor:pointer;font-size:var(--fs-base)}
.combo-product-option:hover{background:var(--clr-bg)}
.combo-product-option .form-check-input{flex:none;margin-top:3px}
.combo-product-option span{overflow-wrap:anywhere}
.searchable-select-dropdown{position:relative}
.searchable-option{display:block;width:100%;padding:7px 6px;border:0;border-radius:4px;background:transparent;color:inherit;cursor:pointer;font-size:var(--fs-base);text-align:left;overflow-wrap:anywhere}
.searchable-option:hover,.searchable-option.active{background:var(--clr-bg);color:var(--clr-dark)}
.compact-fields .card-body{padding:18px 20px}
.compact-fields .item-fields-grid{--bs-gutter-x:1rem;--bs-gutter-y:0;align-items:flex-start;margin-top:0;row-gap:.5rem}
.compact-fields .item-fields-grid>*{margin-top:0}
.compact-fields .item-fields-grid>.crud-form-field{margin-bottom:.5rem}
.compact-fields .form-section-heading{margin-top:.25rem;margin-bottom:0;padding-bottom:.5rem;border-bottom:1px solid #e6eaf2}
.compact-fields .form-section-heading:first-child{margin-top:0}
.compact-fields .form-section-heading:not(:first-child){margin-top:.5rem}
.compact-fields .form-section-heading h2{color:var(--clr-dark);font-size:var(--fs-md);font-weight:var(--fw-bold);letter-spacing:.04em;text-transform:uppercase}
.required-mark{font-weight:var(--fw-bold);margin-left:2px}
.compact-fields .form-label{margin-bottom:.3rem;color:var(--clr-body);font-size:var(--fs-base);font-weight:var(--fw-normal)}
.compact-fields .item-inline-row .form-label{margin-bottom:.25rem;color:var(--clr-body);font-size:var(--fs-base);font-weight:var(--fw-normal)}
.compact-fields .item-inline-row .form-control,.compact-fields .item-inline-row .form-select{min-height:38px;font-size:var(--fs-base)}
.compact-fields .item-inline-row .btn:not(.image-remove-x){height:38px;padding:0;font-size:20px;line-height:1}
.compact-fields .crud-switch{min-height:0;padding-top:23px;align-items:center}
.compact-fields .crud-switch .form-check-input{flex:none;margin-top:0}
.compact-fields .form-text{margin-top:.25rem;font-size:var(--fs-sm)}
.compact-fields .product-gallery-preview{min-height:91px;max-height:110px;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap}
.compact-fields .product-gallery-new-preview:empty{margin:0}
.product-gallery-new-preview{display:contents}
.compact-fields .item-inline-row[data-item-course-row]{align-items:flex-start !important}
.compact-fields .item-inline-row[data-item-course-row] > .col-md-1{align-self:flex-end}
.compact-fields .item-inline-row[data-item-course-row] .form-label{margin-top:.5rem;margin-bottom:.5rem}
[data-course-existing-images]{margin-bottom:0}
[data-course-existing-images].has-course-images,[data-course-existing-images]:has(img){margin-bottom:.5rem}
.compact-fields .item-fields-grid>.field-combo_multiselect,
.compact-fields .item-fields-grid>.field-product_images,
.compact-fields .item-fields-grid>.field-image{align-self:stretch;display:flex;flex-direction:column}
/* Business Lunch: hide product-only fields leave name/category/price misaligned; reflow them. */
@media(min-width:768px){[data-bl-tabs].bl-mode [data-field="category_id"],[data-bl-tabs].bl-mode [data-field="price"]{flex:1 1 0;width:auto;max-width:none}}
@media(min-width:768px){[data-bl-tabs].bl-mode [data-field="sort_order"]{flex:0 0 100%;width:100%;max-width:none}}
.compact-fields .item-fields-grid>.field-combo_multiselect>.form-text,
.compact-fields .item-fields-grid>.field-product_images>.form-text{margin-top:auto;padding-top:.25rem}
.compact-fields .item-fields-grid>.field-image>.single-image-field{display:flex;flex:1;flex-direction:column}
.compact-fields .item-fields-grid>.field-image .single-image-field>.form-text{margin-top:auto;padding-top:.25rem}
@media(min-width:768px){.compact-fields .item-fields-grid>.field-combo_multiselect .combo-product-summary{min-height:108px;align-items:flex-start;padding-top:10px}}
.product-image-choice-wrap{width:108px}
.product-image-thumb{width:96px;height:72px}
.permission-group{min-width:0;border:1px solid var(--clr-border);border-radius:5px;padding:12px 16px}
.permission-group legend{font-size:var(--fs-base);color:var(--clr-dark)}
.permission-group .form-check{margin:7px 0}
.form-card .card-footer{background:var(--clr-white);border-top:1px solid var(--clr-border);padding:var(--sp-md) var(--sp-lg)}
.form-control[type=file]{padding:8px}
.single-image-field input[type=file]{font-size:var(--fs-base);min-height:38px}
@media(max-width:575px){.dashboard-list-row{align-items:flex-start;flex-direction:column;gap:var(--sp-xs)}.dashboard-list-row small{text-align:left}.form-card .card-body{padding:18px}}

/* ── Permission badge groups (server-side datatable - roles) ── */
.permission-badge-groups{display:flex;flex-direction:column;gap:var(--sp-xs);min-width:200px;max-width:400px}
.permission-badge-group{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-xs)}
.permission-badge-group .badge.text-bg-primary{font-size:var(--fs-xs);min-width:64px;text-align:center}
.permission-badge-group .badge.text-bg-light{font-size:var(--fs-xs);color:#444;border-color:#dee2e6!important}
/* ── Server-side datatable sort indicator ── */
.data-table-sortable[aria-sort="ascending"]::after{content:" ↑";color:var(--clr-primary)}
.data-table-sortable[aria-sort="descending"]::after{content:" ↓";color:var(--clr-primary)}
/* ── Top-bar cache action ── */
.header-nav .nav-clear-cache{line-height:1}
.header-nav .nav-clear-cache:hover:not(:disabled),
.header-nav .nav-clear-cache:focus-visible{color:var(--clr-primary)}
.header-nav .nav-clear-cache:disabled{opacity:.65}
.header-nav .nav-clear-cache.is-busy i{animation:cache-spin 1s linear infinite}
@keyframes cache-spin{to{transform:rotate(360deg)}}

