/* nemesis-ui-v2.css */
/* Dark Mode Neumorphic + Glassmorphic Design System */

:root {
    --neu-bg: #0f172a; /* Slate 900 */
    --neu-surface: rgba(15, 23, 42, 0.7);
    --neu-shadow-light: rgba(255, 255, 255, 0.05);
    --neu-shadow-dark: rgba(0, 0, 0, 0.5);
    --neu-border: rgba(51, 65, 85, 0.5);
    
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-rose: #f43f5e;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
}

body {
    background-color: var(--neu-bg); background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, transparent 70%), linear-gradient(#0f172a 1px, transparent 1px), linear-gradient(90deg, #0f172a 1px, transparent 1px); background-size: 100% 100%, 40px 40px, 40px 40px; background-position: 0 0, -1px -1px, -1px -1px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}

/* Base Neumorphic Glass Panel */
.neu-glass-card {
    background: var(--neu-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--neu-border);
    border-radius: 16px;
    box-shadow: 
        6px 6px 12px var(--neu-shadow-dark),
        -6px -6px 12px var(--neu-shadow-light);
    transition: all 0.3s ease;
}

/* Inset variant for inputs/wells */
.neu-glass-inset {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--neu-border);
    border-radius: 12px;
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.6),
        inset -4px -4px 8px rgba(255,255,255,0.03);
}

/* Buttons */
.neu-glass-button {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #cbd5e1;
    font-weight: 600;
    box-shadow: 
        4px 4px 8px var(--neu-shadow-dark),
        -4px -4px 8px var(--neu-shadow-light);
    transition: all 0.2s ease;
    cursor: pointer;
}

.neu-glass-button:hover {
    background: linear-gradient(145deg, #273449, #151f33);
    color: #ffffff;
    box-shadow: 
        6px 6px 12px var(--neu-shadow-dark),
        -6px -6px 12px var(--neu-shadow-light);
}

.neu-glass-button:active {
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.4),
        inset -4px -4px 8px rgba(255,255,255,0.02);
}

/* Primary Action Buttons */
.neu-glass-primary {
    background: linear-gradient(145deg, var(--accent-indigo), #4f46e5);
    color: white;
    box-shadow: 
        0 4px 15px rgba(79, 70, 229, 0.4),
        inset 2px 2px 4px rgba(255,255,255,0.2),
        inset -2px -2px 4px rgba(0,0,0,0.2);
}

.neu-glass-primary:hover {
    box-shadow: 
        0 6px 20px rgba(79, 70, 229, 0.6),
        inset 2px 2px 4px rgba(255,255,255,0.3);
}

/* 
 * ==========================================
 * CYTOSCAPE HTML NODE LABELS 
 * Reference Image: Exchange/Wallet Sequence
 * ==========================================
 */

.cy-html-node {
    pointer-events: none; /* Let Cytoscape handle clicks on the hidden underlying node */
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%); /* Center over node */
}

.node-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.6),
        inset 0 1px 1px rgba(255,255,255,0.1);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.node-card.selected {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

/* Icon Container */
.node-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    border: 2px solid #334155;
    box-shadow: 
        4px 4px 8px rgba(0,0,0,0.4),
        -2px -2px 6px rgba(255,255,255,0.05);
}

.node-icon {
    font-size: 28px;
    color: #e2e8f0;
}

/* Status Badges */
.node-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    border: 2px solid #0f172a;
}

.badge-verified { background: var(--accent-emerald); }
.badge-risk { background: var(--accent-rose); }
.badge-unknown { background: #64748b; }

/* Text Content */
.node-address {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.node-amount {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-rose);
    margin-bottom: 4px;
}

.node-amount.inflow {
    color: var(--accent-emerald);
}

.node-pill {
    background: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.05);
}

.node-entity-type {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: 1px;
}

/* Specific Node Type Styles */
.node-card.exchange .node-icon-wrapper {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}
.node-card.exchange .node-icon { color: #f59e0b; }

.node-card.wallet .node-icon-wrapper {
    border-color: var(--accent-blue);
}
.node-card.wallet .node-icon { color: var(--accent-blue); }

.node-card.defi .node-icon-wrapper {
    border-color: #d946ef;
    background: rgba(217, 70, 239, 0.1);
}
.node-card.defi .node-icon { color: #d946ef; }

/* Global overrides for headers/scrollbars in Neu-Glass mode */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15,23,42,0.5); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; border: 1px solid rgba(255,255,255,0.05); }

table th {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neu-border) !important;
}
