/**
 * Terminal Theme - Global Styles
 * 21Million Hyperliquid Trading Platform
 * Dark terminal-style design with green accents
 */

/* Base Styles */
* {
    font-family: 'Courier New', 'Consolas', monospace;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background: #0a0e27;
    color: #00ff41;
    min-height: 100vh;
    padding: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,65,0.03) 2px, rgba(0,255,65,0.03) 4px);
}

/* Global Scrollbar (matching table-responsive style) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0f1420;
}

::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc33;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #00ff41 #0f1420;
}

/* Typography */
h1, h2, h3, h5 {
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0,255,65,0.5);
    font-weight: bold;
    letter-spacing: 2px;
}

/* Cards */
.card {
    background: #0f1420;
    border: 2px solid #1a2332;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0,255,65,0.1);
    margin-bottom: 20px;
}

.card-header {
    background: #151b2b !important;
    color: #00ff41 !important;
    border-bottom: 2px solid #00ff41;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 16px;
}

.card-header:first-child {
    border-radius: 0;
}

.card-body {
    background: #0f1420;
}

/* Stat Cards */
.stat-card {
    background: #151b2b;
    color: #00ff41;
    padding: 25px;
    border: 2px solid #1a2332;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-card h3 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #00ff41;
    text-shadow: 0 0 20px rgba(0,255,65,0.8);
}

.stat-card p {
    margin: 0;
    color: #00ff41;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.stat-card i {
    color: #00ff41;
    opacity: 0.3;
}

/* Forms */
.form-control, .form-select {
    background: #151b2b;
    border: 1px solid #1a2332;
    color: #00ff41;
    font-family: 'Courier New', monospace;
}

.form-control:focus, .form-select:focus {
    background: #1a2332;
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.3);
}

.form-control:disabled, .form-control[readonly] {
    background: #0a0e17;
    border-color: #1a2332;
    color: #6b7280;
    opacity: 1;
}

.form-control::placeholder {
    color: #00ff41;
    opacity: 0.5;
}

/* Chrome Autocomplete Override - Force dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:active {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: #00ff41 !important;
    background-color: #151b2b !important;
    box-shadow: 0 0 0 1000px #151b2b inset !important;
    border: 1px solid #1a2332 !important;
    outline: none !important;
    caret-color: #00ff41 !important;
    font-family: 'Courier New', 'Consolas', monospace !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Autocomplete focus state - match normal focus */
input:-webkit-autofill:focus,
.form-control:-webkit-autofill:focus {
    background: #1a2332 !important;
    border: 1px solid #00ff41 !important;
    box-shadow: 0 0 0 1000px #1a2332 inset, 0 0 10px rgba(0,255,65,0.3) !important;
    outline: none !important;
    font-family: 'Courier New', 'Consolas', monospace !important;
}

.input-group-text {
    background: #151b2b;
    border: 1px solid #1a2332;
    color: #00ff41;
    font-family: 'Courier New', monospace;
}

.form-label {
    color: #00ff41;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.form-select {
    font-family: 'Courier New', 'Consolas', monospace !important;
    font-weight: bold !important;
    letter-spacing: 1px;
}

.form-select option {
    background: #151b2b;
    color: #00ff41;
}

/* Buttons */
.btn-primary {
    background: #00ff41;
    border: none;
    color: #0a0e27;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #00cc33;
    box-shadow: 0 0 20px rgba(0,255,65,0.5);
}

/* Signal Badges */
.signal-badge {
    padding: 6px 12px;
    border-radius: 0;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid;
    white-space: nowrap;
    display: inline-block;
}

.signal-STRONG_LONG { 
    background: rgba(16,185,129,0.2); 
    color: #10b981;
    border-color: #10b981;
    text-shadow: 0 0 5px rgba(16,185,129,0.5);
}

.signal-LONG { 
    background: rgba(52,211,153,0.2); 
    color: #34d399;
    border-color: #34d399;
}

.signal-NEUTRAL { 
    background: rgba(107,114,128,0.2); 
    color: #6b7280;
    border-color: #6b7280;
}

.signal-SHORT { 
    background: rgba(245,158,11,0.2); 
    color: #f59e0b;
    border-color: #f59e0b;
}

.signal-STRONG_SHORT { 
    background: rgba(239,68,68,0.2); 
    color: #ef4444;
    border-color: #ef4444;
    text-shadow: 0 0 5px rgba(239,68,68,0.5);
}

/* Status Badges */
[class*='status-'] {
    white-space: nowrap;
    display: inline-block;
}

.status-ACTIVE { 
    color: #3b82f6; 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(59,130,246,0.5);
    white-space: nowrap;
}

.status-TP1_HIT { 
    color: #10b981; 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(16,185,129,0.5);
    white-space: nowrap;
}

.status-TP2_HIT { 
    color: #059669; 
    font-weight: bold;
    text-shadow: 0 0 8px rgba(5,150,105,0.8);
    white-space: nowrap;
}

.status-TRAILING_HIT { 
    color: #22c55e; 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(34,197,94,0.5);
    white-space: nowrap;
}

.status-SL_HIT { 
    color: #ef4444; 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(239,68,68,0.5);
    white-space: nowrap;
}

/* PnL Colors */
.pnl-positive { 
    color: #10b981; 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(16,185,129,0.5);
}

.pnl-negative { 
    color: #ef4444 !important; 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(239,68,68,0.5) !important;
}

/* Tables */
.table {
    color: #00ff41;
    font-size: 0.85rem;
    background: transparent;
}

.table thead {
    background: #151b2b;
    border: none;
    box-shadow: 0 2px 0 #00ff41;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table thead th {
    color: #00ff41;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    border: none;
    padding: 15px 10px;
    background: #151b2b;
}

.table tbody tr {
    border-bottom: 1px solid #1a2332;
    transition: all 0.3s;
    background: #0f1420;
    cursor: pointer;
}

.table tbody tr:hover {
    background: #151b2b !important;
}

.table tbody td {
    border: none;
    padding: 12px 10px;
    vertical-align: middle;
    color: #00ff41;
    background: transparent;
}

.table-responsive {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #1a2332;
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #0f1420;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 0;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
}

/* Terminal Cursor Effect */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

h1::after {
    content: '_';
    animation: blink 1s infinite;
}

/* Bot Status Styles */
#botStatusText {
    font-weight: bold !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: inherit !important;
}

.bot-status-running {
    color: #00ff41 !important;
    text-shadow: 0 0 10px rgba(0,255,65,0.5) !important;
    display: inline !important;
    visibility: visible !important;
    font-size: inherit !important;
    opacity: 1 !important;
}

.bot-status-paused {
    color: #ef4444 !important;
    text-shadow: 0 0 10px rgba(239,68,68,0.5) !important;
    display: inline !important;
    visibility: visible !important;
    font-size: inherit !important;
    opacity: 1 !important;
}

/* Alert Boxes */
.alert-success {
    background: rgba(16,185,129,0.2);
    border: 2px solid #10b981;
    color: #10b981;
}

