/*
 * @author Loïc Vinet from Pantagram
 * @see https://github.com/pantagram/fleetwall
 *
 * @version 1.0.0
 * @date 2024-09-01
 * @license GPL-2.0-or-later
 *
 * @year 2024
 * Tous droits réservés.
 */


.profile .header-title .fa-solid{
  background-color: #5151e0;
  color: white;
  border-radius: 50%;
  padding: 4px;
  height: 80px;
  width: 80px;
  text-align: center;
  font-size:300%;
  line-height: 80px;
}

.profile .header-title .pull-right{
  float:right;
}

.additional-info-profile-log-type{
  font-size: 70%;
  color: #6e6e6e;
  font-weight: lighter;
}

.megasearch_result.profile{
  background-color: #5151e0;
  color: white;
  border-radius: 50%;
  padding: 4px;
  height: 30px;
  width: 30px;
  text-align: center;
  font-size:100%;
  line-height: 30px;
}

.profile-sub-title{
  color: #6e6e6e;
}
.profile-dropdown {
  position: relative;
  display: inline-block;

}

.profile-dropdown .profile-dropdown-button{
  text-align: right;
  width: 30px;
}
.profile-dropdown .profile-dropdown-button:hover{
  /*Ombre sous le texte légèrement plus foncée que le fond*/
  text-shadow: 0 0 5px #000000;
  color: #fff;
}

.profile-dropdown .profile-dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 300px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.profile-dropdown .profile-dropdown-content a {
  color: black;
  padding: 12px 16px;
  font-size: 80%;
  text-decoration: none;
  display: block;
}

.profile-dropdown .profile-dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Ajout pour gérer l'ouverture/fermeture avec jQuery */
.profile-dropdown .profile-dropdown-content.show {
  display: block;
}

.profile-accreditation-container{
  background-color: rgba(242, 207, 97, 0.56);
  border-radius: 10px;
  padding:15px;
  margin-bottom: 15px;

}

.form-accreditation-item-origin{
  font-weight: lighter !important;
  font-size: 80% !important;
  font-style: italic;
}

.form-item-block{
  display: block !important;
}

/* Actions Drupal 7 Section */
.profile h5 {
  color: #333;
  font-weight: 600;
  margin-bottom: 1em;
  font-size: 1.1em;
}

.profile .button {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 8px 8px 0;
  background: linear-gradient(135deg, #5151e0 0%, #6565e8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(81, 81, 224, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile .button:hover {
  background: linear-gradient(135deg, #4040d0 0%, #5555d8 100%);
  box-shadow: 0 4px 12px rgba(81, 81, 224, 0.4);
  transform: translateY(-2px);
  color: white;
}

.profile .button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(81, 81, 224, 0.3);
}

/* SAV Row Container */
.sav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.sav-row h6 {
  margin: 0;
  color: #555;
  font-size: 1em;
}

.sav-actions {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Action Group */
.action-group {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 8px 12px;
  background: rgba(81, 81, 224, 0.05);
  border: 1px solid rgba(81, 81, 224, 0.2);
  border-radius: 8px;
  align-self: flex-end;
}

.action-group-label {
  font-size: 0.65em;
  font-weight: 500;
  color: #5151e0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  opacity: 0.8;
  line-height: 1;
}

.action-group-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.action-group .button--compact {
  margin: 0;
}

/* Compact Buttons */
.button--compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5151e0 0%, #6565e8 100%);
  border: none;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(81, 81, 224, 0.25);
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
}

.button--compact:hover {
  background: linear-gradient(135deg, #4040d0 0%, #5555d8 100%);
  box-shadow: 0 3px 10px rgba(81, 81, 224, 0.35);
  transform: translateY(-2px);
  color: white;
}

.button--compact:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(81, 81, 224, 0.25);
}

.button--compact i {
  font-size: 1.1em;
}

/* Bookmark Count Summary */
.bookmark-count-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  padding: 5px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5151e0 0%, #6565e8 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 6px rgba(81, 81, 224, 0.25);
  transition: all 0.3s ease;
  height: auto;
  align-self: stretch;
}

.bookmark-count-summary:hover {
  background: linear-gradient(135deg, #4040d0 0%, #5555d8 100%);
  box-shadow: 0 3px 10px rgba(81, 81, 224, 0.35);
  transform: translateY(-2px);
}

.bookmark-count-summary .label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: white;
}

