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

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  --background-color: #fff6f0;
}

body {
  font-family: "Outfit", sans-serif !important;
  /* background: #ededed60; */
  background: var(--background-color);
  color: #000 !important;
  font-size: 15px !important;
  /*color: #444444;*/
}

a {
  color: #4154f1;
  text-decoration: none;
}

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

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

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

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

/*--------------------------------------------------------------
# Section
--------------------------------------------------------------*/
.section {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 0 5px #e1e1e1;
  min-height: 80vh !important;
  padding: 10px;
}

@media (max-width: 1199px) {
  .section {
    padding: 10px;
  }
}

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

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #2E2E2E !important;
}

/*--------------------------------------------------------------
# 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);
  z-index: 10000 !important;
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  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: 14px;
  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: 18px;
  font-weight: 500;
  color: #2E2E2E !important;
  font-family: "Outfit", sans-serif !important;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

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

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

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

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

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

/* Btn info  */
.btn-info {
  background: #0d79a8 !important;
  border-color: #0d79a8 !important;
  color: #fff !important;
}

.btn-info:hover {
  background: #0b668d !important;
}

.text-info {
  color: #0d79a8 !important;
}

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

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

.accordion-button:not(.collapsed) {
  color: #2E2E2E !important;
  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: 14px;
  font-family: "Nunito", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.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: 230px;
  }
}

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

.logo span {
  font-size: 28px;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 1px 1px 5px #303030;
  /* font-family: "Nunito", sans-serif; */
}

.header {
  background: var(--background-color) !important;
  /* background-color: transparent !important; */
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .page_title {
  font-size: 20px;
  font-weight: 500;
  color: #696969 !important;
  font-family: "Outfit", sans-serif;
  text-transform: capitalize !important;
}

.header .toggle-sidebar-btn {
  font-size: 25px;
  padding-left: 10px;
  cursor: pointer;
}

.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: #2E2E2E !important;
  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: #2E2E2E !important;
}

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

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

.header-nav .nav-icon {
  font-size: 22px;
  color: #2E2E2E !important;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #2E2E2E !important;
}

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

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  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: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  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: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  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;
  z-index: 10000 !important;
  position: absolute !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  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: 50px;
  left: 0;
  bottom: 0;
  width: 250px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px 5px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a8a8a840 transparent;
  background-color: var(--background-color) !important;
}

@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: 250px;
  }
}

@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-heading {
  font-size: 15px;
  color: #899bbd;
  margin: 5px 0 0 10px;
}

.sidebar-nav .nav-item.active .nav-link {
  display: flex;
  align-items: center;
  font-size: 16px;
  transition: 0.3;
  background: #fff;
  color: #FB8C00;
  border-right: 4px solid #FB8C00;
  box-shadow: 0px 0px 2px #c3c3c3;
  border-radius: 5px;
  padding: 0px;
}

.sidebar-nav .nav-item.active .nav-link:hover i {
  color: #fff;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #4a4a4a;
  transition: 0.3;
  padding: 2px 0px;
  border-radius: 4px;
}

.sidebar-nav .nav-link:hover {
  color: #FB8C00 !important;
}

/* Nav link content */
.nav-link-content {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 5px;
  color: #FB8C00;
}


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

.sidebar-nav .nav-item.active .nav-link.collapsed i {
  color: #FB8C00;
}

/* Nav arrow styles - positioned to the right */
.nav-arrow {
  font-size: 14px;
  transition: all 0.3s ease;
  color: #899bbd;
  margin-left: auto;
  padding: 0 10px;
}

.sidebar-nav .nav-link:hover .nav-arrow {
  color: #FB8C00;
}

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

.sidebar-nav .nav-content {
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent !important;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #454545 !important;
  transition: 0.3;
  padding: 5px 25px;
  margin-bottom: 0;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 16px;
  margin-right: 5px;
  line-height: 0;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #FB8C00 !important;
}


