/*******notification********/
.notifications {
  /* max-width: 400px; */
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.notifications-header {
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  border-bottom: 1px solid #eee;
  color: #333;
}

.notification-item {
  display: flex;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.25s ease;
  align-items: center;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background-color: #f0f4ff;
}

.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 1rem;
  user-select: none;
}

.notification-content {
  flex-grow: 1;
}

.notification-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.notification-text {
  font-size: 0.875rem;
  color: #6b7280;
}

.notification-time {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: 1rem;
  white-space: nowrap;
}

.badge-new {
  background-color: #ef4444;
  /* rouge */
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 8px;
  user-select: none;
}

/******demande de devis ****/
.demande-devis-modal, .create-devis-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.demande-devis-modal-content, .create-devis-modal-content {
    overflow: auto;
    height: 100vh;
    background-color: #fff;
    margin: auto;
    padding: 25px;
    border-radius: 8px;
    width: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.demande-devis-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.demande-devis-close:hover {
  color: #000;
}

/*****modal devis*****/
.modal-devis {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-devis-content {
  background: white;
  padding: 20px;
  margin: 10% auto;
  width: 600px;
  border-radius: 5px;
  position: relative;
}

.modal-devis-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}

/*********modal condtion********/
/* Spécifique aux modales des conditions */
.condition-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.condition-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
}

.condition-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.condition-close:hover,
.condition-close:focus {
  color: #000;
}

.condition-hidden {
  display: none;
}

/***********************************/

