        /* Styles CSS */
        body {
            font-family: Arial, sans-serif;
            margin: 20px !important;
            background-color: rgb(255, 187, 0) !important;
            color: black !important;
        }

        

        h1, h2 {
           font-size: 13px;
           padding: 10px;
           padding-bottom: 15px;
        }

        form {
            margin-bottom: 0px;
           
            padding: 0px;
            border: 0px solid #ddd;
        }

        form label {
            display: inline-block;
            width: 150px;
            margin-bottom: 10px;
            font-weight: bold;
        }

        form input[type="text"],
        form input[type="number"],
        form select {
            width: 200px;
            padding: 5px;
            margin-bottom: 10px;
        }

        

        form input[type="submit"],
        form button {
            padding: 5px 10px;
            background-color: rgb(255, 187, 0) ;
            color: black;
            text-align: center;
            border: none;
            border-radius: 5%;
            cursor: pointer;
            margin-right: 10px;
            width: 100%;
        }

        form input[type="submit"]:hover,
        form button:hover {
            background-color: #eee;
        }

        table {
            border-collapse: collapse;
            width: 100%;
            margin-bottom: 20px;
            text-align: center;
        }

        th {
            padding-inline: auto;
            text-align: center;
            padding: 2px;
            padding-bottom: 15px;
            border-bottom: 4px solid black;
        }

        td {
            border-bottom: 1px solid #fff;
            padding-inline: auto;
            padding: 1px;
           
            
        }

        .cible-atteinte {
            font-weight: bold;
            color: #198754; /* Vert Bootstrap */
            text-align: center;
          }
          
        /* 🏆 Style pour TP5 - violet profond, visible sur fond jaune */
        .cible-atteinte-tp5 {
            font-weight: bold;
            color: #4A0E8F;
            text-align: center;
            text-shadow: 0 0 6px rgba(74, 14, 143, 0.4);
            background: rgba(74, 14, 143, 0.12);
            padding: 4px 8px;
            border-radius: 4px;
        }

        /* 💎 Style pour TP5 ULTRA - magenta vif + animation */
        .cible-atteinte-tp5-ultra {
            font-weight: bold;
            color: #fff;
            text-align: center;
            background: linear-gradient(135deg, #C2185B, #7B1FA2);
            padding: 4px 8px;
            border-radius: 4px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            animation: ultraGlow 2s ease-in-out infinite;
        }

        /* Animation pour TP5 ULTRA */
        @keyframes ultraGlow {
            0%, 100% {
                box-shadow: 0 0 6px rgba(194, 24, 91, 0.4);
            }
            50% {
                box-shadow: 0 0 18px rgba(194, 24, 91, 0.7);
            }
        }
          


        

        /* ✅ Cellule TP atteinte */
        .tp-hit {
            background-color: #578659 !important;
         
        }
        
        /* ✅ Apparence des cellules TP/SL */
        .tp-input,
        .sl-input {
            background-repeat: no-repeat;
            background-size: 100% 100%;
            border-radius: 4px;
            padding: 4px 6px;
            font-weight: 500;
            transition: background 0.4s ease;
            text-align: center;
            border: 1px solid black;
        }

        /* Tooltip prix reel */
        .price-tooltip {
            position: fixed;
            background: #222;
            color: #fff;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: bold;
            white-space: nowrap;
            z-index: 99999;
            pointer-events: none;
        }
  
          
  

       

        #open-trades-table input.tp-input,
        #open-trades-table input.sl-input
       
         {
            width: 60px;
            padding: px;
            font-size: 13px;
            text-align: center;
            color: #141212;
           
        }


        #open-trades-table .close-price-input {
            color: black;
            background-color:  rgb(255, 187, 0);
            border: none;
            width: 100%;
            height: auto;
            text-align: center;
        }

       
        
        /* Styles pour le modal */
        .modal {
            display: none; /* Masqué par défaut */
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5); /* Fond noir avec transparence */
        }

        .modal-content {
            background-color: #fefefe;
            margin: 2% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 50%;
        }

        
        
        
        .stock-symbol {
            font-weight: bold;
            color: #4651ad;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .stock-symbol:hover {
            color: #4651ad;
            cursor: pointer;
            transform: scale(1.1);
        }


        .datepicker-container {
            display: flex;
            justify-content: center; /* ✅ Centre horizontalement */
            align-items: center;
            gap: 12px; /* ✅ Espace entre les éléments */
            margin: 20px auto;
            flex-wrap: wrap; /* ✅ Pour qu’il reste responsive sur petits écrans */
        }

        
        .datepicker-container label {
            width: 100px; /* Largeur fixe pour les labels */
            margin-bottom: 0; /* Supprime la marge en bas pour un meilleur alignement */
            
        }
        
        .datepicker-container input[type="text"] {
            width: 200px; /* Largeur fixe pour les champs de saisie */
            padding: 5px; /* Rembourrage interne */
            background-color: white; /* Couleur de fond */
            color: black; /* Couleur du texte */
            border: 1px solid goldenrod; /* Bordure dorée */
        }
        

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

        .close-button:hover,
        .close-button:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
.edit-trade-button{
               padding: 8px 15px;
    background-color: #fff;
    color: #4CAF50;
    border: none;
    cursor: pointer;
    margin: 0px;
        width: 100%;
        }
        .edit-trade-button:hover{
               padding: 8px 15px;
    background-color: #eee;
    color: #4CAF50;
    border: none;
    cursor: pointer;
    margin: 0px;
        width: 100%;
        }
        
        
        .stock-link {
            color: #1a73e8;
            text-decoration: none;
        }

        .stock-link:hover {
            text-decoration: underline;
        }

        .price-diff {
            font-weight: bold;
        }

        .positive {
            color: green;
        }

        .negative {
            color: red;
        }


        .notif-toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #198754;
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: bold;
            z-index: 9999;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.5s ease;
          }
          
          .notif-toast.fade-out {
            opacity: 0;
            transform: translateY(20px);
          }
          

          .new-trade-notification {
                position: fixed;
                bottom: 20px;
                right: 20px;
                background: #198754;
                color: white;
                padding: 10px 20px;
                border-radius: 10px;
                font-weight: bold;
                box-shadow: 0 0 10px rgba(0,0,0,0.2);
                z-index: 9999;
                opacity: 0.95;
            }


            .signal-extras img { max-width: 100%; height: auto; border: 1px solid #ddd; border-radius: 6px; display: block; margin-top: 6px; }
            .extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
            .extras-meta pre { white-space: pre-wrap; background: #f8f9fa; color: #111; padding: 8px; border: 1px solid #eee; border-radius: 4px; max-height: 260px; overflow: auto; }
            .extra a { font-weight: bold; color: #1a73e8; text-decoration: none; }
            .extra a:hover { text-decoration: underline; }

/* Bouton Close Trade */
.close-trade-btn {
    background-color: rgb(255, 187, 0);
    color: black;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    min-width: 50px;
    min-height: 40px;
}

.close-trade-btn:hover {
    background-color: black;
    color: rgb(255, 187, 0);
    border-color: rgb(255, 187, 0);
}

.close-trade-btn:active {
    background-color: rgb(50, 50, 50);
}