/*--------------------------------------------------------------
# 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: #2E2E2E !important;
  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: 14px;
}

.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: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #2E2E2E !important;
  transition: 0.3s;
}

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

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.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: 14px;
}

.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: #2E2E2E !important;
  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: 12px;
  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: #2E2E2E !important;
}

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

.profile .profile-overview .card-title {
  color: #2E2E2E !important;
}

.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;
}

/*--------------------------------------------------------------
# Compact Modern Profile Page Styles - Orange & Gray Theme
--------------------------------------------------------------*/

/* Navigation compacte en haut */
.profile-nav-compact {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.1);
  margin-bottom: 16px;
  border: 1px solid rgba(108, 117, 125, 0.1);
  padding: 4px;
}

.nav-tabs-compact {
  margin-bottom: 0;
  border-bottom: none;
}

.nav-tabs-compact .nav-item {
  flex: 1;
}

.tab-btn-compact {
  width: 100%;
  background: none !important;
  border: none !important;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px !important;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #6c757d !important;
  text-decoration: none;
}

.tab-btn-compact:hover {
  background: rgba(156, 163, 175, 0.2) !important;
  color: #898c93 !important;
}

.tab-btn-compact.active {
  background: linear-gradient(135deg, #898c93 0%, #bfc3ca 100%) !important;
  box-shadow: 0 4px 15px rgba(156, 163, 175, 0.2);
  color: white !important;
}

.tab-btn-compact:focus {
  box-shadow: 0 4px 15px rgba(156, 163, 175, 0.2);
}

.tab-icon-compact {
  font-size: 14px;
  margin-right: 6px;
}

.tab-text-compact {
  font-weight: 500;
}

/* Carte de profil compacte */
.profile-main-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(255, 127, 39, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 127, 39, 0.08);
  margin-bottom: 16px;
}

.profile-main-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 127, 39, 0.15);
}

/* Header du profil compact */
.profile-header-modern {
  position: relative;
  padding: 20px 16px;
  background: linear-gradient(135deg, #8c9096 0%, #bfc3ca 100%);
  overflow: hidden;
}

.profile-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.profile-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Avatar compact */
.profile-avatar-modern {
  margin-bottom: 12px;
}

.avatar-circle {
  position: relative;
  display: inline-block;
}

.avatar-inner {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.avatar-inner:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
}

.avatar-icon-modern {
  font-size: 28px;
  color: white;
}

.avatar-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: avatarRotate 10s linear infinite;
}

.avatar-status-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: #28a745;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@keyframes avatarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Informations utilisateur */
.profile-user-info {
  color: white;
}

.profile-fullname {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.role-icon {
  font-size: 12px;
  margin-right: 6px;
}

.role-text {
  font-weight: 500;
  font-size: 11px;
}

/* Grille d'informations compacte */
.profile-info-grid {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.info-card {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 127, 39, 0.08);
}

.info-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 127, 39, 0.1);
  background: linear-gradient(145deg, #ffffff, #f1f3f4);
}

.info-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.email-card .info-icon-wrapper {
  background: linear-gradient(135deg, #ff7f27, #ff9f47);
}

.phone-card .info-icon-wrapper {
  background: linear-gradient(135deg, #6c757d, #868e96);
}

.location-card .info-icon-wrapper {
  background: linear-gradient(135deg, #ff7f27, #ff9f47);
}

.update-card .info-icon-wrapper {
  background: linear-gradient(135deg, #6c757d, #868e96);
}

.info-icon {
  font-size: 16px;
  color: white;
}

.info-content {
  flex: 1;
}

.info-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.info-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2E2E2E;
  word-break: break-word;
}

/* Statistiques du profil compactes */
.profile-stats {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid rgba(255, 127, 39, 0.1);
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
}

.stat-item {
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 127, 39, 0.08);
  transition: all 0.3s ease;
}

.stat-item.notif {
  background: #0d6efd30;
}

.stat-item.status {
  background: #19875430;
}


.stat-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 127, 39, 0.1);
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: #ff7f27;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}


/* Conteneur des formulaires compacts */
.profile-forms-container-compact {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 127, 39, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 127, 39, 0.08);
}

