/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a{
    text-decoration: none;
}
 /* Carousel header */
 header {
    width: 100%;
    
    position: relative;
    height: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #111;
  }

  .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
  }

  .carousel-item.active {
    display: block;
  }

  .carousel-item video,
  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0; /* plus d’arrondi */
    margin: 0;
    padding: 0;
    display: block;
  }

  .fade-in {
    animation: fadeIn 1.2s ease-in-out both;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
  }

  #loader.show {
    visibility: visible;
  }

  .spinner {
    border: 4px solid #333;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.9s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

/* Watermark Lombard Odier */
.watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;       /* toute la largeur de la fenêtre */
  height: 100vh;      /* toute la hauteur de la fenêtre */
  opacity: 0.2;       /* ajustable : augmente la valeur pour plus de visibilité */
  pointer-events: none;
  user-select: none;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* couvre toute la zone, coupe si besoin */
  filter: brightness(0.7); /* pour assombrir légèrement l’image, tu peux ajuster */
}



/* Container principal */
.dashboard-header {
    background-color: #d8d5d554;
    color: #fff;
    padding: 10px 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permet aux éléments de passer en ligne suivante */
    gap: 10px;
}

.balance-box h2 {
    font-size: 1.2rem;
    margin: 0;
}

.balance-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.controls-section {
    display: flex;
    gap: 8px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.control-btn:hover {
    background-color: #444;
}

/* 📱 Adaptation mobile */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column; /* Les éléments passent en colonne */
        align-items: flex-start;
    }

    .controls-section {
        width: 100%;
        justify-content: space-between;
    }

    .control-btn {
        flex: 1;
        justify-content: center;
    }
}


.control-btn:active {
    transform: translateY(0);
}

.refresh-btn {
    padding: 0.75rem;
    min-width: 48px;
    justify-content: center;
}

.refresh-btn i {
    font-size: 1.1rem;
}

.settings-btn {
    min-width: 120px;
    justify-content: center;
}

.logout-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    border-color: #ff4757;
    min-width: 140px;
    justify-content: center;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff3742 0%, #ff2f3a 100%);
    border-color: #ff3742;
}

/* Section décorative */
.decorative-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.decorative-symbol {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.decorative-symbol i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.decorative-numbers {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Section transactions */
.transactions-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: 0.05rem;
}

.transactions-table-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.transactions-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05rem;
}

.transactions-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.transactions-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

/* Colonnes spécifiques */
.transactions-table th:nth-child(1),
.transactions-table td:nth-child(1) {
    width: 80px;
    text-align: center;
}

.transactions-table th:nth-child(2),
.transactions-table td:nth-child(2) {
    width: 25%;
}

.transactions-table th:nth-child(3),
.transactions-table td:nth-child(3) {
    width: 120px;
    text-align: right;
    font-weight: 600;
}

.transactions-table th:nth-child(4),
.transactions-table td:nth-child(4) {
    width: 15%;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.transactions-table th:nth-child(5),
.transactions-table td:nth-child(5) {
    width: 15%;
}

.transactions-table th:nth-child(6),
.transactions-table td:nth-child(6) {
    width: 120px;
    text-align: center;
}

/* Montants */
.amount {
    font-weight: 600;
}

.amount.negative {
    color: #ff6b6b;
}

.amount.positive {
    color: #51cf66;
}

/* Statuts */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status.executed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status i {
    font-size: 0.7rem;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .header-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .controls-section {
        order: 2;
    }
    
    .decorative-section {
        order: 3;
    }
    
    .transactions-table {
        font-size: 0.8rem;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header,
    .transactions-section {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 1.5rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .controls-section {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .transactions-table-container {
        overflow-x: auto;
    }
    
    .transactions-table {
        min-width: 800px;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== MOBILE SETTINGS PAGE ===== */

/* Mobile Body */
.mobile-body {
    background: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    position: relative;
    max-width: 375px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Mobile Header */
.mobile-header {
    padding: 20px 6px 5px;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    background: none;
    border: none;
    color: #007AFF;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.back-btn:hover {
    background: rgba(0, 122, 255, 0.1);
}

.back-btn:active {
    transform: scale(0.9);
}

.header-spacer {
    width: 40px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Main Content */
.mobile-main {
    flex: 1;
    padding: 8px 16px 16px;
    background: #000000;
    overflow-y: auto;
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Settings Options */
.settings-option {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
}

.settings-option:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.settings-option:active {
    transform: scale(0.98);
}

.option-icon {
    width: 40px;
    height: 40px;
    background: #007AFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.option-icon i {
    color: #ffffff;
    font-size: 18px;
}

.option-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1e;
    line-height: 1.4;
}

.settings-option i.fa-chevron-right {
    color: #8e8e93;
    font-size: 14px;
    margin-left: 8px;
}




/* Mobile Responsive */
@media (max-width: 375px) {
    .mobile-body {
        max-width: 100%;
        margin: 0;
    }
    
    .mobile-main {
        padding: 12px;
    }
    
    .settings-option {
        padding: 14px;
    }
    
    .option-text {
        font-size: 15px;
    }
}

/* Mobile Animations */
.settings-option.fade-in {
    animation: slideInUp 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Scrollbar */
.mobile-main::-webkit-scrollbar {
    width: 4px;
}

.mobile-main::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.mobile-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
