/* Variables */
:root {
  --primary-color: #c80000;
  --secondary-color: #2c2e43;
  --success-color: #4bb543;
  --warning-color: #f9c74f;
  --danger-color: #ef476f;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

html, body {
  scrollbar-width: auto !important;
  -ms-overflow-style: auto !important;
  overflow: visible !important;
}

::-webkit-scrollbar {
  width: 2px;       /* largeur verticale */
  heigh: 2px;      /* hauteur horizontale */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.5);  /* couleur du “poignée” */
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);       /* couleur du fond du scroll */
}

.banner {
  /* height: 200px; */
}

.dashboard-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 100px;
}

ul.menu-sidebar {
  list-style: none;
  line-height: 50px;
  /* border: 1px solid; */
  padding: 0;
}

ul.menu-sidebar a {
  color: rgb(54, 52, 52) !important;
  font-size: 12px;
}

ul.menu-sidebar a.active {
  color: #3498db !important;
  font-weight: 600;
}

ul.menu-sidebar a:hover {
  color: #3498db !important;
}
ul.menu-sidebar a i {
  margin-right: 5px;
}
.sidebar-resposive {
  display: none;
}
.sidebar {
  display: block;
}
h1 {
  margin: 0 !important;
}
.text-informatif {
  margin-top: 10px;
  margin-bottom: 20px;
}
aside.sidebar {
  /* padding-top: 40px; */
  /* padding-bottom: 40px; */
  /* padding-left: 20px; */
  /* padding-right: 75px; */
  /* margin-right: 25px; */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  /* width: 30% !important; */
  padding: 25px;
}
.menu-sidebar {
  /* min-width: 220px; */
  /* width: 0px !important; */
  flex-shrink: 0;
  padding: 0;
}

/* temporaire */
.qr-code-data {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.printQr {
  padding: 5px;
  color: white !important;
  display: flex;
  justify-content: center;
  text-align: center;
  background-color: #1a4c6d !important;
  border: 1px solid #3498db !important;
}

.dashboard-content {
  width: 75%;
}
.modal-qr {
  border: 1px solid #3498db !important;
  padding-left: 5px;
  padding-right: 5px;
  color: white !important;
  background-color: #3498db !important;
  border-radius: 10px;
  font-size: 12px !important;
  text-align: center;
  cursor: pointer;
}
/* fin temporaire */
@media (max-width: 767px) {
  .banner {
    display: none !important;
  }
  .sidebar-resposive {
    display: block;
  }
  .dashboard-content {
    width: 100%;
  }
  .dashboard-container {
    display: grid !important;
    width: 95% !important;
  }
  .menu-sidebar {
    /* display: none; */
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: white;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    padding: 15px !important;
  }
  aside.sidebar {
    box-shadow: none;
    display: none;
  }
  aside.sidebar {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;
    /* border-radius: 25px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  }
  /* aside.sidebar {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;
  } */

  .tabs {
    justify-content: start;
    max-width: 365px;
    overflow: auto;
  }
  .tab-content {
    padding: 0px;
    max-width: 365px;
    overflow: auto;
  }

  /* modal */
  .custom-modal-content h6 {
    margin: 0;
    font-size: 10px;
    display: none;
  }
  .custom-modal-content {
    width: 90% !important;
    padding: 0px !important;
  }
  .custom-modal-content p {
    font-size: 10px !important;
  }
  .custom-modal-content .header-devis,
  .custom-modal-content .detail-devis {
    font-size: 10px !important;
  }
}
@media (max-width: 480px) {
  .tab {
    font-size: 12px;
  }
}

.profile-section {
  background: #fff;
  border-radius: 12px;
  /* padding: 13px 20px; */
  /* margin: -5px 0px 15px; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

.profile-avatar {
  text-align: center;
  margin-bottom: 20px;
}

.avatar-circle {
  width: 70px;
  height: 70px;
  background: #2c2e43;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: white;
  font-size: 28px;
  /* box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3); */
}

.profile-avatar h3 {
  margin: 10px 0 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.logement-selector {
  margin: 10px 0;
}

.select-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.select-wrapper::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  font-size: 14px;
  z-index: 1;
}

.logement-selector select {
  margin: auto;
  width: 85%;
  padding: 7px 43px 7px 7px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  font-size: 14px;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.2s;
  position: relative;
  z-index: 2;
  background-color: transparent;
}

.logement-selector select:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
  outline: none;
}

.logement-adresse {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #666;
  background: #f8f9fa;
  padding: 6px;
  border-radius: 8px;
  margin-top: 7px;
  line-height: 0;
}

.logement-adresse i {
  margin-right: 10px;
  color: #c80000;
}

.profile-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.logement-selector .logement-info {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* a supprimer action btn */
.action-btn-logement {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 8px;
  color: #555;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  flex: 1;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 12px;
}

.action-btn-logement i {
  color: white;
  font-size: 16px;
  margin-bottom: 5px;
}

.action-btn-logement span {
  display: block;
}

.action-btn-logement:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: var(--secondary-color);
  color: white;
}

.action-btn-logement.danger {
  background: #fff5f5;
  border-color: #ffebee;
  color: #f44336;
}

.action-btn-logement.danger:hover {
  background: #f44336;
  color: white;
}

.menu-count {
  /* display: inline-block; */
  background: #3498db;
  font-weight: 800;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 5px;
  width: 20px;
  height: 20px;
  text-align: center;
}

.submenu-arrow {
  float: right;
  transition: transform 0.3s ease;
  font-size: 12px;
  margin-left: 8px;
  opacity: 0.7;
  margin-top: 15px;
}

.submenu-arrow.open {
  transform: rotate(180deg);
  /* flèche vers le haut */
}

.submenu li {
  list-style: none;
}
.submenu i {
  font-size: 12px;
}

.sidebar {
  /* width: 280px; */
  height: auto !important;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.profile-section {
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.action-btn-logement {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.action-btn-logement:hover {
  transform: translateY(-2px);
}

.action-btn-logement.green {
  background-color: #e8f5e8;
  color: #22c55e;
}

.action-btn-logement.blue {
  background-color: #e8f4ff;
  color: #3b82f6;
}

.action-btn-logement.red {
  background-color: #fef2f2;
  color: #ef4444;
}

.menu-section {
  flex: 1;
  padding: 20px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background-color: #f8f9fa;
  color: #333;
}

.menu-item.active {
  background-color: #2563eb;
  color: white;
  border-left-color: #1d4ed8;
}

.menu-item.active:hover {
  background-color: #2563eb;
}

.menu-icon {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-text {
  /* font-size: 15px; */
  font-weight: 500;
}

.menu-arrow {
  margin-left: auto;
  font-size: 12px;
}

.main-content {
  flex: 1;
  padding: 40px;
  background-color: #f8f9fa;
}

.content-placeholder {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #666;
}