.profile-tab-content-compact {
  padding: 0;
}

/* Cartes de formulaire compactes */
.form-card-modern {
  background: white;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.form-header-modern {
  display: flex;
  align-items: center;
  padding: 20px 20px 16px;
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  border-bottom: 1px solid rgba(255, 127, 39, 0.1);
}

.header-icon-modern {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7f27, #ff9f47);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  box-shadow: 0 4px 12px rgba(255, 127, 39, 0.2);
}

.header-icon-modern.security-icon {
  background: linear-gradient(135deg, #6c757d, #868e96);
}

.header-icon-modern i {
  font-size: 18px;
  color: white;
}

.header-content-modern {
  flex: 1;
}

.form-title-modern {
  font-size: 16px;
  font-weight: 700;
  color: #2E2E2E;
  margin: 0 0 4px 0;
}

.form-subtitle-modern {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
  line-height: 1.3;
}

/* Section upload photo de profil */
.photo-upload-section {
  padding: 0 20px;
  padding-top: 20px;
  margin-bottom: 5px;
}

.photo-upload-wrapper {
  margin-top: 10px;
  border: 2px dashed #d0d5dd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.photo-upload-wrapper:hover {
  border-color: #FB8C00;
  background: rgba(251, 140, 0, 0.03);
}

.photo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  color: #98a2b3;
  gap: 6px;
}

.photo-upload-placeholder i {
  font-size: 32px;
  color: #FB8C00;
  opacity: 0.7;
}

.photo-upload-placeholder span {
  font-size: 13px;
  font-weight: 500;
  color: #667085;
}

.photo-upload-placeholder small {
  font-size: 11px;
  color: #98a2b3;
}

.photo-upload-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.photo-preview-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FB8C00;
  box-shadow: 0 4px 15px rgba(251, 140, 0, 0.2);
  transition: all 0.3s ease;
}

.photo-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  gap: 4px;
  border-radius: 10px;
}

.photo-upload-overlay i {
  font-size: 20px;
}

.photo-upload-overlay span {
  font-size: 12px;
  font-weight: 500;
}

.photo-upload-wrapper:hover .photo-upload-overlay {
  opacity: 1;
}

.photo-upload-wrapper:hover .photo-preview-img {
  transform: scale(1.02);
}

/* Formulaires compacts */
.profile-form-modern,
.security-form-modern {
  padding: 20px;
}

/* Grille d'entrées compactes */
.form-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.security-inputs-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.input-group-modern {
  position: relative;
}

.input-group-modern.full-width {
  grid-column: 1 / -1;
}

/* Labels compacts */
.input-label-modern {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2E2E2E;
}

.input-icon-modern {
  font-size: 14px;
  margin-right: 6px;
  color: #ff7f27;
}

.label-text-modern {
  font-size: 12px;
}

/* Conteneurs d'entrée compacts */
.input-container-modern {
  position: relative;
  overflow: hidden;
}

/* Champs d'entrée compacts */
.input-field-modern {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #2E2E2E;
  background: #ffffff;
  transition: all 0.3s ease;
  outline: none;
  position: relative;
  z-index: 2;
}

.input-field-modern:focus {
  border-color: #ff7f27;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 127, 39, 0.1);
}

.input-field-modern.input-error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.input-field-modern::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

/* Textarea compacte */
.textarea-modern {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Bordures animées compactes */
.input-border-modern {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #ff7f27, #ff9f47);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  z-index: 1;
}

.input-field-modern:focus + .input-border-modern {
  width: 100%;
}

/* Compteur de caractères compact */
.char-counter-modern {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 9px;
  color: #adb5bd;
  font-weight: 500;
  z-index: 3;
  background: white;
  padding: 0 2px;
}

/* Messages d'erreur compacts */
.error-text-modern {
  font-size: 10px;
  color: #dc3545;
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
}

.error-text-modern::before {
  content: '\F62A';
  font-family: 'Bootstrap Icons';
  margin-right: 4px;
  font-size: 14px;
}

/* Actions de formulaire compactes */
.form-actions-modern {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 127, 39, 0.1);
}