.bookmark-count-summary .icon {
  font-size: 1.1em;
  color: white;
}

.bookmark-count-summary strong {
  color: white;
  font-weight: 700;
  font-size: 1.05em;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .profile h5 {
    color: #e0e0e0;
  }

  .profile .button {
    background: linear-gradient(135deg, #6565e8 0%, #7575f0 100%);
    box-shadow: 0 2px 8px rgba(101, 101, 232, 0.4);
  }

  .profile .button:hover {
    background: linear-gradient(135deg, #5555d8 0%, #6565e8 100%);
    box-shadow: 0 4px 12px rgba(101, 101, 232, 0.5);
  }

  .sav-row {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: #3a3a3a;
  }

  .sav-row h6 {
    color: #c0c0c0;
  }

  .button--compact {
    background: linear-gradient(135deg, #6565e8 0%, #7575f0 100%);
    box-shadow: 0 2px 6px rgba(101, 101, 232, 0.3);
  }

  .button--compact:hover {
    background: linear-gradient(135deg, #5555d8 0%, #6565e8 100%);
    box-shadow: 0 3px 10px rgba(101, 101, 232, 0.4);
  }

  .bookmark-count-summary {
    background: linear-gradient(135deg, #6565e8 0%, #7575f0 100%);
  }

  .bookmark-count-summary:hover {
    background: linear-gradient(135deg, #5555d8 0%, #6565e8 100%);
  }

  .action-group {
    background: rgba(101, 101, 232, 0.15);
    border-color: rgba(101, 101, 232, 0.3);
  }

  .action-group-label {
    color: #7575f0;
  }
}

.password-toggle {
  font-size: 1.2em;
  color: #555;
}

.profile-attribute-container {
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start;
}

.region-sticky .profile-attribute-container {
  display: flex !important;
}

.profile-attribute-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
}

.profile-attribute-item img {
  display: block;
  margin-bottom: 8px;
  max-width: 80px;
  height: auto;
}

.profile-attribute-item .view_profile_label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Styles des badges - icônes */
.view_profile_attribus_large_picto_abonne {
  font-size: 48px !important;
  color: #ffc107 !important;
  display: inline-block;
}

/* Panel Styling */
.panel {
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.panel:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.panel__title {
  background: linear-gradient(135deg, #5151e0 0%, #6565e8 100%);
  color: white;
  padding: 15px 20px;
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.panel__content {
  padding: 20px;
}

/* Profile Items */
.profile-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 15px;
}

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

.form-item__label {
  font-weight: 600;
  color: #333;
  min-width: 180px;
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

.form-item__value {
  flex: 1;
  color: #555;
  font-size: 0.9em;
  line-height: 1.6;
}

.empty-value {
  color: #999;
  font-style: italic;
  opacity: 0.6;
}

/* Dropdown Menu */
.picto-right {
  margin-left: auto;
  position: relative;
}

.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown-button {
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.profile-dropdown-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #ffffff;
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1000;
  margin-top: 5px;
  overflow: hidden;
}

.profile-dropdown-content.show {
  display: block;
}

.profile-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.profile-dropdown-content a:hover {
  background-color: #f0f0f0;
}

.profile-dropdown-content a i {
  width: 16px;
  text-align: center;
  color: #5151e0;
}

/* Icons in panels */
.picto-coll-sub-status {
  font-size: 1.2em;
  margin-left: 10px;
}

.picto-red {
  color: #ff4444;
}

/* Special Panels - Keep custom colors */
.organization-profile-panel .panel__title {
  background: linear-gradient(135deg, #7b68ee 0%, #9370db 100%);
}

.linked-giftcard-panel .panel__title {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
}

.giftcard-buyer-panel .panel__title {
  background: linear-gradient(135deg, #4ecdc4 0%, #6ee7df 100%);
}

.giftcard-recipient-panel .panel__title {
  background: linear-gradient(135deg, #95e1d3 0%, #aaf0e7 100%);
}

.organization-coll-sub-panel .panel__title {
  background: linear-gradient(135deg, #f38181 0%, #f5a1a1 100%);
}

/* Form Inputs Styling */
.form-profile-content input[type="text"],
.form-profile-content input[type="email"],
.form-profile-content input[type="tel"],
.form-profile-content input[type="password"],
.form-profile-content input[type="number"],
.form-profile-content input[type="date"],
.form-profile-content input[type="datetime-local"],
.form-profile-content select,
.form-profile-content textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
}

.form-profile-content input[type="text"]:focus,
.form-profile-content input[type="email"]:focus,
.form-profile-content input[type="tel"]:focus,
.form-profile-content input[type="password"]:focus,
.form-profile-content input[type="number"]:focus,
.form-profile-content input[type="date"]:focus,
.form-profile-content input[type="datetime-local"]:focus,
.form-profile-content select:focus,
.form-profile-content textarea:focus {
  border-color: #5151e0;
  box-shadow: 0 0 0 3px rgba(81, 81, 224, 0.1);
  outline: none;
}

.form-profile-content .form-item {
  margin-bottom: 15px;
}

.form-profile-content .form-item label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 0.9em;
}

.form-profile-content .form-required {
  color: #ff4444;
  margin-left: 3px;
}

.form-profile-content .description {
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

/* Connection data paragraphs */
.connection-datas-paragraph {
  display: block !important;
  margin-bottom: 8px;
  line-height: 1.6;
  width: 100%;
  clear: both;
}

.connection-datas-paragraph:last-child {
  margin-bottom: 0;
}

/* Force le conteneur parent à afficher les connexions en bloc */
.content_latest_ip {
  display: block !important;
  width: 100%;
}

.content_latest_ip .connection-datas-paragraph {
  display: block !important;
  white-space: normal !important;
}

/* Dark mode support for panels */
@media (prefers-color-scheme: dark) {
  .panel {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: #3a3a3a;
  }

  .panel__title {
    background: linear-gradient(135deg, #6565e8 0%, #7575f0 100%);
  }

  /* Keep custom colors for special panels in dark mode */
  .organization-profile-panel .panel__title {
    background: linear-gradient(135deg, #8a7bef 0%, #a088e0 100%);
  }

  .linked-giftcard-panel .panel__title {
    background: linear-gradient(135deg, #ff7a7a 0%, #ff9595 100%);
  }

  .giftcard-buyer-panel .panel__title {
    background: linear-gradient(135deg, #5dd9cf 0%, #7df0e8 100%);
  }

  .giftcard-recipient-panel .panel__title {
    background: linear-gradient(135deg, #a3f0e0 0%, #b9f5ec 100%);
  }

  .organization-coll-sub-panel .panel__title {
    background: linear-gradient(135deg, #ff9090 0%, #ffadad 100%);
  }

  .profile-item {
    border-bottom-color: #3a3a3a;
  }

  .form-item__label {
    color: #e0e0e0;
  }

  .form-item__value {
    color: #c0c0c0;
  }

  .empty-value {
    color: #777;
  }

  .profile-dropdown-content {
    background-color: #2a2a2a;
  }

  .profile-dropdown-content a {
    color: #e0e0e0;
  }

  .profile-dropdown-content a:hover {
    background-color: #3a3a3a;
  }

  /* Form inputs in dark mode */
  .form-profile-content input[type="text"],
  .form-profile-content input[type="email"],
  .form-profile-content input[type="tel"],
  .form-profile-content input[type="password"],
  .form-profile-content input[type="number"],
  .form-profile-content input[type="date"],
  .form-profile-content input[type="datetime-local"],
  .form-profile-content select,
  .form-profile-content textarea {
    background-color: #2a2a2a;
    border-color: #4a4a4a;
    color: #e0e0e0;
  }

  .form-profile-content input[type="text"]:focus,
  .form-profile-content input[type="email"]:focus,
  .form-profile-content input[type="tel"]:focus,
  .form-profile-content input[type="password"]:focus,
  .form-profile-content input[type="number"]:focus,
  .form-profile-content input[type="date"]:focus,
  .form-profile-content input[type="datetime-local"]:focus,
  .form-profile-content select:focus,
  .form-profile-content textarea:focus {
    border-color: #6565e8;
    box-shadow: 0 0 0 3px rgba(101, 101, 232, 0.2);
  }

  .form-profile-content .form-item label {
    color: #e0e0e0;
  }

  .form-profile-content .description {
    color: #999;
  }
}

