body {
    margin: 0;
    padding: 0;
    font-family: 'Special Elite', cursive;
    background-color: #f5f5dc;
    position: relative;
    min-height: 100vh;
    cursor: url('../../ressources/acehead.png') 16 16, auto;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(5px);
}

.header {
    background: linear-gradient(to right, #d2691e, #f4a460);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    border-bottom: 4px solid #5c4033;
    text-shadow: 2px 2px 4px #000;
    position: relative;
    z-index: 1;
} 

.group-card {
    background: #f5f5dc;
    border: 2px solid #5c4033;
    border-radius: 10px;
    padding: 15px;
    margin-top: 8px;
    transition: transform 0.2s;
    min-height: 80px;
    width: 40ch;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-card .group-info {
    flex-grow: 1;
}

.group-card .group-character {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
}

.group-card:hover {
    transform: scale(1.05);
    cursor: url('../../ressources/zorocursor.png') 16 16, pointer;
}

.group-card h5 {
    margin: 0 0 10px;
    color: #5c4033;
    font-size: 20px;
}

.group-card p {
    margin: 0;
    color: #5c4033;
    font-size: 14px;
}

.group-list .col-12.col-md-6.col-lg-4 {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100px; 
}

.btn-add-group {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 60px;
    padding: 0;
    margin: 0;
    
    /* Style visuel */
    background: linear-gradient(145deg, #d2691e 0%, #f4a460 50%);
    border: 2px solid #8B4513;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.4);
    
    /* Texte */
    color: #000;

    font-size: 20px;
    text-align: center;
    line-height: 1;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
    
    /* Interactions */
    cursor: url('../ressources/custom_cursor_pointer.png'), pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .btn-add-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.6);
    background: linear-gradient(145deg, #f9d423 0%, #d4af37 50%, #f9d423 100%);
  }
  
  .btn-add-group:active {
    transform: translateY(1px);
  }
  
  /* Effet de brillance dorée */
  .btn-add-group::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(
      to bottom right,
      rgba(255,255,255,0) 45%,
      rgba(255,255,255,0.8) 50%,
      rgba(255,255,255,0) 55%
    );
    transform: rotateZ(60deg) translate(-5em, 7.5em);
  }
  
  .btn-add-group:hover::after {
    animation: shine 1.5s forwards;
  }
  
  @keyframes shine {
    100% {
      transform: rotateZ(60deg) translate(1em, -1em);
    }
  }
.btn-pirate-gold {
  /* Structure */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-width: 140px;
  
  /* Style visuel */
  background: linear-gradient(145deg, #d4af37 0%, #f9d423 50%, #d4af37 100%);
  border: 2px solid #8B4513;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
  
  /* Texte */
  color: #000;
  font-family: 'Pirata One', cursive;
  font-size: 20px;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
  letter-spacing: 1px;
  
  /* Interactions */
  cursor: url('../ressources/custom_cursor_pointer.png'), pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-pirate-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
  background: linear-gradient(145deg, #f9d423 0%, #d4af37 50%, #f9d423 100%);
}

.btn-pirate-gold:active {
  transform: translateY(1px);
}

.btn-pirate-gold::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0) 45%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0) 55%
  );
  transform: rotateZ(60deg) translate(-5em, 7.5em);
}

.btn-pirate-gold:hover::after {
  animation: shine 1.5s forwards;
}

@keyframes shine {
  100% {
    transform: rotateZ(60deg) translate(1em, -1em);
  }
}


.btn-add-group:hover {
    background: linear-gradient(to bottom, #006400, #228b22);
}
.btn-add-expense {
    background: linear-gradient(to bottom, #228b22, #006400);
    border: 2px solid #d2691e;
    color: #fff;
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    font-size: 20px; 
    font-family: 'Special Elite', cursive; 
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1; 
    margin: 0; 
    padding: 0; 
}

.btn-add-expense:hover {
    background: linear-gradient(to bottom, #006400, #228b22);
}

.form-check {
    margin-bottom: 5px;
}
.form-check-input {
    margin-right: 10px;
}
.form-check-label {
    color: #5c4033;
    font-size: 16px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0s linear 0.5s; 
}

.modal.active {
    opacity: 1;
    visibility: visible; 
    transition: opacity 0.3s ease; 
}

.modal-content {
    background: #f5f5dc;
    border: 2px solid #5c4033;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 80vh;
    transform: translateY(-100%); 
    transition: transform 0.5s ease; 
}

.modal.active .modal-content {
    transform: translateY(0); 
}

.modal:not(.active) .modal-content {
    transform: translateY(-100%); 
}

.modal-content-wide {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #5c4033;
    padding-bottom: 10px;
    flex-shrink: 0;
    position: relative;
}

.modal-header .character-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-title {
    margin: 0;
    color: #5c4033;
    font-size: 20px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #5c4033;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: scroll;
    flex-grow: 1;
    min-height: 0;
}

.confirm-message {
    color: #5c4033;
    font-size: 16px;
    text-align: center;
    margin: 0;
    padding: 10px;
}

.modal-message {
    background: linear-gradient(to right, #f4a460, #d2691e);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #5c4033;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-message.show {
    opacity: 1;
}

#confirmDeleteModal .modal-content {
    max-width: 350px;
    height: auto;
    min-height: 200px;
}

/* Réduction de la taille de la modale de confirmation pour supprimer un membre */
#confirmDeleteMemberModal .modal-content {
    max-width: 350px;
    height: auto;
    min-height: 200px;
}

/* Styles spécifiques pour la modale de suppression d'équipage */
#confirmFriendModal .modal-content {
    max-width: 500px;
    height: auto;
    min-height: 200px;
}

#confirmDeleteFriendModal .modal-content{
    max-width: 500px;
    height: auto;
    min-height: 200px;
}