/* Boutons compacts */
.btn-save-modern,
.btn-security-modern {
  position: relative;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  min-width: 180px;
}

.btn-save-modern {
  background: linear-gradient(135deg, #ff7f27, #ff9f47);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 127, 39, 0.3);
}

.btn-security-modern {
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: white;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-save-modern:hover,
.btn-security-modern:hover {
  transform: translateY(-1px);
}

.btn-save-modern:hover {
  box-shadow: 0 6px 20px rgba(255, 127, 39, 0.4);
}

.btn-security-modern:hover {
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-save-modern:disabled,
.btn-security-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Contenu des boutons compacts */
.btn-content-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn-icon-modern {
  font-size: 14px;
  margin-right: 6px;
}

.btn-text-modern {
  font-weight: 600;
}

/* Loader de bouton compact */
.btn-loader-modern {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: buttonSpin 1s linear infinite;
  margin-right: 6px;
}

@keyframes buttonSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Effet de vague sur les boutons */
.btn-wave-modern {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-save-modern:hover .btn-wave-modern,
.btn-security-modern:hover .btn-wave-modern {
  left: 100%;
}

/* Alertes compactes */
.alert-modern {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 500;
}

.alert-modern.error-alert {
  background: linear-gradient(145deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #721c24;
}

.alert-modern.success-alert {
  background: linear-gradient(145deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  border: 1px solid rgba(40, 167, 69, 0.2);
  color: #155724;
}

.alert-icon {
  font-size: 18px;
  margin-right: 12px;
}

.alert-text {
  flex: 1;
  font-size: 14px;
}

/* Indicateurs de sécurité compacts */
.security-indicators {
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  padding: 12px;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid rgba(255, 127, 39, 0.1);
}

.security-rule {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
}

.security-rule:last-child {
  margin-bottom: 0;
}

.rule-icon {
  font-size: 12px;
  margin-right: 6px;
}

.security-rule.text-success .rule-icon {
  color: #28a745;
}

.security-rule.text-danger .rule-icon {
  color: #dc3545;
}

/* Champs de mot de passe spéciaux */
.password-container {
  position: relative;
}

.password-field {
  /* font-family: 'Courier New', monospace; */
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 400;
  padding-right: 40px; /* Espace pour le bouton œil */
}

/* Bouton œil pour afficher/masquer le mot de passe */
.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: #ff7f27;
  background: rgba(255, 127, 39, 0.1);
}

.password-toggle-btn i {
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-grid-modern {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-header-modern {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .header-icon-modern {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .profile-form-modern,
  .security-form-modern {
    padding: 30px 20px;
  }

  .btn-save-modern,
  .btn-security-modern {
    min-width: 240px;
    font-size: 15px;
    padding: 14px 24px;
  }

  .nav-tabs-modern {
    flex-direction: column;
  }

  .tab-btn-modern {
    justify-content: center;
    text-align: center;
  }

  .profile-info-grid {
    padding: 20px;
    gap: 15px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .profile-header-modern {
    padding: 30px 20px;
  }

  .profile-fullname {
    font-size: 22px;
  }

  .form-title-modern {
    font-size: 20px;
  }

  .input-field-modern {
    padding: 14px 16px;
    font-size: 14px;
  }

  .btn-save-modern,
  .btn-security-modern {
    min-width: 200px;
  }
}

/*--------------------------------------------------------------
# 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: #2E2E2E !important;
  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: #2E2E2E !important;
  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%;
  }
}

/*--------------------------------------------------------------
# Form-control
--------------------------------------------------------------*/
.form-control {
  border: 1px solid #c5c5c5 !important;
}

.form-control:focus {
  border: 1px solid #222 !important;
  box-shadow: none !important;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  background: #ffffff;
  margin-bottom: 0;
}

.footer .copyright {
  text-align: center;
  color: #2E2E2E !important;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #2E2E2E !important;
}

/*--------------------------------------------------------------
# Modern Loader Styles
--------------------------------------------------------------*/
.modern-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modern-loader {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: ring-spin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
  border-top-color: #FB8C0020 !important;
  animation-delay: -0.45s;
}

.loader-ring:nth-child(2) {
  border-top-color: #FB8C0050 !important;
  animation-delay: -0.3s;
  width: 50px;
  height: 50px;
}

.loader-ring:nth-child(3) {
  border-top-color: #FB8C00 !important;
  animation-delay: -0.15s;
  width: 40px;
  height: 40px;
}

.loader-text {
  margin-top: 80px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/*--------------------------------------------------------------
# Modern Button Styles
--------------------------------------------------------------*/
.btn-modern-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
  color: white;
}

.btn-modern-secondary {
  background: linear-gradient(135deg, #bfc3ca 0%, #9ba0aa 100%);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(156, 163, 175, 0.2);
}

.btn-modern-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(156, 163, 175, 0.3);
  color: white;
}

/*--------------------------------------------------------------
# Enhanced Filter Styles
--------------------------------------------------------------*/


.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-btn {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 16px;
  color: #64748B;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.filter-btn:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  border-color: #4F46E5;
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.filter-btn i {
  font-size: 16px;
}

.filter-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.3);
}

.sort-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.sort-select {
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 500;
  background: white;
  min-width: 180px;
}

.sort-select:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/*--------------------------------------------------------------
# Folder and Document Item Styles with Ellipsis
--------------------------------------------------------------*/
.folder-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.folder-icon i {
  font-size: 32px;
  margin-bottom: 8px;
}

.folder-code {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.folder-name {
  font-weight: 600;
  color: #1F2937;
  font-size: 14px;
  line-height: 1.4;

  /* Limiter à 2 lignes avec ellipses */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em; /* 2 lignes × 1.4 line-height */
}

.document-item {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  /* padding: 16px; */
  height: 150px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.document-item:hover {
  border-color: #4F46E5;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
}

.document-icon i {
  font-size: 28px;
}

.document-name {
  font-weight: 600;
  color: #1F2937;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;

  /* Limiter à 2 lignes avec ellipses */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em; /* 2 lignes × 1.4 line-height */
}

.document-type {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.document-date {
  font-size: 11px;
  color: #9CA3AF;
}

/*--------------------------------------------------------------
# Empty State Styles
--------------------------------------------------------------*/
.empty-state {
  display: flex;
  justify-content: center;
  min-height: 400px;
}

.empty-state-content {
  text-align: center;
  max-width: 800px;
}

.empty-state-icon {
  font-size: 80px;
  color: #CBD5E1;
  margin-bottom: 15px;
  display: block;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}

.empty-state-text {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 5px;
  line-height: 1.5;
}

/*--------------------------------------------------------------
# Modern Loaders and Overlays
--------------------------------------------------------------*/
.modern-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.modern-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FB8C00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.loader-ring:nth-child(1) {
  animation-delay: 0s;
}

.loader-ring:nth-child(2) {
  width: 40px;
  height: 40px;
  border-top-color: #ff7700;
  animation-delay: 0.2s;
  position: absolute;
}

.loader-ring:nth-child(3) {
  width: 20px;
  height: 20px;
  border-top-color: #FFB74D;
  animation-delay: 0.4s;
  position: absolute;
}

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

.loader-text {
  font-size: 18px;
  color: #374151;
  font-weight: 500;
  text-align: center;
  margin-top: 20px;
}

/* Section loader for partial updates */
.section-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.section-loader .modern-loader {
  gap: 15px;
}

.section-loader .loader-ring {
  width: 40px;
  height: 40px;
}

.section-loader .loader-ring:nth-child(2) {
  width: 25px;
  height: 25px;
}

.section-loader .loader-ring:nth-child(3) {
  width: 15px;
  height: 15px;
}

.section-loader .loader-text {
  font-size: 14px;
  margin-top: 10px;
}

/*--------------------------------------------------------------
# Enhanced Button Styles with Gradients
--------------------------------------------------------------*/
.btn-modern {
  background: linear-gradient(135deg, #FB8C00 0%, #ff7700 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 140, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-modern:hover {
  background: linear-gradient(135deg, #ff7700 0%, #e66000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 140, 0, 0.4);
  color: white;
}

.btn-modern:active {
  transform: translateY(0);
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

/* Override dark gray buttons */
.bg-dark {
  background: linear-gradient(135deg, #6C757D 0%, #495057 100%) !important;
  border: none;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.bg-dark:hover {
  background: linear-gradient(135deg, #5A6268 0%, #3D4142 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/*--------------------------------------------------------------
# Layout pour éléments sur 3 lignes
--------------------------------------------------------------*/
.element-layout {
  display: flex;
  flex-direction: column;
  /* gap: 12px; */
  width: 100%;
  height: 100%;
  padding: 14px;
  position: relative;
}

/* Ligne 1: Icône à gauche + Code à droite */
.element-line-1 {
  display: flex;
  justify-content: space-between;
}

.element-icon-left {
  font-size: 2.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: #6B7280;
}

#appArchivesCourriers .element-icon-left {
  font-size: 3.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: #6B7280;
}

.element-code-right {
  font-size: 0.65rem;
  color: #6B7280;
  background: rgba(107, 114, 128, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: fit-content;
}

.element-name-center {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
  text-align: left;
  word-break: break-word;
  margin: 12px 0 8px 0;

  /* Limitation à 2 lignes avec ellipses */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}


/* Effets de survol pour la disposition 2 lignes */
.folder-item:hover .element-icon-left,
.document-item:hover .element-icon-left {
  color: #FB8C00 !important;
  transform: scale(1.15);
}

.folder-item:hover .element-code-right,
.document-item:hover .element-code-right {
  color: #FB8C00;
}

.folder-item:hover .element-name-center,
.document-item:hover .element-name-center {
  color: #FB8C00;
}


/* Animation de l'ensemble au survol */
.folder-item:hover .element-layout,
.document-item:hover .element-layout {
  transform: scale(1.02);
}

/* Container avec position relative pour les loaders */
.card-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/*--------------------------------------------------------------
# Classes Bootstrap personnalisées pour 5 colonnes
--------------------------------------------------------------*/
/* Classes pour 5 éléments par ligne (20% chacun) */
@media (min-width: 992px) {
  .col-lg-20 {
    flex: 0 0 auto;
    width: 20%;
  }
}

@media (min-width: 1200px) {
  .col-xl-20 {
    flex: 0 0 auto;
    width: 20%;
  }
}

/*--------------------------------------------------------------
# Force CSS Update with Timestamp
--------------------------------------------------------------*/
/* Last updated: 2025-01-19-v8-2lines-only */

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .filter-group {
    justify-content: center;
  }

  .filter-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .sort-options {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select {
    min-width: 100%;
    margin-bottom: 15px;
  }

  .empty-state {
    min-height: 300px;
    padding: 30px 15px;
  }

  .empty-state-icon {
    font-size: 60px;
  }

  .empty-state-title {
    font-size: 20px;
  }

  .empty-state-text {
    font-size: 14px;
  }
}

/* =============================================
   SweetAlert2 Toast — Styles personnalisés
   Usage: Toast.fire({ icon: 'success', customClass: { popup: 'custom-success-popup', title: 'custom-success-text' } })
   ============================================= */

/* --- SUCCESS --- */
.custom-success-popup {
  background: #28a74530 !important;
  backdrop-filter: blur(50px) !important;
  color: #28a745 !important;
  border-radius: 10px !important;
  border-bottom: 4px solid #28a745 !important;
}
.custom-success-popup .swal2-title,
.custom-success-text {
  color: #28a745 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
.custom-success-popup .swal2-html-container {
  color: #28a745 !important;
  font-size: 0.8rem !important;
  margin: 2px 0 0 !important;
}
.custom-success-popup .swal2-icon {
  border-color: none !important;
  color: #28a745 !important;
  width: 1.6em !important;
  height: 1.6em !important;
}
.custom-success-popup .swal2-icon .swal2-icon-content {
  font-size: 1.4em !important;
}
.custom-success-popup .swal2-close {
  color: #28a745 !important;
}
.custom-success-popup .swal2-close:hover {
  color: #28a745 !important;
}
.custom-success-popup .swal2-timer-progress-bar {
  background: #28a745 !important;
}

/* --- ERROR --- */
.custom-error-popup {
  background: #dc354530 !important;
  backdrop-filter: blur(50px) !important;
  color: #dc3545 !important;
  border-radius: 10px !important;
  border-bottom: 4px solid #dc3545 !important;
}
.custom-error-popup .swal2-title,
.custom-error-text {
  color: #dc3545 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
.custom-error-popup .swal2-html-container {
  color: #dc3545 !important;
  font-size: 0.8rem !important;
  margin: 2px 0 0 !important;
}
.custom-error-popup .swal2-icon {
  border-color: none !important;
  color: #dc3545 !important;
  width: 1.6em !important;
  height: 1.6em !important;
}
.custom-error-popup .swal2-icon .swal2-icon-content {
  font-size: 1.4em !important;
}
.custom-error-popup .swal2-close {
  color: #dc3545 !important;
}
.custom-error-popup .swal2-close:hover {
  color: #dc3545 !important;
}
.custom-error-popup .swal2-timer-progress-bar {
  background: #dc3545 !important;
}

/* --- WARNING --- */
.custom-warning-popup {
  background: #fd7e1430 !important;
  backdrop-filter: blur(50px) !important;
  color: #fd7e14 !important;
  border-radius: 10px !important;
  border-bottom: 4px solid #fd7e14 !important;
}
.custom-warning-popup .swal2-title,
.custom-warning-text {
  color: #fd7e14 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
.custom-warning-popup .swal2-html-container {
  color: #fd7e14 !important;
  font-size: 0.8rem !important;
  margin: 2px 0 0 !important;
}
.custom-warning-popup .swal2-icon {
  border-color: none !important;
  color: #fd7e14 !important;
  width: 1.6em !important;
  height: 1.6em !important;
}
.custom-warning-popup .swal2-icon .swal2-icon-content {
  font-size: 1.4em !important;
}
.custom-warning-popup .swal2-close {
  color: #fd7e14 !important;
}
.custom-warning-popup .swal2-close:hover {
  color: #fd7e14 !important;
}
.custom-warning-popup .swal2-timer-progress-bar {
  background: #fd7e14 !important;
}

/* --- INFO --- */
.custom-info-popup {
  background: #0d6efd30 !important;
  backdrop-filter: blur(50px) !important;
  color: #0d6efd !important;
  border-radius: 10px !important;
  border-bottom: 4px solid #0d6efd !important;
}
.custom-info-popup .swal2-title,
.custom-info-text {
  color: #0d6efd !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
.custom-info-popup .swal2-html-container {
  color: #0d6efd !important;
  font-size: 0.8rem !important;
  margin: 2px 0 0 !important;
}
.custom-info-popup .swal2-icon {
  border-color: none !important;
  color: #0d6efd !important;
  width: 1.6em !important;
  height: 1.6em !important;
}
.custom-info-popup .swal2-icon .swal2-icon-content {
  font-size: 1.4em !important;
}
.custom-info-popup .swal2-close {
  color: #0d6efd !important;
}
.custom-info-popup .swal2-close:hover {
  color: #0d6efd !important;
}
.custom-info-popup .swal2-timer-progress-bar {
  background: #0d6efd !important;
}