.alert-danger {
    background: rgba(239,68,68,0.2);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.alert-warning {
    background: rgba(245,158,11,0.2);
    border: 2px solid #f59e0b;
    color: #f59e0b;
}

.alert-info {
    background: rgba(59,130,246,0.2);
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

/* Bootstrap Button Overrides - Terminal Style */
.btn-success {
    background: #151b2b;
    border: 2px solid #10b981;
    color: #10b981;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-success:hover {
    background: rgba(16,185,129,0.2);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 20px rgba(16,185,129,0.3);
}

.btn-danger {
    background: #151b2b;
    border: 2px solid #ef4444;
    color: #ef4444;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: rgba(239,68,68,0.2);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239,68,68,0.3);
}

.btn-warning {
    background: #151b2b;
    border: 2px solid #f59e0b;
    color: #f59e0b;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-warning:hover {
    background: rgba(245,158,11,0.2);
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245,158,11,0.3);
}

.btn-info {
    background: #151b2b;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-info:hover {
    background: rgba(59,130,246,0.2);
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59,130,246,0.3);
}

.btn-secondary {
    background: #151b2b;
    border: 2px solid #6b7280;
    color: #6b7280;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(107,114,128,0.2);
    border-color: #6b7280;
    color: #6b7280;
}

/* Utility Classes */
.terminal-header {
    background: linear-gradient(135deg, #0f1420 0%, #1a2332 100%);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 2px solid #00ff41;
    box-shadow: 0 0 20px rgba(0,255,65,0.2);
}

.terminal-border-green {
    border: 2px solid #00ff41;
}

.terminal-border-blue {
    border: 2px solid #3b82f6;
}

.terminal-border-red {
    border: 2px solid #ef4444;
}

.terminal-border-yellow {
    border: 2px solid #f59e0b;
}

.terminal-bg-dark {
    background: #0f1420;
}

.terminal-bg-darker {
    background: #151b2b;
}

.terminal-text-green {
    color: #00ff41;
}

.terminal-text-blue {
    color: #3b82f6;
}

.terminal-text-red {
    color: #ef4444;
}

.terminal-text-yellow {
    color: #f59e0b;
}

.terminal-text-gray {
    color: #6b7280;
}

.terminal-shadow-green {
    box-shadow: 0 0 20px rgba(0,255,65,0.2);
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

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

.uppercase {
    text-transform: uppercase;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Glow effects */
.glow-green {
    text-shadow: 0 0 10px rgba(0,255,65,0.5);
}

.glow-blue {
    text-shadow: 0 0 10px rgba(59,130,246,0.5);
}

.glow-red {
    text-shadow: 0 0 10px rgba(239,68,68,0.5);
}

.glow-yellow {
    text-shadow: 0 0 10px rgba(245,158,11,0.5);
}

/* Common Pattern Classes */
.terminal-label {
    color: #00ff41;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.terminal-hint {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

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

.flex-gap-1 {
    display: flex;
    gap: 5px;
}

.flex-gap-2 {
    display: flex;
    gap: 10px;
}

.flex-gap-3 {
    display: flex;
    gap: 15px;
}

.cursor-pointer {
    cursor: pointer;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-70 {
    opacity: 0.7;
}

/* Font sizes */
.text-xs {
    font-size: 0.65rem;
}

.text-sm {
    font-size: 0.75rem;
}

.text-md {
    font-size: 0.85rem;
}

.text-lg {
    font-size: 1rem;
}

.text-xl {
    font-size: 1.1rem;
}

.text-2xl {
    font-size: 1.3rem;
}

.text-3xl {
    font-size: 2rem;
}

/* Padding/Margin utilities */
.p-30 {
    padding: 30px;
}

.p-15 {
    padding: 15px;
}

.p-10 {
    padding: 10px;
}

/* Icon styles */
.icon-invert {
    filter: invert(1) brightness(2);
}

/* Action buttons */
.btn-view {
    background: #00ff41;
    color: #0a0e27;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border: none;
}

.btn-view:hover {
    background: #00cc33;
    color: #0a0e27;
}

.btn-delete {
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border: none;
    text-shadow: 0 0 5px rgba(239,68,68,0.5);
}

.btn-delete:hover {
    background: #dc2626;
    color: #fff;
}

/* ==========================================
   ANALYSIS DETAIL PAGE UTILITIES
   ========================================== */

/* Meta Info Cards */
.meta-info {
    background: #151b2b;
    border: 1px solid #1a2332;
    padding: 15px;
    margin-bottom: 20px;
}

.meta-info .label {
    color: #00ff41;
    opacity: 0.7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-info .value {
    color: #00ff41;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0,255,65,0.3);
}

/* Meta Info Specific (Alternative class names) */
.meta-info-label {
    color: #00ff41;
    opacity: 0.7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-info-value {
    color: #00ff41;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0,255,65,0.3);
}

.meta-info-note {
    font-size: 0.7rem;
    color: #d1d5db;
    margin-top: 5px;
}

/* Color Utilities — !important so they override component styles (e.g. .table tbody td) */
.text-green { color: #00ff41 !important; }
.text-green-bright { color: #10b981 !important; }
.text-gray { color: #6b7280 !important; }
.text-gray-light { color: #9ca3af !important; }
.text-gray-lighter { color: #d1d5db !important; }
.text-blue { color: #3b82f6 !important; }
.text-cyan { color: #06b6d4 !important; }
.text-orange { color: #f59e0b !important; }
.text-red { color: #ef4444 !important; }
.text-purple { color: #8b5cf6 !important; }

/* Background Colors */
.bg-dark { background: #0a0e27; }
.bg-darker { background: #0f1420; }
.bg-card { background: #151b2b; }
.bg-blue-dim { background: rgba(59,130,246,0.2); }
.bg-orange-dim { background: rgba(245,158,11,0.2); }
.bg-red-dim { background: rgba(239,68,68,0.2); }
.bg-green-dim { background: rgba(16,185,129,0.2); }
.bg-purple-dim { background: rgba(139,92,246,0.2); }
.bg-cyan-dim { background: rgba(6,182,212,0.2); }
.bg-gray-dim { background: #374151; }

/* Border Colors — !important so they override component styles (e.g. .stat-card, .card) */
.border-green { border-color: #00ff41 !important; }
.border-green-bright { border-color: #10b981 !important; }
.border-blue { border-color: #3b82f6 !important; }
.border-cyan { border-color: #06b6d4 !important; }
.border-orange { border-color: #f59e0b !important; }
.border-red { border-color: #ef4444 !important; }
.border-gray { border-color: #6b7280 !important; }
.border-gray-dark { border-color: #1a2332 !important; }
.border-purple { border-color: #8b5cf6 !important; }

/* Font Sizes */
.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.75rem; }
.text-base { font-size: 0.85rem; }
.text-md { font-size: 0.9rem; }
.text-lg { font-size: 1rem; }
.text-xl { font-size: 1.1rem; }
.text-2xl { font-size: 1.3rem; }
.text-3xl { font-size: 1.5rem; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

/* Spacing */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.p-1 { padding: 8px; }
.p-2 { padding: 12px; }
.p-3 { padding: 15px; }

/* Display */
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

/* Text Align */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Form Styles */
.form-label-styled {
    color: #3b82f6;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-control-terminal {
    background: #151b2b;
    border: 1px solid #1a2332;
    color: #00ff41;
    padding: 8px;
}

.form-control-terminal:focus {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.2);
}

/* Password Toggle Button */
.btn-password-toggle {
    background: #151b2b;
    border: 2px solid #1a2332;
    color: #6b7280;
}

.btn-password-toggle:hover {
    color: #00ff41;
    border-color: #1a2332;
}

/* Password Strength Indicator */
.password-strength-box {
    background: #151b2b;
    border: 2px solid #1a2332;
    padding: 15px;
    border-radius: 5px;
}

.password-strength-label {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.password-strength-bar {
    height: 8px;
    background: #1a2332;
    border-radius: 4px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    background: #6b7280;
    transition: all 0.3s;
}

.password-strength-text {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Card Blue Variant (info/tips cards) */
.card-blue {
    background: rgba(59,130,246,0.05);
    border: 2px solid #3b82f6;
}

.card-blue .card-header {
    background: rgba(59,130,246,0.1);
    border-bottom: 2px solid #3b82f6;
}


/* Button Base Styles */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0;
}

/* Button Variants */
.btn-terminal-blue {
    background: rgba(59,130,246,0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    font-size: 0.8rem;
    padding: 5px 12px;
    transition: all 0.2s ease;
}

.btn-terminal-blue:hover {
    background: rgba(59,130,246,0.4);
    border-color: #60a5fa;
    color: #60a5fa;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
    transform: translateY(-1px);
}

.btn-terminal-orange {
    background: rgba(245,158,11,0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
    font-size: 0.8rem;
    padding: 5px 12px;
    transition: all 0.2s ease;
}

.btn-terminal-orange:hover {
    background: rgba(245,158,11,0.4);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245,158,11,0.5);
    transform: translateY(-1px);
}

.btn-terminal-green {
    background: rgba(16,185,129,0.2);
    border: 1px solid #10b981;
    color: #10b981;
    font-size: 0.8rem;
    padding: 7px 12px;
    transition: all 0.2s ease;
}

.btn-terminal-green:hover {
    background: rgba(16,185,129,0.4);
    border-color: #34d399;
    color: #34d399;
    box-shadow: 0 0 10px rgba(16,185,129,0.5);
    transform: translateY(-1px);
}

.btn-terminal-cyan {
    background: rgba(6,182,212,0.2);
    border: 1px solid #06b6d4;
    color: #06b6d4;
    font-size: 0.8rem;
    padding: 7px 12px;
    transition: all 0.2s ease;
}

.btn-terminal-cyan:hover {
    background: rgba(6,182,212,0.4);
    border-color: #22d3ee;
    color: #22d3ee;
    box-shadow: 0 0 10px rgba(6,182,212,0.5);
    transform: translateY(-1px);
}

.btn-terminal-gray {
    background: #374151;
    border: none;
    color: #d1d5db;
    transition: all 0.2s ease;
}

.btn-terminal-gray:hover {
    background: #4b5563;
    color: #f3f4f6;
    transform: translateY(-1px);
}

/* Table Styles */
.table-terminal {
    color: #00ff41;
    background: transparent;
}

.table-terminal th {
    color: #00ff41;
    font-weight: bold;
    padding: 12px;
    background: #151b2b;
    border: none;
}

.table-terminal td {
    padding: 12px;
    color: #d1d5db;
    background: #0f1420;
    border: none;
}

/* Borders */
.border-1 { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-none { border: none; }

/* Filters */
.filter-invert { filter: invert(1); }
.filter-brightness-2 { filter: brightness(2); }

/* Misc */
.pointer { cursor: pointer; }
.uppercase { text-transform: uppercase; }
.bold { font-weight: bold; }

/* ==========================================
   ANALYSIS DETAIL PAGE SPECIFIC STYLES
   ========================================== */

/* Back Button */
.btn-back {
    background: #151b2b;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #00ff41;
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(0,255,65,0.5);
}

/* Analysis Output */
.analysis-output {
    background: #0a0e27;
    border: 2px solid #1a2332;
    padding: 25px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #00ff41;
    overflow-x: auto;
}

/* Meta Info Cards - Equal Height */
.meta-info-row > [class*='col-'] {
    display: flex;
}

.meta-info-row > [class*='col-'] > .meta-info {
    width: 100%;
    margin-bottom: 0;
}

/* Signal Badges */
.signal-STRONG_LONG { 
    background: rgba(16,185,129,0.2); 
    color: #10b981;
    border-color: #10b981;
    text-shadow: 0 0 5px rgba(16,185,129,0.5);
}

.signal-LONG { 
    background: rgba(52,211,153,0.2); 
    color: #34d399;
    border-color: #34d399;
}

.signal-NEUTRAL { 
    background: rgba(107,114,128,0.2); 
    color: #6b7280;
    border-color: #6b7280;
}

.signal-SHORT { 
    background: rgba(245,158,11,0.2); 
    color: #f59e0b;
    border-color: #f59e0b;
}

.signal-STRONG_SHORT { 
    background: rgba(239,68,68,0.2); 
    color: #ef4444;
    border-color: #ef4444;
    text-shadow: 0 0 5px rgba(239,68,68,0.5);
}

/* Status Badges */
.status-badge,
.badge-role {
    padding: 6px 12px;
    border-radius: 0;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid;
    display: inline-block;
}

.badge-admin {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
    border-color: #ef4444;
    text-shadow: 0 0 5px rgba(239,68,68,0.5);
}

.badge-user {
    background: rgba(59,130,246,0.2);
    color: #3b82f6;
    border-color: #3b82f6;
    text-shadow: 0 0 5px rgba(59,130,246,0.5);
}

.badge-level {
    background: rgba(16,185,129,0.2);
    color: #10b981;
    border-color: #10b981;
    text-shadow: 0 0 5px rgba(16,185,129,0.5);
}

.status-ACTIVE { 
    background: rgba(59,130,246,0.2);
    color: #3b82f6; 
    border-color: #3b82f6;
    text-shadow: 0 0 5px rgba(59,130,246,0.5);
}

.status-TP1_HIT { 
    background: rgba(16,185,129,0.2);
    color: #10b981; 
    border-color: #10b981;
    text-shadow: 0 0 5px rgba(16,185,129,0.5);
}

.status-TP2_HIT { 
    background: rgba(5,150,105,0.2);
    color: #059669; 
    border-color: #059669;
    text-shadow: 0 0 8px rgba(5,150,105,0.8);
}

.status-SL_HIT { 
    background: rgba(239,68,68,0.2);
    color: #ef4444; 
    border-color: #ef4444;
    text-shadow: 0 0 5px rgba(239,68,68,0.5);
}

.status-TRAILING_HIT {
    background: rgba(34,197,94,0.2);
    color: #22c55e;
    border-color: #22c55e;
    text-shadow: 0 0 5px rgba(34,197,94,0.5);
}

/* Bot Status Classes */
.bot-status-running {
    color: #00ff41 !important;
}

.bot-status-paused {
    color: #ef4444 !important;
}

/* Trading Log */
.trading-log-container::-webkit-scrollbar {
    width: 8px;
}

.trading-log-container::-webkit-scrollbar-track {
    background: #0f1420;
}

.trading-log-container::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 0;
}

.trading-log-container::-webkit-scrollbar-thumb:hover {
    background: #00cc33;
}

/* Loading Spinner */
.loading {
    color: #3b82f6;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/* Titles visible by default */
.title-full {
    display: inline;
}

.title-mobile {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .stat-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stat-card h3 {
        font-size: 1.2rem;
    }

    /* Keep icons and text in section titles on mobile */
    .card-header h5 i {
        display: inline-block !important;
        font-size: 1.2rem;
        margin-right: 8px;
    }
    
    /* Smaller font for section titles on mobile, but keep readable */
    .card-header h5 {
        font-size: 0.95rem !important;
        line-height: 1.3;
    }
    
    /* Show mobile titles, hide full titles on mobile */
    .title-full {
        display: none !important;
    }
    
    .title-mobile {
        display: inline !important;
    }
    
    /* Hide status indicators on mobile */
    #livePositionsStatus,
    #openOrdersStatus {
        display: none !important;
    }
    
    /* Hide button text on mobile - show only icons */
    #addLimitOrderBtn,
    #refreshLivePositions,
    #refreshOpenOrders {
        padding: 6px 10px !important;
        font-size: 0 !important;
    }
    
    #addLimitOrderBtn i,
    #refreshLivePositions i,
    #refreshOpenOrders i {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    /* Reduce header padding on mobile */
    .card-header h5 {
        font-size: 1rem;
    }
    
    /* Full-width mobile layout with minimal padding */
    body {
        padding: 5px !important;
    }
    
    .container,
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Bootstrap row adjustments */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .row > [class*='col-'] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remove extra margins from cards on mobile */
    .card {
        margin-bottom: 10px;
        border-left: none;
        border-right: none;
    }
    
    /* Reduce padding in card bodies for more space */
    .card-body:not(.p-0) {
        padding: 10px !important;
    }
    
    /* Header navigation responsive */
    header {
        margin-left: -5px !important;
        margin-right: -5px !important;
        width: calc(100% + 10px) !important;
    }
    
    header .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    header nav {
        padding: 12px 5px !important;
    }
    
    .meta-info-row > [class*='col-'] {
        display: block;
    }
    
    .chart-container {
        height: 300px;
    }
    
    /* Table responsive on mobile */
    .table-responsive {
        margin: 0;
        border-left: none;
        border-right: none;
    }
    
    /* Mobile menu full width */
    #mobileMenu {
        margin-left: -5px;
        margin-right: -5px;
        width: calc(100% + 10px);
    }
    
    /* Table cells with signal and status - prevent wrapping */
    table td .signal-badge,
    table td [class*='status-'] {
        white-space: nowrap !important;
        display: inline-block;
        font-size: 0.65rem;
    }
    
    /* Recent Analyses table - compact on mobile */
    #analysesTableBody td {
        padding: 8px 4px !important;
        font-size: 0.75rem;
    }
}

/* ==========================================
   STICKY COIN COLUMN IN POSITIONS TABLE
   ========================================== */
.table-responsive .sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #0f1420;
}

.table-responsive thead .sticky-col {
    z-index: 3;
    background: #151b2b;
}

.table-responsive tbody tr:hover .sticky-col {
    background: #151b2b;
}

/* ==========================================
   BOOTSTRAP TOOLTIP TERMINAL STYLING
   ========================================== */

.tooltip {
    font-family: 'Courier New', monospace;
}

.tooltip-inner {
    background: #151b2b;
    color: #00ff41;
    border: 2px solid #00ff41;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0,255,65,0.5);
    border-radius: 0;
}

/* Tooltip arrow for different placements */
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #00ff41;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #00ff41;
}

.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #00ff41;
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #00ff41;
}

/* ==========================================
   SITE HEADER / NAVIGATION
   ========================================== */

.site-header {
    background: #0a0e27;
    border-bottom: 2px solid #00ff41;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040; /* Below Bootstrap modals (backdrop: 1050, modal: 1055) */
    box-shadow: 0 2px 10px rgba(0,255,65,0.3);
}

/* Add top padding to body to account for fixed header */
body {
    padding-top: 70px !important;
}

/* Content containers get side padding */
.container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

.site-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

/* Logo */
.site-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.site-header-logo:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.site-header-logo-icon {
    color: #00ff41;
    font-size: 1.5rem;
}

.site-header-logo-text {
    color: #00ff41;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Desktop Menu */
.site-header-desktop-menu {
    align-items: center;
}

/* Nav Dropdown Buttons */
.nav-dropdown-btn {
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.2s;
    padding: 8px 16px;
    cursor: pointer;
}

.nav-dropdown-btn--green { color: #00ff41; }
.nav-dropdown-btn--green:hover,
.nav-dropdown-btn--green.show {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.3);
    background: rgba(0,255,65,0.1);
}

.nav-dropdown-btn--blue { color: #3b82f6; }
.nav-dropdown-btn--blue:hover,
.nav-dropdown-btn--blue.show {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.1);
}

.nav-dropdown-btn--yellow { color: #f59e0b; }
.nav-dropdown-btn--yellow:hover,
.nav-dropdown-btn--yellow.show {
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245,158,11,0.3);
    background: rgba(245,158,11,0.1);
}

.nav-dropdown-btn--purple { color: #a855f7; }
.nav-dropdown-btn--purple:hover,
.nav-dropdown-btn--purple.show {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.1);
}

.nav-dropdown-btn--cyan { color: #06b6d4; }
.nav-dropdown-btn--cyan:hover,
.nav-dropdown-btn--cyan.show {
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6,182,212,0.3);
    background: rgba(6,182,212,0.1);
}

/* Nav Dropdown Menus */
.nav-dropdown-menu {
    background: #0a0e27;
    margin-top: 5px;
}

.nav-dropdown-menu--green {
    border: 2px solid #00ff41;
    box-shadow: 0 4px 15px rgba(0,255,65,0.3);
}

.nav-dropdown-menu--blue {
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.nav-dropdown-menu--yellow {
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}

.nav-dropdown-menu--purple {
    border: 2px solid #a855f7;
    box-shadow: 0 4px 15px rgba(168,85,247,0.3);
}

.nav-dropdown-menu--cyan {
    border: 2px solid #06b6d4;
    box-shadow: 0 4px 15px rgba(6,182,212,0.3);
}

/* Nav Dropdown Items */
.nav-dropdown-item {
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 20px;
    transition: all 0.2s;
    background: transparent;
}

.nav-dropdown-item--green { color: #00ff41; }
.nav-dropdown-item--green:hover,
.nav-dropdown-item--green:focus {
    background: rgba(0,255,65,0.2);
    color: #00ff41;
}

.nav-dropdown-item--blue { color: #3b82f6; }
.nav-dropdown-item--blue:hover,
.nav-dropdown-item--blue:focus {
    background: rgba(59,130,246,0.2);
    color: #3b82f6;
}

.nav-dropdown-item--yellow { color: #f59e0b; }
.nav-dropdown-item--yellow:hover,
.nav-dropdown-item--yellow:focus {
    background: rgba(245,158,11,0.2);
    color: #f59e0b;
}

.nav-dropdown-item--purple { color: #a855f7; }
.nav-dropdown-item--purple:hover,
.nav-dropdown-item--purple:focus {
    background: rgba(168,85,247,0.2);
    color: #a855f7;
}

.nav-dropdown-item--cyan { color: #06b6d4; }
.nav-dropdown-item--cyan:hover,
.nav-dropdown-item--cyan:focus {
    background: rgba(6,182,212,0.2);
    color: #06b6d4;
}

.nav-dropdown-item--red { color: #ef4444; }
.nav-dropdown-item--red:hover,
.nav-dropdown-item--red:focus {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
}

/* Nav Dropdown Dividers */
.nav-divider--green { border-color: rgba(0,255,65,0.3); }
.nav-divider--red { border-color: rgba(239,68,68,0.3); }

/* Mobile Toggle Button */
.site-header-mobile-toggle {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 10px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Menu */
.site-header-mobile-menu {
    display: none;
    padding: 15px 0;
    border-top: 1px solid rgba(0,255,65,0.3);
}

.site-header-mobile-menu.is-open {
    display: block;
    max-height: calc(100vh - 70px); /* 70px = header bar height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* Mobile Section Labels */
.mobile-nav-label {
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 8px 15px;
    opacity: 0.6;
}

.mobile-nav-label--green { color: #00ff41; }
.mobile-nav-label--blue { color: #3b82f6; }
.mobile-nav-label--yellow { color: #f59e0b; }
.mobile-nav-label--cyan { color: #06b6d4; }

/* Mobile Nav Links */
.mobile-nav-link {
    display: block;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 12px 15px 12px 30px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.mobile-nav-link--green { color: #00ff41; }
.mobile-nav-link--green:hover {
    border-left-color: #00ff41;
    background: rgba(0,255,65,0.1);
    padding-left: 35px;
    color: #00ff41;
}

.mobile-nav-link--blue { color: #3b82f6; }
.mobile-nav-link--blue:hover {
    border-left-color: #3b82f6;
    background: rgba(59,130,246,0.1);
    padding-left: 35px;
    color: #3b82f6;
}

.mobile-nav-link--yellow { color: #f59e0b; }
.mobile-nav-link--yellow:hover {
    border-left-color: #f59e0b;
    background: rgba(245,158,11,0.1);
    padding-left: 35px;
    color: #f59e0b;
}

.mobile-nav-link--cyan { color: #06b6d4; }
.mobile-nav-link--cyan:hover {
    border-left-color: #06b6d4;
    background: rgba(6,182,212,0.1);
    padding-left: 35px;
    color: #06b6d4;
}

.mobile-nav-link--red { color: #ef4444; }
.mobile-nav-link--red:hover {
    border-left-color: #ef4444;
    background: rgba(239,68,68,0.1);
    padding-left: 35px;
    color: #ef4444;
}

/* Mobile Dividers */
.mobile-nav-divider {
    border: none;
    border-top: 1px solid;
    margin: 15px 0;
}

.mobile-nav-divider--blue { border-color: rgba(59,130,246,0.3); }
.mobile-nav-divider--yellow { border-color: rgba(245,158,11,0.3); }
.mobile-nav-divider--cyan { border-color: rgba(6,182,212,0.3); }
.mobile-nav-divider--red {
    border-color: rgba(239,68,68,0.3);
    margin: 10px 0;
}

/* ==========================================
   SITE FOOTER
   ========================================== */

.site-footer {
    background: #0a0e27;
    border-top: 1px solid rgba(0,255,65,0.2);
    padding: 15px 0;
    margin-top: 40px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #6b7280;
}

.site-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-icon {
    margin-right: 5px;
}

.site-footer-separator {
    margin: 0 10px;
}

/* ==========================================
   LOG VIEWER STYLES
   ========================================== */

.log-viewer {
    background: #000;
    border: 2px solid #1a2332;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.log-viewer-raw {
    white-space: pre-wrap;
}

.log-line {
    color: #00ff41;
    margin-bottom: 8px;
    padding: 8px;
    border-left: 3px solid transparent;
}

.log-line:hover {
    background: rgba(0,255,65,0.05);
    border-left-color: #00ff41;
}

.log-line.error {
    color: #ef4444;
}

.log-line.warning {
    color: #f59e0b;
}

.btn-copy {
    background: #151b2b;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #3b82f6;
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(59,130,246,0.5);
}

.btn-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: #0a0e27;
}

.log-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(26,35,50,0.6);
    border: 1px solid rgba(0,255,65,0.3);
    border-left: 3px solid #00ff41;
    font-size: 0.85rem;
    color: #00ff41;
}

.log-filter-select {
    background: #151b2b;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-weight: bold;
    width: auto;
    min-width: 130px;
}

.stat-label {
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ==========================================
   FORM EXTENSIONS
   ========================================== */

.form-text {
    color: #00ff41;
    opacity: 0.6;
    font-size: 0.8rem;
}

.form-check-label {
    text-transform: none;
    color: #00ff41;
    opacity: 0.7;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    background-color: #1a2332;
    border: 1px solid #374151;
    cursor: pointer;
}

.form-switch .form-check-input:focus {
    background-color: #1a2332;
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.3);
}

.form-switch .form-check-input:checked {
    background-color: #00ff41;
    border-color: #00ff41;
}

/* Form switch layout and alignment */
.form-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-switch .form-check-label {
    margin: 0;
    line-height: 1.5em;
}

/* ==========================================
   SETTINGS PAGE STYLES
   ========================================== */

.setting-row {
    background: #151b2b;
    border: 1px solid #1a2332;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.setting-row:hover {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.2);
}

.btn-save {
    background: #151b2b;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 12px 40px;
}

.btn-save:hover {
    background: #00ff41;
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(0,255,65,0.5);
}

/* ==========================================
   WALLET PAGE STYLES
   ========================================== */

.wallet-card {
    background: #151b2b;
    border: 2px solid #1a2332;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.wallet-card:hover {
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0,255,65,0.2);
}

.balance-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0,255,65,0.6);
}

.word-break-all {
    word-break: break-all;
}

/* ==========================================
   RISK PAGE STYLES
   ========================================== */

.risk-metric {
    background: rgba(0, 255, 65, 0.05);
    border-left: 4px solid #00ff41;
    padding: 20px;
    margin-bottom: 15px;
}

.risk-metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    margin: 10px 0;
}

.risk-metric-label {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risk-metric-sub {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-top: 5px;
}

.risk-summary-value {
    font-size: 1.8rem;
    color: #00ff41;
    margin-top: 10px;
}

.progress-bar-risk {
    height: 30px;
    background: rgba(0, 255, 65, 0.2);
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00cc33);
    transition: width 0.5s ease;
}

.progress-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #e0e0e0;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    pointer-events: none;
}

.progress-bar-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-bar-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.status-safe {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border-color: #00ff41;
}

.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: #f59e0b;
}

.status-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.wallet-info {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid #1a2332;
    padding: 15px;
    margin-bottom: 20px;
}

.wallet-info-address {
    background: rgba(0, 255, 65, 0.1);
    padding: 5px 10px;
    color: #00ff41;
}

/* ==========================================
   DASHBOARD STYLES
   ========================================== */

/* Dashboard Layout */
.dashboard-title {
    cursor: pointer;
    transition: all 0.3s;
}

.dashboard-title:hover {
    text-shadow: 0 0 20px rgba(0,255,65,0.8);
    transform: scale(1.02);
}

.dashboard-subtitle {
    opacity: 0.5;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* Date Range & Bot Control Cards */
.date-range-card {
    background: #0f1420;
    border: 2px solid #00ff41;
    height: 100%;
}

.date-range-card .card-body {
    padding: 12px 15px;
}

.date-range-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ff41;
}

.date-range-select {
    border: 2px solid #00ff41;
    font-size: 1rem;
    min-width: 200px;
}

.bot-control-card {
    height: 100%;
}

.bot-control-card--running {
    background: rgba(16,185,129,0.2);
    border: 2px solid #00ff41;
}

.bot-control-card--paused {
    background: rgba(239,68,68,0.2);
    border: 2px solid #ef4444;
}

.bot-status-label {
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
}

.bot-toggle-btn {
    font-weight: bold;
    padding: 4px 12px;
    font-size: 0.75rem;
}

.bot-toggle-btn--pause:hover {
    background: rgba(196,126,0,0.35);
    border-color: #d97706;
    color: #fbbf24;
}

.bot-toggle-btn--start:hover {
    background: rgba(5,150,105,0.35);
    border-color: #047857;
    color: #34d399;
}

.bot-toggle-btn--start {
    background: rgba(16,185,129,0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

.bot-toggle-btn--pause {
    background: rgba(245,158,11,0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

/* Trading Wallet Dropdown (Coin Settings Modal) */
.trading-wallet-dropdown-btn {
    background: #151b2b;
    border: 1px solid #1a2332;
    color: #d1d5db;
    padding: 8px 14px;
    font-size: 0.85rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: border-color 0.2s;
}

.trading-wallet-dropdown-btn:hover,
.trading-wallet-dropdown-btn:focus,
.trading-wallet-dropdown-btn.show {
    border-color: #00ff41;
    color: #d1d5db;
    background: #151b2b;
}

.trading-wallet-dropdown-menu {
    background: #151b2b;
    border: 1px solid #00ff41;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}

.trading-wallet-dropdown-menu .dropdown-item {
    color: #d1d5db;
    padding: 7px 14px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.trading-wallet-dropdown-menu .dropdown-item:hover,
.trading-wallet-dropdown-menu .dropdown-item:focus {
    background: rgba(0, 255, 65, 0.1);
    color: #fff;
}

.trading-wallet-dropdown-menu .dropdown-item.active {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
}

.trading-wallet-dropdown-menu .dropdown-divider {
    border-color: #1a2332;
    margin: 4px 0;
}

.trading-wallet-dropdown-menu .exchange-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.trading-wallet-dropdown-menu .tw-wallet-balance {
    margin-left: auto;
    font-size: 0.75rem;
    color: #00ff41;
    font-weight: bold;
    white-space: nowrap;
    padding-left: 8px;
}

.trading-wallet-dropdown-menu .tw-wallet-balance.loading {
    color: #6b7280;
}

.trading-wallet-dropdown-btn .exchange-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.trading-wallet-dropdown-btn .tw-wallet-balance {
    font-size: 0.8rem;
    color: #00ff41;
    font-weight: bold;
    margin-left: auto;
    padding-left: 8px;
}

/* Stat Card Extensions */
.stat-card-subtitle {
    font-size: 0.7rem;
}

.stat-card--clickable {
    cursor: pointer;
    transition: all 0.3s;
}

.stat-card--clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0,255,65,0.3);
}

/* Card Header Flex Layout */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-status {
    font-size: 0.75rem;
    color: #6b7280;
}

.btn-add-order {
    background: #10b981;
    border: 1px solid #059669;
    color: #fff;
    padding: 4px 12px;
    font-weight: bold;
}
.btn-add-order:hover {
    background: #059669;
    border-color: #047857;
    color: #fff;
}

.btn-compact {
    padding: 4px 12px;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.loading-state--error {
    color: #ef4444;
}

/* Open Trades by Coin Section */
.trades-summary {
    padding: 15px;
}

.trades-summary--ok {
    background: rgba(59,130,246,0.1);
    border: 2px solid #3b82f6;
}

.trades-summary--over {
    background: rgba(239,68,68,0.1);
    border: 2px solid #ef4444;
}

.trades-summary-label {
    color: #00ff41;
    opacity: 0.7;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.trades-summary-value {
    font-size: 2rem;
    font-weight: bold;
}

.trades-summary-max {
    font-size: 1rem;
    opacity: 0.5;
}

.trades-summary-icon {
    font-size: 2rem;
}

.trades-summary-sublabel {
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Coin Cards */
.coin-card {
    background: #151b2b;
    border: 2px solid #1a2332;
    padding: 15px;
    height: 100%;
    transition: all 0.2s;
}

.coin-card:hover {
    border-color: #00ff41;
}

.coin-card--disabled {
    opacity: 0.6;
}

.coin-card__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.coin-card__name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ff41;
}

.coin-card__count {
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: bold;
}

.coin-card__count--active {
    background: rgba(59,130,246,0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.coin-card__count--zero {
    background: rgba(107,114,128,0.2);
    border: 1px solid #6b7280;
    color: #6b7280;
}

.coin-card__controls {
    margin-bottom: 10px;
    display: flex;
    gap: 5px;
}

.coin-card__label {
    color: #00ff41;
    opacity: 0.6;
    font-size: 0.7rem;
}

.coin-card__price {
    color: #00ff41;
    font-weight: bold;
    font-size: 1.1rem;
}

.coin-card__positions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,255,65,0.1);
}

.coin-card__positions-inner {
    margin-top: 8px;
}

/* Coin Control Buttons */
.btn-coin-toggle {
    flex: 1;
    font-size: 0.7rem;
    padding: 4px 8px;
}

.btn-coin-toggle--disable {
    background: rgba(239,68,68,0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}
.btn-coin-toggle--disable:hover {
    background: rgba(239,68,68,0.4);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-coin-toggle--enable {
    background: rgba(16,185,129,0.2);
    border: 1px solid #10b981;
    color: #10b981;
}
.btn-coin-toggle--enable:hover {
    background: rgba(16,185,129,0.4);
    border-color: #10b981;
    color: #10b981;
}

.btn-coin-settings {
    background: rgba(59,130,246,0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    font-size: 0.7rem;
    padding: 4px 8px;
}
.btn-coin-settings:hover {
    background: rgba(59,130,246,0.4);
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-coin-remove {
    background: rgba(239,68,68,0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    font-size: 0.7rem;
    padding: 4px 8px;
}
.btn-coin-remove:hover {
    background: rgba(239,68,68,0.4);
    border-color: #ef4444;
    color: #ef4444;
}

.text-live-indicator {
    color: #ef4444;
}

/* Trade Entry Links */
.trade-entry {
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.trade-entry__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    transition: all 0.2s;
}

.trade-entry__row:hover {
    background: rgba(0,255,65,0.1);
}

.direction-badge {
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #0a0e27;
}

.direction-badge--long {
    background: #10b981;
}

.direction-badge--short {
    background: #ef4444;
}

.pending-orders-indicator {
    color: #3b82f6;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: help;
    position: relative;
    z-index: 10;
}

.trailing-indicator {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    cursor: help;
    position: relative;
    z-index: 10;
}
.trailing-indicator--active {
    color: #10b981;
}
.trailing-indicator--waiting {
    color: #6b7280;
}

.status-waiting {
    color: #f59e0b;
    font-weight: bold;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trade-entry__pnl {
    font-weight: bold;
    font-size: 0.85rem;
}

.trade-entry__asterisk {
    font-size: 0.6rem;
    opacity: 0.7;
    margin-left: 2px;
}

/* Add Coin Button */
.add-coin-btn {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #151b2b;
    border: 2px dashed #1a2332;
    color: #00ff41;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-coin-btn:hover {
    border-color: #00ff41;
    background: rgba(0,255,65,0.05);
}

.add-coin-btn__icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Waiting for Entry Badge */
.badge-waiting {
    background: rgba(245,158,11,0.2);
    color: #f59e0b;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid #f59e0b;
}

/* Pagination */
.pagination-bar {
    padding: 15px;
    border-top: 1px solid #1a2332;
    background: #0a0e27;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #00ff41;
    font-size: 0.85rem;
    font-weight: bold;
}

.btn-pagination {
    background: #151b2b;
    color: #00ff41;
    border: 1px solid #1a2332;
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 100px;
}
.btn-pagination:hover {
    background: #1a2332;
    border-color: #00ff41;
    color: #00ff41;
}

/* Bootstrap Pagination - Terminal Style */
.pagination .page-link {
    background: #151b2b;
    color: #00ff41;
    border-color: #1a2332;
    font-size: 0.85rem;
}
.pagination .page-link:hover {
    background: #1a2332;
    color: #00ff41;
    border-color: #00ff41;
}
.pagination .page-item.active .page-link {
    background: #00ff41;
    color: #0a0e27;
    border-color: #00ff41;
    font-weight: bold;
}
.pagination .page-item.disabled .page-link {
    background: #0a0e27;
    color: #333;
    border-color: #1a2332;
}

/* Trading Logs */
.trading-log-header-info {
    color: #00ff41;
    opacity: 0.7;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.event-OPENED, .event-POSITION_OPENED { color: #3b82f6; }
.event-TP1, .event-TP2 { color: #10b981; }
.event-TRAILING_HIT, .event-TRAILING_ACTIVATED { color: #22c55e; }
.event-SL { color: #ef4444; }
.event-TARGETS_UPDATED { color: #f59e0b; }
.event-LIMIT_ORDER_CREATED { color: #f59e0b; }
.event-LIMIT_ORDER_TRIGGERED { color: #10b981; }
.event-LIMIT_ORDER_CANCELLED { color: #ef4444; }

/* Live Indicator */
.live-label {
    font-size: 0.65rem;
    color: #3b82f6;
    display: block;
    text-shadow: 0 0 5px rgba(59,130,246,0.5);
}

/* Modals (Terminal Theme Variants) */
.modal-terminal {
    background: #0f1420;
    border: 2px solid;
}

.modal-terminal--green { border-color: #00ff41; }
.modal-terminal--blue { border-color: #3b82f6; }
.modal-terminal--red {
    border-color: #ef4444;
    box-shadow: 0 0 30px rgba(239,68,68,0.3);
}
.modal-terminal--red-dark {
    background: #0a0e27;
    border-color: #ef4444;
    box-shadow: 0 0 30px rgba(239,68,68,0.3);
}
.modal-terminal--orange {
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245,158,11,0.3);
}
.modal-terminal--orange-dark {
    background: #0a0e27;
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245,158,11,0.3);
}

.modal-terminal .modal-header { border-bottom: 1px solid #1a2332; }
.modal-terminal--green .modal-header { border-color: #00ff41; border-width: 2px; }
.modal-terminal--red .modal-header { border-color: rgba(239,68,68,0.3); }
.modal-terminal--red-dark .modal-header { border-color: rgba(239,68,68,0.3); }
.modal-terminal--orange .modal-header { border-color: rgba(245,158,11,0.3); }
.modal-terminal--orange-dark .modal-header { border-color: rgba(245,158,11,0.3); }

.modal-terminal .modal-footer { border-top: 1px solid #1a2332; }
.modal-terminal--green .modal-footer { border-color: #00ff41; border-width: 2px; }
.modal-terminal--red .modal-footer { border-color: rgba(239,68,68,0.3); }
.modal-terminal--red-dark .modal-footer { border-color: rgba(239,68,68,0.3); }
.modal-terminal--orange .modal-footer { border-color: rgba(245,158,11,0.3); }
.modal-terminal--orange-dark .modal-footer { border-color: rgba(245,158,11,0.3); }

.modal-terminal .modal-title {
    font-weight: bold;
    letter-spacing: 1px;
}

.modal-detail-box {
    background: #151b2b;
    border: 1px solid #1a2332;
    padding: 15px;
    border-radius: 4px;
}

.modal-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-detail-row:last-child {
    margin-bottom: 0;
}

.modal-detail-label {
    color: #9ca3af;
}

.modal-detail-value {
    font-weight: bold;
}

.modal-info-box {
    background: rgba(59,130,246,0.1);
    border: 2px solid #3b82f6;
    border-radius: 5px;
    padding: 15px;
}

.modal-info-content {
    color: #3b82f6;
    font-size: 0.85rem;
    display: flex;
    align-items: start;
    gap: 10px;
}

.modal-warning-box {
    background: rgba(239,68,68,0.1);
    border: 2px solid #ef4444;
    border-radius: 5px;
    padding: 15px;
}

.modal-warning-content {
    color: #ef4444;
    font-size: 0.85rem;
    display: flex;
    align-items: start;
    gap: 10px;
}

.btn-modal-cancel {
    background: #374151;
    border: 1px solid #4b5563;
    color: #d1d5db;
}
.btn-modal-cancel:hover {
    background: #4b5563;
    border-color: #6b7280;
    color: #d1d5db;
}

.btn-modal-confirm-blue {
    background: #3b82f6;
    border: none;
    color: #fff;
}
.btn-modal-confirm-blue:hover {
    background: #2563eb;
    color: #fff;
}

.btn-modal-confirm-red {
    background: #ef4444;
    border: 1px solid #dc2626;
    color: #fff;
}
.btn-modal-confirm-red:hover {
    background: #dc2626;
    border-color: #b91c1c;
    color: #fff;
}

.btn-modal-confirm-orange {
    background: #f59e0b;
    border: 1px solid #d97706;
    color: #fff;
}
.btn-modal-confirm-orange:hover {
    background: #d97706;
    border-color: #b45309;
    color: #fff;
}

.btn-modal-confirm-green {
    background: #00ff41;
    border: none;
    color: #0a0e27;
    font-weight: bold;
}
.btn-modal-confirm-green:hover {
    background: #00cc34;
    color: #0a0e27;
}

.btn-exchange-select {
    background: transparent;
    border: 1px solid #333;
    color: #8a8f98;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
}
.btn-exchange-select:hover {
    border-color: #555;
    color: #ccc;
}
.btn-exchange-select.active[data-exchange="Hyperliquid"] {
    border-color: #00ff41;
    color: #00ff41;
    background: rgba(0,255,65,0.08);
}
.btn-exchange-select.active[data-exchange="Aster"] {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245,158,11,0.08);
}

.slider-container {
    margin-top: 15px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.estimated-pnl-box {
    text-align: center;
    padding: 12px;
    background: rgba(59,130,246,0.1);
    border-radius: 4px;
}

.display-value-box {
    background: #151b2b;
    border: 1px solid #1a2332;
    padding: .375rem .75rem;
    border-radius: 4px;
}

.display-value-label {
    color: #00ff41;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.display-value-content {
    color: #d1d5db;
    font-size: 14px;
}

/* JS-Generated Table Buttons */
.btn-limit-close {
    background: rgba(59,130,246,0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-limit-close:hover {
    background: rgba(59,130,246,0.4);
    transform: scale(1.05);
}

.btn-market-close {
    background: rgba(251,146,60,0.2);
    border: 1px solid #fb923c;
    color: #fb923c;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-market-close:hover {
    background: rgba(251,146,60,0.4);
    transform: scale(1.05);
}

.btn-cancel-order {
    background: #ef4444;
    border: 1px solid #dc2626;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
}
.btn-cancel-order:hover {
    background: #dc2626;
    border-color: #b91c1c;
    color: #fff;
}

/* Empty state for coin cards */
.coin-card__empty {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

/* No open trades empty state */
.no-trades-state {
    text-align: center;
    color: #6b7280;
    padding: 30px;
}

.no-trades-state > i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.no-trades-state .btn i {
    font-size: inherit;
    margin-bottom: 0;
    opacity: 1;
}

/* Live position row hover */
.live-position-row {
    cursor: pointer;
    transition: background 0.2s;
}

.live-position-row:hover {
    background: rgba(59,130,246,0.1);
}

/* Chart container */
.chart-container {
    height: 500px;
    position: relative;
}

/* Trading log column widths */
.col-time { width: 120px; }
.col-coin { width: 80px; }
.col-analysis { width: 100px; }
.col-event { width: 200px; }


/* Navigation Tabs (Bootstrap) - Terminal Theme Override */
.nav-tabs {
    border-bottom: 2px solid #00ff41;
}

.nav-tabs .nav-link {
    background: #0f1420;
    color: #6b7280;
    border: 1px solid #1a2332;
    border-bottom: none;
    border-radius: 0;
    padding: 10px 20px;
    margin-right: 2px;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    background: #151b2b;
    color: #00ff41;
    border-color: #1a2332;
}

.nav-tabs .nav-link.active {
    background: #1a2332 !important;
    color: #00ff41 !important;
    border-color: #00ff41 #00ff41 transparent #00ff41 !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,255,65,0.5);
}

.tab-content {
    background: #0f1420;
    border: 2px solid #1a2332;
    border-top: none;
    padding: 0;
}

.tab-pane {
    padding: 0;
}

/* DCA Example Box Styles */
.dca-example-box {
    background: #0f1420;
    border: 1px solid #1a2332;
    border-radius: 6px;
    overflow: hidden;
}

.dca-example-header {
    background: #1a2332;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #3b82f6;
    border-bottom: 1px solid #1a2332;
}

.dca-example-content {
    padding: 15px;
}

.dca-order-preview {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(26, 35, 50, 0.5);
}

.dca-order-preview:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.dca-order-summary {
    padding: 10px 0 0 0;
    border-top: 1px solid #1a2332;
    font-size: 0.85rem;
    color: #6b7280;
}

.dca-order-summary i {
    color: #3b82f6;
}

/* ==========================================
   CHECKBOX STYLES - TERMINAL DARK THEME
   ========================================== */

/* Standard checkboxes with terminal styling (excludes form-switch) */
input[type="checkbox"]:not(.form-check-input) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    background: #151b2b;
    border: 2px solid #1a2332;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

input[type="checkbox"]:not(.form-check-input):hover {
    border-color: #00ff41;
    background: rgba(0,255,65,0.05);
}

input[type="checkbox"]:not(.form-check-input):checked {
    background: #00ff41;
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.5);
}

input[type="checkbox"]:not(.form-check-input):checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a0e27;
    font-size: 14px;
    font-weight: bold;
}

input[type="checkbox"]:not(.form-check-input):focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 5px rgba(0,255,65,0.3);
}

input[type="checkbox"]:not(.form-check-input):disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="checkbox"]:not(.form-check-input):disabled:hover {
    border-color: #1a2332;
    background: #151b2b;
    box-shadow: none;
}

/* Live PnL Font Size */
.live-pnl {
    font-size: 12px;
}

/* ==========================================
   COIN SEARCH DROPDOWN (Dashboard)
   ========================================== */
.coin-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #151b2b;
    border: 1px solid #00ff41;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.coin-search-option {
    padding: 10px 15px;
    cursor: pointer;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.15s;
}

.coin-search-option:hover {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
}

.coin-search-option:last-child {
    border-bottom: none;
}

.coin-search-option.active {
    background: rgba(0, 255, 65, 0.2);
}

/* ==========================================
   WALLET FILTER DROPDOWN (Open Orders)
   ========================================== */
.wallet-filter-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.wallet-filter-toggle:hover {
    color: #00ff41;
}

.wallet-filter-toggle i {
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.6;
}

.wallet-filter-dropdown {
    position: fixed;
    background: #151b2b;
    border: 1px solid #00ff41;
    border-radius: 4px;
    padding: 10px;
    min-width: 200px;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.wallet-filter-option {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.15s;
}

.wallet-filter-option:hover {
    color: #00ff41;
}

.wallet-filter-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.wallet-filter-option label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

/* Coin links */
.coin-link {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.15s;
}
.coin-link:hover {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #00ff41;
}
.live-position-row .coin-link:hover,
.risk-position-row .coin-link:hover {
    text-decoration: none;
}