.text-informatif {
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tab {
  padding: 10px 20px;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  font-weight: 500;
  transition: background 0.3s ease;
}

.tab:hover {
  background: #ddd;
}

.tab.active {
  background: #3498db;
  color: #fff;
}

.tab-content {
  display: none;
  background: #ffffff;
}

.tab-content.active {
  display: block;
}

/*profile*/
.profile-form-container {
  width: 100%;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-form-container .portfolio-item {
  display: flex;
}

.profile-form-container .img-portfolio {
  width: 150px !important;
  margin-right: 10px;
}

.profile-form {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.profile-form div {
  width: 100%;
}

.form-section {
  border: none;
  margin-bottom: 30px;
}

.form-title {
  font-size: 1.4rem !important;
  margin-bottom: 20px;
  color: #3498db !important;
  border-left: 4px solid #3498db;
  padding-left: 10px;
}

.form-group {
  width: 100%;
}

.form-label {
  font-weight: bold;
  color: #444;
  margin-bottom: 8px;
  display: block;
}

.form-input,
.form-textarea,
select.form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #3498db;
  outline: none;
}

.form-actions {
  text-align: right;
  margin-top: 20px;
}

.btn-save {
  background-color: #3498db;
  color: white;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-save:hover {
  background-color: #2980b9;
}

/*****************************separator******************************************/

/* devis */
.styled-table {
  margin-top: 5px;
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.styled-table thead {
  background-color: #3498db;
  color: white;
  text-align: left;
}

.styled-table th,
.styled-table td {
  padding: 14px 18px;
}

.styled-table tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background 0.2s ease;
}

.styled-table tbody tr:hover {
  background-color: #f2f8fc;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
}

.badge.active {
  background-color: #3498db;
  color: white;
}

.badge.inactive {
  background-color: #ccc;
  color: #333;
}

.action-btn-table {
  padding: 6px 12px !important;
  margin-right: 5px;
  border: none;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.action-btn.edit {
  background-color: #3498db !important;
  color: white !important;
}

.action-btn.edit:hover {
  background-color: #2980b9;
}

.action-btn.delete {
  background-color: #e74c3c;
  color: white;
}

.action-btn.delete:hover {
  background-color: #c0392b;
}

/**************************************************************************/
/*creation entreprise dasboard*/
.entreprise {
  max-width: 700px;
  margin-top: 0 !important;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  font-family: Arial, sans-serif;
}

.entreprise .separator {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

.entreprise .port-folio .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.entreprise .port-folio div .btn-add-port {
  border: 1px solid gray;
  margin: 0;
  height: fit-content;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 5px;
  cursor: pointer;
}

.entreprise .port-folio div .btn-add-port.remove {
  background-color: red;
  color: white;
  border: none;
  padding: 5px;
}

.entreprise h1.titre-formulaire {
  font-size: 25px;
  text-align: center;
}

.entreprise p.sous-titre-formulaire {
  font-size: 13px;
  text-align: center;
}

.entreprise .stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 10px;
}

.entreprise .stepper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 4px;
  background-color: #e0e0e0;
  z-index: 0;
  transform: translateY(-50%);
}

.entreprise .step {
  z-index: 1;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: bold;
  color: white;
  transition: background-color 0.3s;
  position: relative;
}

.entreprise .step.active {
  background-color: #3498db;
}

.entreprise .step.completed {
  background-color: #3498db;
}

.entreprise h2 {
  font-size: 13px;
  margin-bottom: 1rem;
  color: #333;
}

.entreprise .slide {
  animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.entreprise .input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border-color 0.3s;
}

.entreprise .input:focus {
  border-color: #3498db;
  background: #fff;
  outline: none;
}

.entreprise .nav-buttons {
  text-align: right;
  margin-top: 1.5rem;
}

.entreprise button {
  padding: 0.6rem 1.2rem;
  margin-left: 0.5rem;
  background-color: #3498db;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.entreprise button:hover {
  background-color: #005f8d;
  color: white !important;
}

.entreprise button:focus {
  background-color: #005f8d !important;
  color: white !important;
}

.entreprise button[disabled] {
  background-color: #cccccc;
  cursor: not-allowed;
}

.custom-multiselect {
  position: relative;
  margin-bottom: 1rem;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 6px;
  gap: 5px;
}

.selected-tags input {
  border: none;
  flex: 1;
  min-width: 150px;
  padding: 5px;
  outline: none;
  background-color: transparent;
  box-shadow: none;
}

.tag {
  background-color: #007bff;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tag .remove {
  cursor: pointer;
  font-weight: bold;
}

.suggestions {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10;
  border-radius: 4px;
  margin-top: 2px;
}

.suggestions li {
  padding: 8px;
  cursor: pointer;
}

.suggestions li:hover {
  background-color: #f1f1f1;
}

/* dashboard******************************************************* */

.directory-card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.directory-card {
  padding: 11px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h2.directory-card__title {
  font-size: 17px;
  margin: 0;
}

.directory-card__info {
  width: 50%;
}

.directory-card__rating {
  font-size: 13px;
}

.directory-card__stars {
  font-size: 9px;
}

img.directory-card__image {
  width: 63px;
}

.directory-card__category {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.directory-card__footer {
  display: flex;
  justify-content: space-between;
}

.directory-card__badge {
  position: relative;
}

i.fas.fa-certificate.certificate-icon {
  color: #3498db;
  font-size: 25px;
}

.directory-card__contact-item a {
  font-size: 13px !important;
}

.directory-card__contact {
  font-size: 13px;
}

i.fas.fa-check.check-icon {
  position: absolute;
  top: 7px;
  left: 6px;
  color: white;
  font-size: 13px;
}

a.directory-card__tag {
  border: 1px solid;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 25px;
}

.bloc-dashboard {
  display: flex;
  justify-content: space-between;
}

.bloc-dashboard .left-dashboard {
  width: 75%;
}

.bloc-dashboard .right-dashboard {
  margin-left: 20px;
  width: 25%;
}

.dashboard {
  margin-bottom: 25px;
}

.dashboard .title,
.right-dashboard .title {
  font-size: 25px;
  color: #3498db;
}

.dashboard .title i {
  margin-right: 10px;
}

.dashboard.dashboard-devis .devis-parent {
  display: flex;
  justify-content: start;
}

.dashboard.dashboard-devis .devis-enfant {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  width: 200px;
  padding: 10px;
  margin-right: 10px;
  border-radius: 10px;
}

.bloc-view {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 11px;
  border-radius: 12px;
}

.right-dashboard .apercu {
  margin-bottom: 70px;
}

.bloc-view p.title-bloc {
  font-size: 20px;
}

.view-parent .count {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dashboard.dashboard-devis .devis-enfant p {
  font-size: 20px !important;
}

.dashboard.dashboard-devis .devis-enfant .count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
}

.dashboard.dashboard-devis .devis-enfant .count .devis-all {
  font-size: 28px;
}

.dashboard.dashboard-devis .devis-enfant .count .devis-receved {
  font-size: 28px;
}

.dashboard.dashboard-devis .devis-enfant .count .devis-emit {
  font-size: 28px;
}

.dashboard.dashboard-devis .devis-enfant .count i {
  font-size: 20px;
}

.dashboard.dashboard-devis .devis-enfant .count i.fas.fa-chevron-down {
  color: red;
}

.dashboard.dashboard-devis .devis-enfant .count i.fas.fa-chevron-up {
  color: green;
}

/* devis */
.create-devis {
  background: white;
  border-radius: 10px;
  margin: auto;
}

.create-devis h2 {
  margin-bottom: 20px;
}

.create-devis .form-group {
  margin-bottom: 20px;
}

.create-devis label {
  display: block;
  margin-bottom: 5px;
}

.create-devis input,
.create-devis select,
.create-devis textarea {
  padding: 8px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.create-devis .item-header {
  display: flex;
  gap: 10px;
  font-weight: bold;
  margin-bottom: 5px;
}

.create-devis .item-row {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.create-devis .item-row textarea {
  flex: 2;
  height: 40px;
}

.create-devis .item-row input[type="number"] {
  width: 100px;
}

.create-devis .item-row input[disabled] {
  background: #f0f0f0;
}

.create-devis .item-row .btn-add-item {
  background: #3498db;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.create-devis .conditions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.create-devis .conditions input {
  flex: 1;
}

.create-devis .btn-add-condition {
  background: #3498db;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .create-devis {
    padding: 0;
  }
  .form-group.devis-items {
    overflow: auto;
  }
  .create-devis .item-row {
    display: block;
  }
  .modal-devis-content {
    padding: 20px;
    margin: auto;
    font-size: 10px;
    width: 81%;
  }
  .bloc-devis{
    height: 400px;
    overflow: auto;
    box-shadow:none!important;
    padding: 0!important;
  }
}