@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap'); @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css'); /* Style général du panel */ #trading-panel { position: fixed; top: 10px; left: 10px; width: 400px; min-width: 250px; min-height: 200px; height: auto; /* Hauteur dynamique selon le contenu */ background: linear-gradient(145deg, rgba(10, 10, 10, 0.15), rgba(26, 26, 26, 0.15)); /* Dégradé noir/gris transparent */ color: #FFFFFF; /* Texte blanc */ padding: 15px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(224, 224, 224, 0.2); /* Ombre avec effet néon blanc */ z-index: 999999; font-family: 'Roboto', sans-serif; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E0E0E0; /* Bordure blanc néon */ backdrop-filter: blur(5px); animation: panelFadeIn 0.5s ease-in-out; transition: width 0.3s ease, height 0.3s ease; /* Transition fluide pour les dimensions */ } /* Mode réduit */ #trading-panel.minimized { width: 450px; height: 500px; } /* Animation d'apparition du panel */ @keyframes panelFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } /* En-tête du panel */ .panel-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 15px; cursor: grab; user-select: none; background: linear-gradient(90deg, rgba(10, 10, 10, 0.15), rgba(26, 26, 26, 0.15)); /* Dégradé noir/gris transparent */ padding: 12px; border-radius: 15px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(224, 224, 224, 0.3); /* Ombre extérieure sombre + effet néon blanc */ backdrop-filter: blur(5px); } .title { font-weight: 700; font-size: 18px; color: #E0E0E0; /* Blanc néon */ text-shadow: 0 0 5px rgba(224, 224, 224, 0.7), 0 0 10px rgba(224, 224, 224, 0.5); /* Effet néon blanc */ } .balance-container { display: flex; align-items: center; gap: 8px; } #sol-balance { font-size: 18px; font-weight: 700; color: #E0E0E0; /* Blanc néon */ text-shadow: 0 0 5px rgba(224, 224, 224, 0.7), 0 0 10px rgba(224, 224, 224, 0.5); /* Effet néon blanc */ } .solana-logo { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #E0E0E0; /* Bordure blanc néon */ box-shadow: 0 0 10px rgba(224, 224, 224, 0.4); } #usd-balance { font-size: 14px; color: #B0B0B0; /* Gris clair */ font-weight: 400; text-shadow: 0 0 3px rgba(224, 224, 224, 0.3); /* Effet néon subtil */ } .minimize-btn { font-size: 24px; color: #B0B0B0; /* Gris clair */ cursor: pointer; padding: 0 10px; transition: all 0.3s ease; } .minimize-btn:hover { color: #E0E0E0; /* Blanc néon au survol */ text-shadow: 0 0 5px rgba(224, 224, 224, 0.7); } .close-btn { font-size: 24px; color: #B0B0B0; /* Gris clair */ cursor: pointer; padding: 0 10px; transition: all 0.3s ease; } .close-btn:hover { color: #E0E0E0; /* Blanc néon au survol */ transform: rotate(90deg); text-shadow: 0 0 5px rgba(224, 224, 224, 0.7); } /* Contenu du panel */ .panel-content { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 15px; background: rgba(10, 10, 10, 0.1); /* Noir très transparent */ border-radius: 15px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(224, 224, 224, 0.3); /* Ombre extérieure sombre + effet néon blanc */ backdrop-filter: blur(5px); transition: opacity 0.3s ease; } /* Animation d'apparition des menus */ .panel-content { animation: menuFadeIn 0.3s ease-in-out; } @keyframes menuFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Boutons du menu principal */ .menu-buttons { display: flex; flex-direction: column; gap: 10px; transition: opacity 0.3s ease; } /* Boutons généraux */ #trading-panel button { border: none; padding: 12px; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; font-family: 'Roboto', sans-serif; font-weight: 500; font-size: 14px; position: relative; overflow: hidden; color: #FFFFFF; /* Texte blanc */ backdrop-filter: blur(5px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(224, 224, 224, 0.3); /* Même ombre que l'en-tête */ } /* Boutons désactivés */ #trading-panel button:disabled { opacity: 0.5; cursor: not-allowed; } /* Effet de glow au survol */ #trading-panel button::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%); opacity: 0; transition: opacity 0.3s ease; } #trading-panel button:hover::after { opacity: 1; } /* Boutons du menu principal */ #wallet-btn, #buysell-settings-btn, #fee-settings-btn, #stats-btn { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } /* Suppression du pseudo-élément ::before */ #wallet-btn::before, #buysell-settings-btn::before, #fee-settings-btn::before, #stats-btn::before { content: none; } #wallet-btn:hover, #buysell-settings-btn:hover, #fee-settings-btn:hover, #stats-btn:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); transform: translateY(-3px); } /* Boutons d'achat et de vente */ .buy-sell-buttons { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; } .buy-buttons, .sell-buttons { display: flex; gap: 10px; flex: 1; } .buy-btn, .sell-btn { flex: 1; text-align: center; font-weight: 700; } .buy-btn { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } .buy-btn:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.7); transform: translateY(-3px); } .sell-btn { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } .sell-btn:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.7); transform: translateY(-3px); } /* Boîtes d'information (Glassmorphism) */ .info-boxes { display: flex; gap: 8px; margin-top: 8px; margin-bottom: 8px; } .info-box { flex: 1; background: rgba(10, 10, 10, 0.05); /* Noir très transparent */ color: #FFFFFF; padding: 10px; border-radius: 10px; text-align: center; font-size: 12px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(224, 224, 224, 0.3); /* Ombre extérieure sombre + effet néon blanc */ border: 1px solid rgba(224, 224, 224, 0.2); /* Bordure blanc néon */ backdrop-filter: blur(8px); transition: transform 0.3s ease; } .info-box:hover { transform: scale(1.02); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(224, 224, 224, 0.3); } /* Menu Buy/Sell Settings */ .preset-settings h3 { margin: 10px 0; font-size: 16px; font-weight: 700; color: #E0E0E0; /* Blanc néon */ text-shadow: 0 0 5px rgba(224, 224, 224, 0.5); } .preset-settings input, .panel-content input { width: 70px; margin-right: 10px; padding: 6px; border-radius: 8px; border: 1px solid rgba(224, 224, 224, 0.3); /* Bordure blanc néon */ background: rgba(10, 10, 10, 0.05); /* Noir très transparent */ color: #FFFFFF; font-family: 'Roboto', sans-serif; transition: all 0.3s ease; backdrop-filter: blur(5px); } .preset-settings input:focus, .panel-content input:focus { border-color: #E0E0E0; box-shadow: 0 0 10px rgba(224, 224, 224, 0.5); outline: none; } .preset-settings button { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } .preset-settings button:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); transform: translateY(-3px); } /* Menu Fee Settings */ #fee-settings-menu label { font-size: 14px; font-weight: 500; color: #E0E0E0; /* Blanc néon */ text-shadow: 0 0 5px rgba(224, 224, 224, 0.5); } #fee-settings-menu span { font-size: 12px; color: #B0B0B0; /* Gris clair */ text-shadow: 0 0 3px rgba(224, 224, 224, 0.3); /* Effet néon subtil */ } #update-solana-fees, #update-slippage { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } #update-solana-fees:hover, #update-slippage:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); transform: translateY(-3px); } /* Menu Stats */ #stats-menu p { font-size: 14px; margin: 8px 0; color: #FFFFFF; } #stats-menu span { color: #E0E0E0; /* Blanc néon */ text-shadow: 0 0 5px rgba(224, 224, 224, 0.5); } #reset-stats-btn { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } #reset-stats-btn:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); transform: translateY(-3px); } .trade-history { margin-top: 10px; max-height: 200px; overflow-y: auto; font-size: 12px; font-family: 'Roboto', sans-serif; background: rgba(10, 10, 10, 0.05); /* Noir très transparent */ padding: 15px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(224, 224, 224, 0.3); /* Ombre extérieure sombre + effet néon blanc */ backdrop-filter: blur(5px); } .trade-history h3 { font-size: 16px; margin-bottom: 10px; color: #E0E0E0; /* Blanc néon */ text-shadow: 0 0 5px rgba(224, 224, 224, 0.5); } .trade-item { margin-bottom: 10px; padding: 10px; padding-left: 30px; /* Espace pour l'icône */ background: rgba(10, 10, 10, 0.05); /* Noir très transparent */ border-radius: 8px; border-left: 3px solid #E0E0E0; /* Bordure blanc néon */ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(224, 224, 224, 0.3); /* Ombre extérieure sombre + effet néon blanc */ transition: background 0.3s ease; position: relative; /* Pour positionner l'icône */ } .trade-item:hover { background: rgba(26, 26, 26, 0.2); } /* Back buttons */ #back-wallet-btn, #back-buysell-btn, #back-fee-btn, #back-stats-btn { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; padding: 10px 20px; /* Ajustement du padding pour une meilleure apparence */ min-height: 40px; /* Hauteur minimum pour éviter l'écrasement */ line-height: normal; /* Évite les problèmes de centrage vertical */ display: flex; align-items: center; justify-content: center; } #back-wallet-btn:hover, #back-buysell-btn:hover, #back-fee-btn:hover, #back-stats-btn:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); transform: translateY(-3px); } /* Create Wallet et Add/Remove Funds buttons */ #create-wallet-btn { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } #create-wallet-btn:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); transform: translateY(-3px); } #add-funds-btn { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } #add-funds-btn:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); transform: translateY(-3px); } #remove-funds-btn { background: linear-gradient(90deg, rgba(10, 10, 10, 0.25), rgba(26, 26, 26, 0.25)); /* Noir/gris transparent */ color: #FFFFFF; } #remove-funds-btn:hover { background: linear-gradient(90deg, rgba(26, 26, 26, 0.25), rgba(40, 40, 40, 0.25)); /* Dégradé gris plus clair transparent */ box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); transform: translateY(-3px); } /* Poignée de redimensionnement */ .resize-handle { position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; background: linear-gradient(45deg, rgba(10, 10, 10, 0.8), rgba(26, 26, 26, 0.8)); /* Dégradé noir/gris discret */ border-radius: 0 0 20px 0; cursor: nwse-resize; border-top: 1px solid rgba(255, 255, 255, 0.1); /* Bordure plus subtile */ border-left: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Ombre plus discrète */ } /* Styles pour les notifications */ #notification-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000000; display: flex; flex-direction: column; align-items: center; gap: 10px; } .notification { background: rgba(10, 10, 10, 0.4); color: #E0E0E0; padding: 12px 20px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(224, 224, 224, 0.2), 0 0 20px rgba(224, 224, 224, 0.1); border: 1px solid rgba(224, 224, 224, 0.15); backdrop-filter: blur(10px); font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; min-width: 300px; max-width: 500px; animation: notificationSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; text-transform: uppercase; letter-spacing: 0.5px; word-wrap: break-word; white-space: normal; text-align: center; } .notification.success { border-left: 4px solid #00B36B; background: linear-gradient(90deg, rgba(0, 179, 107, 0.1), rgba(10, 10, 10, 0.4)); } .notification.pending { border-left: 4px solid #FF8C00; background: linear-gradient(90deg, rgba(255, 140, 0, 0.1), rgba(10, 10, 10, 0.4)); } .notification.sell { border-left: 4px solid #FF3333; background: linear-gradient(90deg, rgba(255, 51, 51, 0.1), rgba(10, 10, 10, 0.4)); } .notification span { text-shadow: 0 0 8px rgba(224, 224, 224, 0.5); position: relative; z-index: 1; } /* Barre de progression améliorée */ .notification .progress-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(224, 224, 224, 0.2); border-radius: 0 0 12px 12px; overflow: hidden; } .notification .progress-bar::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 0 0 12px 12px; } .notification.success .progress-bar::after { background: linear-gradient(90deg, #00B36B, #00E699); animation: progress 3s cubic-bezier(0.4, 0, 0.2, 1) forwards; } .notification.pending .progress-bar::after { background: linear-gradient(90deg, #FF8C00, #FFB366); animation: progress 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; } .notification.sell .progress-bar::after { background: linear-gradient(90deg, #FF3333, #FF6666); animation: progress 3s cubic-bezier(0.4, 0, 0.2, 1) forwards; } /* Animation d'apparition améliorée */ @keyframes notificationSlideIn { 0% { opacity: 0; transform: translateY(-20px) scale(0.95); } 50% { transform: translateY(5px) scale(1.02); } 100% { opacity: 1; transform: translateY(0) scale(1); } } /* Animation de disparition améliorée */ .notification.fade-out { animation: notificationSlideOut 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards; } @keyframes notificationSlideOut { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-20px) scale(0.95); } } /* Animation de la barre de progression améliorée */ @keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(0); } } /* Effet de brillance sur les notifications */ .notification::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient( 45deg, transparent, rgba(224, 224, 224, 0.05), transparent ); transform: rotate(45deg); animation: shine 3s infinite; pointer-events: none; } @keyframes shine { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } } /* Styles pour les marqueurs sur le graphique */ #chart-overlay { z-index: 1000000; /* Assurez-vous que les marqueurs sont au-dessus du graphique */ } .chart-marker { transition: all 0.3s ease; } .chart-marker:hover { transform: scale(1.2); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); } #image-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; z-index: 1000000; flex-direction: column; } #image-modal > div { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(26, 26, 26, 0.95); border-radius: 15px; box-shadow: 0 0 15px rgba(224, 224, 224, 0.5); padding: 20px; } #modal-image { max-width: 90vw; max-height: 80vh; width: auto; height: auto; display: block; margin: 0 auto; border-radius: 12px; box-shadow: 0 0 30px 8px rgba(0,0,0,0.5); background: #111; object-fit: contain; }