/*---------------NOTIF BNB-----------------*/

/* notifbnb.css - Styles pour le système de notifications NCoin */

/* Bouton flottant en bas à droite */
.notif-bnb-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #66eaa6, #0e6427);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 255, 88, 0.4);
  z-index: 5;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.notif-bnb-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.notif-icon {
  position: relative;
  color: white;
  font-size: 24px;
}

.notif-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 20px rgba(240, 185, 11, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(240, 185, 11, 0.8); }
  100% { box-shadow: 0 4px 20px rgba(240, 185, 11, 0.4); }
}

/* Popup de notifications */
.notif-bnb-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.notif-popup-content {
  background: #1a1a1a;
  border-radius: 15px;
  width: 90%;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  border: 1px solid #333;
  color: white;
}

.notif-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 25px;
  border-bottom: 1px solid #333;
  background: linear-gradient(135deg, #60bf8e, #0e6427);
  border-radius: 15px 15px 0 0;
}

.notif-popup-header h3 {
  margin: 0;
  color: white;
  font-size: 20px;
}

.notif-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.notif-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Section des paramètres */
.notif-settings {
  padding: 25px;
}

.notif-settings h4 {
  margin: 0 0 10px 0;
  color: #58b684;
  font-size: 16px;
  text-align: center;
  background: #00000030;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #5dbc8b36;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}


.notif-setting-item {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  margin-top: 10px;
}
.notif-status-text{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Toggle switches */
.notif-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.notif-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.notif-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 24px;
}

.notif-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .notif-slider {
  background: linear-gradient(135deg, #60bf8e, #0e6427);
}

input:checked + .notif-slider:before {
  transform: translateX(26px);
}

/* Section statistiques */
.notif-statistiques {
  padding: 0px 25px;
}
.notif-statistiques i{
  margin-left: 10px;
}

.notif-statistiques h4 {
  margin: 0 0 10px 0;
  color: #58b684;
  font-size: 16px;
  text-align: center;
  background: #00000030;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #5dbc8b36;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}


/* Section historique */
.notif-history {
  padding: 25px;
}
.notif-history i{
  margin-left: 10px;
}

.notif-history h4 {
  margin: 0 0 10px 0;
  color: #58b684;
  font-size: 16px;
  text-align: center;
  background: #00000030;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #5dbc8b36;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.notif-history-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flex-notif-para{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #151515;
  border-radius: 15px;
  flex-direction: row;
}
.grp-btn-bnbnotif{
  display: flex;
  flex-direction: column;
  gap:10px;
}
#testPushDirect{
  background: #5cbf60;
  margin-bottom: 10px;
  margin-top: 10px;
}
.notif-btn-small {
  padding: 8px 15px;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s ease;
  text-align: left;
}

.notif-btn-small:hover {
  background: #555;
}

.notif-btn-danger {
  background: #ff4757;
}

.notif-btn-danger:hover {
  background: #ff3838;
}

/* Liste de l'historique */
.flex-para-notif{
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.notif-history-item {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  border-left: 4px solid #333;
  position: relative;
  transition: all 0.3s ease;
}

.notif-history-item.unread {
  border-left-color: #157519;
  background: linear-gradient(135deg, #60bf8e1f, #0e6427de);
}

.notif-history-item:hover {
  background: #333;
}

.notif-purchase-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flex-notif-setting-item{
display: flex;
justify-content: space-around;
}
.notif-push-section {
  padding: 25px;
  background: #151515;
  border-radius: 15px;
  margin-top: 10px;
}
.notif-push-section h4{
  margin: 0 0 0px 0;
  color: gray;
  font-size: 16px;
  text-align: center;
  background: transparent;
  padding: 20px;
  border-radius: 15px;
  border: none;
}

.notif-amounts {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.notif-ncoin {
  color: #f0b90b;
  font-weight: bold;
}

.notif-bnb {
  color: #f0b90b;
  font-weight: bold;
}

.notif-usd {
  color: #5cbf60;
  font-weight: bold;
}

.notif-date {
  color: #999;
  font-size: 13px;
}

.notif-tx {
  color: #667eea;
  font-size: 12px;
  font-family: monospace;
}

.notif-new-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #5cbf60;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}
.notif-settings i {
  margin-right: 10px;
}

/* États vides et de chargement */
.notif-loading, .notif-empty, .notif-error {
  text-align: center;
  padding: 30px;
  color: #999;
}

.notif-loading:before {
  content: "⏳ ";
}

.notif-empty:before {
  content: "📝 ";
}

.notif-error:before {
  content: "❌ ";
}

/* Messages de notification */
.notif-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  z-index: 10001;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.notif-message-show {
  transform: translateX(0);
}

.notif-message-success {
  background: #5cbf60;
}

.notif-message-error {
  background: #ff4757;
}

.notif-message-info {
  background: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .notif-bnb-button {
    bottom: 140px;
    right: 18px;
    width: 50px;
    height: 50px;
    opacity: 0.9;
  }
  
  .notif-icon {
    font-size: 20px;
  }
  
  .notif-popup-content {
    width: 95%;
    margin: 10px;
    max-height: 90vh;
  }
  
  .notif-popup-header,
  .notif-settings,
  .notif-history {
    padding: 30px 25px;
  }
  
  .notif-amounts {
    flex-direction: column;
    gap: 5px;
  }
  
  .notif-history-controls {
    flex-direction: row;
    margin-top:30px;
  }
  .flex-notif-para {
  flex-direction: column;
}
  
  .notif-message {
    right: 10px;
    left: 10px;
    transform: translateY(-100px);
  }
  
  .notif-message-show {
    transform: translateY(0);
  }
}

/* Scrollbar personnalisée pour la liste */
.notif-history-list::-webkit-scrollbar {
  width: 6px;
}

.notif-history-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.notif-history-list::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 3px;
}

.notif-history-list::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

/* Animation d'apparition pour les nouveaux éléments */
.notif-history-item {
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}













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