:root {
    --color-primary: #1a237e;
    --color-secondary: #283593;
    --color-accent: #ff5722;
    --color-success: #4caf50;
    --color-danger: #f44336;
    --color-warning: #ff9800;
    --color-light: #f5f5f5;
    --color-dark: #212121;
    --color-text: #333;
    --border-radius: 8px;
    --error-color: #ee6055;
    --jaune-color: #ffd97d;
    --pastel-blue: #74c0fc;
    --pastel-green: #63e6be;
    --pastel-yellow: #ffd43b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--pastel-blue), var(--color-secondary));
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 4px solid var(--error-color);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

.main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 800px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* PANEL GAUCHE - LISTE WALLETS */
.wallet-panel {
    background: var(--color-light);
    border-right: 2px solid #e0e0e0;
    padding: 25px;
    overflow-y: auto;
    max-height: 730px;
}

.wallet-controls {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.wallet-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wallet-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.wallet-input button {
    padding: 12px 20px;
    background: var(--pastel-blue);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wallet-input button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.import-export {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--pastel-blue);
    color: white;
}

.btn-success {
    background: var(--pastel-green);
    color: white;
}

.btn-warning {
    background: var(--color-warning);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.wallet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--error-color);
}

.wallet-item.active {
    border-color: var(--color-dark);
    background: #f8f8fe;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wallet-address {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: var(--pastel-blue);
    word-break: break-all;
    margin-bottom: 10px;
}

.wallet-alias {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.risk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.risk-critical {
    background: #f44336;
    color: white;
}

.risk-high {
    background: #ee6055;
    color: white;
}

.risk-medium {
    background: #74c0fc;
    color: white;
}

.risk-low {
    background: #63e6be;
    color: white;
}

.wallet-info {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.action-btn,
.control-btn {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: var(--pastel-blue);
    color: white;
    border-color: var(--pastel-blue);
}

/* PANEL DROITE - CARTE */
.map-panel {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#network {
    width: 100%;
    height: 700px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    background: #fafafa;
}

.map-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: var(--color-light);
    padding: 20px;
    border-radius: var(--border-radius);
}
.map-controls button {
    border-radius: 12px;
}
.stats-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pastel-blue);
    font-family: 'Roboto Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.notes-section {
    padding: 25px;
    background: var(--color-light);
    border-top: 2px solid #e0e0e0;
}

.notes-editor {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 20px;
}

.notes-editor:focus {
    outline: none;
    border-color: var(--pastel-blue);
}

.export-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

a {
    color: white;
    text-decoration: underline;
}
footer {
    text-align: center;
    padding: 20px;
    background: var(--color-dark);
    color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box::before {
    content: "_";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* AJOUTER À TON STYLE.CSS */
#custom-tooltip a {
    pointer-events: auto !important;
}

#custom-tooltip {
    transition: opacity 0.2s ease;
}

#custom-tooltip:hover {
    opacity: 0.95;
}