.btn-success {
    background: linear-gradient(to bottom, #228b22, #006400);
    border: 2px solid #d2691e;
    color: #fff;
    font-family: 'Special Elite', cursive;
}

.btn-success:hover {
    background: linear-gradient(to bottom, #006400, #228b22);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(to bottom, #5c4033, #3c2f2f);
    border: 2px solid #d2691e;
    color: #fff;
    font-family: 'Special Elite', cursive;
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #3c2f2f, #5c4033);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(to bottom, #ff4040, #cc0000);
    border: 2px solid #d2691e;
    color: #fff;
    font-family: 'Special Elite', cursive;
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #cc0000, #ff4040);
    color: #fff;
}

.form-control {
    border: 2px solid #778899;
    border-radius: 10px;
    font-family: 'Special Elite', cursive;
    font-size: 16px;
}

.form-control:focus {
    border-color: #d2691e;
    box-shadow: none;
}

.member-item {
    padding: 10px 0;
    border-bottom: 1px solid #5c4033;
}

.member-name {
    color: #5c4033;
    font-size: 16px;
}

#membersList {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.tab-button {
    background: #f5f5dc;
    border: 2px solid #5c4033;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Special Elite', cursive;
    font-size: 18px;
    color: #5c4033;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tab-button.active {
    background: linear-gradient(to bottom, #d2691e, #f4a460);
    color: #fff;
    border-color: #d2691e;
}

.tab-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.expense-item {
    padding: 10px 0;
    border-bottom: 1px solid #5c4033;
}

.expense-content p {
    margin: 5px 0;
    color: #5c4033;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.character-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #778899;
    transition: border-color 0.3s ease;
    object-fit: cover;
}

.character-option:hover {
    border-color: #d2691e;
}

.character-option.selected {
    border-color: #228b22;
    box-shadow: 0 0 8px rgba(34, 139, 34, 0.5);
}
/* Conteneur du formulaire des amis */
.friends-form-container {
    background: #f5f5dc;
    border: 2px solid #5c4033;
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Titre principal */
.friends-title {
    margin-top: 5px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px #000;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

/* Sous-titre */
.friends-subtitle {
    color: #5c4033;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Label du formulaire */
.friends-label {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

/* Input avec icône */
.friends-input {
    border: 2px solid #778899;
    border-radius: 10px;
    font-family: 'Special Elite', cursive;
    font-size: 16px;
    padding: 10px;
}

.friends-input:focus {
    border-color: #d2691e;
    box-shadow: none;
}

.friends-icon {
    width: 20px;
    height: 20px;
}

/* Liste des amis */
.friends-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    border: 2px solid #5c4033;
    border-radius: 10px;
    background: #f5f5dc;
}

.friends-list .member-item {
    padding: 10px;
    border-bottom: 1px solid #5c4033;
}

.friends-list .member-item:last-child {
    border-bottom: none;
}

.friends-list .member-name {
    color: #5c4033;
    font-size: 16px;
}

/* Bouton de suppression dans la liste des amis */
.remove-friend-btn {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.remove-friend-btn:hover {
    background-color: #c0392b;
}


/* Style pour le bouton du capitaine */
.character-btn {
    background: none;
    border: none;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s;
    display: inline-block;
    position: static; 
    transform: none;
}

/* member.js*/
.character-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold-color);
    object-fit: cover;
    display: block;
}

.change-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid var(--gold-color);
}

.character-btn:hover .character-icon {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.friend-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f4f4;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.select-friend-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.select-friend-btn:hover {
    background-color: #0056b3;
}
