/* ==========================================================================
   CSS Design Tokens & Core Settings (Premium Dark Theme)
   ========================================================================== */

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-header: 'Outfit', sans-serif;

    /* Harmonic Color Palettes (HSL System) */
    --bg-primary: #07090e;
    --bg-secondary: #0d121f;
    --bg-card: rgba(18, 26, 47, 0.65);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Semantic States */
    --color-accent: hsl(204, 100%, 50%);         /* Neon Electric Blue */
    --color-accent-hover: hsl(204, 100%, 42%);
    --color-accent-trans: rgba(0, 145, 255, 0.12);

    --color-success: hsl(142, 70%, 45%);         /* Emerald Green */
    --color-success-trans: rgba(16, 185, 129, 0.1);
    
    --color-danger: hsl(350, 89%, 60%);          /* Crimson Red */
    --color-danger-trans: rgba(244, 63, 94, 0.1);

    --color-warning: hsl(45, 93%, 47%);          /* Warm Gold */
    --color-warning-trans: rgba(245, 158, 11, 0.1);

    --color-gray: #334155;
    --color-gray-trans: rgba(51, 65, 85, 0.2);

    /* Shadow Systems */
    --shadow-soft: 0 4px 20px 0 rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px 0 rgba(0, 145, 255, 0.15);
    --shadow-success-glow: 0 0 15px 0 rgba(16, 185, 129, 0.12);
    --shadow-danger-glow: 0 0 15px 0 rgba(244, 63, 94, 0.12);
}

/* Base Body Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    height: 100vh;
}

/* Smooth Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #334155; /* Brighter and more visible scrollbar thumb */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ==========================================================================
   Application Architecture Layout
   ========================================================================== */

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 80% 20%, rgba(13, 27, 61, 0.5) 0%, var(--bg-primary) 70%);
}

/* Sidebar Styling */
.sidebar {
    width: 290px;
    min-width: 290px;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

/* Primary Sidebar (Left Parent Bar) */
.sidebar-primary {
    width: 80px;
    background-color: #07090e;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    height: 100%;
}

.sidebar-brand {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.brand-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 145, 255, 0.3));
}

.parent-menu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
}

.parent-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 6px;
    user-select: none;
}

.parent-menu-item i {
    font-size: 20px;
}

.parent-menu-item span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parent-menu-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.parent-menu-item.active {
    background-color: rgba(0, 145, 255, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(0, 145, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 145, 255, 0.05);
}

/* Secondary Sidebar (Right Submenu Drawer) */
.sidebar-secondary {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    height: 100%;
    background-color: var(--bg-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-secondary {
    flex: 0;
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.submenu-header {
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 15px;
}

.submenu-header-title {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.submenu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-secondary-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 8px;
}


.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 8px;
}

.logo-icon {
    font-size: 26px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 145, 255, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Sidebar Nav Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--color-accent);
    background-color: rgba(0, 145, 255, 0.08);
    font-weight: 600;
}

.nav-item .badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    background-color: #1e293b;
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 10px;
}

.nav-item.active .badge {
    background-color: var(--color-accent);
    color: white;
}

.menu-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 8px 6px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 8px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.app-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

.status-indicator.offline {
    background-color: var(--color-danger);
    box-shadow: 0 0 8px var(--color-danger);
}

/* ==========================================================================
   Main Workspace Architecture
   ========================================================================== */

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 40px;
    overflow-y: auto;
}

/* Top Header Bar */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.header h1 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.header p {
    font-size: 13px;
}

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

/* Toggle Switch Control */
.demo-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
}

.toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--color-accent);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--color-accent);
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ==========================================================================
   Dashboard Metric Cards
   ========================================================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.metric-card {
    min-height: 96px;
    height: auto;
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-title {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: color 0.3s;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Color Helpers for UI Icons */
.bg-blue-trans { background-color: rgba(0, 145, 255, 0.08); }
.text-blue { color: var(--color-accent); }

.bg-green-trans { background-color: rgba(16, 185, 129, 0.08); }
.text-green { color: var(--color-success); }

.bg-red-trans { background-color: rgba(244, 63, 94, 0.08); }
.text-red { color: var(--color-danger); }

.bg-warning-trans { background-color: rgba(245, 158, 11, 0.08); }
.text-warning { color: var(--color-warning); }

.bg-gray-trans { background-color: rgba(148, 163, 184, 0.08); }
.text-gray { color: var(--text-secondary); }

/* ==========================================================================
   Central Content Board Layout
   ========================================================================== */

.content-box {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-height: 400px;
}

.tab-pane {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    width: 100%;
    min-height: 450px;
    height: 100%;
}

.tab-pane.active {
    display: flex;
}

/* Loading Overlay Overlay State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 9, 14, 0.85);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* Spinner Animations */
.spinner-box {
    width: 40px;
    height: 40px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-accent);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0); }
    50% { transform: scale(1.0); }
}

/* Alert Message Box */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    margin: 24px 24px 0 24px;
}

.alert-box.error {
    background-color: var(--color-danger-trans);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fda4af;
}

.alert-icon {
    font-size: 20px;
    margin-top: 2px;
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.alert-message {
    font-size: 12.5px;
    color: #fca5a5;
    opacity: 0.85;
}

/* ==========================================================================
   Data Table Styling
   ========================================================================== */

.table-container {
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    flex-grow: 1;
    min-height: 0;
}

.data-table {
    width: 100%;
    min-width: 1100px; /* Forces horizontal scrolling on smaller laptop screens instead of squeezing columns and hiding data! */
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    font-family: var(--font-header);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 14px 18px;
    border-bottom: 1.5px solid var(--border-color);
    font-weight: 700;
    position: sticky;
    top: 0;
    background-color: #0d121f; /* Matches --bg-secondary to remain opaque during scrolling */
    z-index: 10;
}

.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.data-table tbody tr {
    transition: transform 0.15s ease;
}

.data-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.015);
}

.data-table td.instrument-cell {
    font-family: var(--font-header);
    font-weight: 600;
    color: var(--text-primary);
}

/* Badge styles */
.badge-exchange {
    background-color: #1e293b;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-transaction {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-transaction.buy {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-transaction.sell {
    background-color: rgba(244, 63, 94, 0.15);
    color: #fb7185;
}

.badge-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status.complete {
    background-color: var(--color-success-trans);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-status.rejected {
    background-color: var(--color-danger-trans);
    color: #fca5a5;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-status.open {
    background-color: var(--color-warning-trans);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Interactive Color Classes */
.text-profit {
    color: var(--color-success) !important;
}

.text-loss {
    color: var(--color-danger) !important;
}

/* Flicker effect on updates */
.flicker-up {
    animation: flash-green 1.2s ease-out;
}

.flicker-down {
    animation: flash-red 1.2s ease-out;
}

@keyframes flash-green {
    0% { background-color: rgba(16, 185, 129, 0.25); }
    100% { background-color: transparent; }
}

@keyframes flash-red {
    0% { background-color: rgba(244, 63, 94, 0.25); }
    100% { background-color: transparent; }
}

/* ==========================================================================
   User Profile Component Layout
   ========================================================================== */

.profile-card {
    max-width: 650px;
    margin: 20px auto;
    width: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-trans) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.profile-summary h3 {
    font-family: var(--font-header);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-badge {
    background-color: var(--color-accent-trans);
    color: var(--color-accent);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-detail {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-pill {
    background-color: rgba(0, 145, 255, 0.06);
    color: var(--color-accent);
    border: 1px solid rgba(0, 145, 255, 0.15);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    user-select: none;
}

.profile-pill:hover {
    background-color: rgba(0, 145, 255, 0.15);
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(0, 145, 255, 0.3);
    transform: translateY(-1px);
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   JSON inspector & button controls
   ========================================================================== */

.inspector-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.inspector-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inspector-title {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.json-viewer {
    margin: 0;
    padding: 16px;
    background-color: #04060b;
    overflow: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    flex-grow: 1;
    height: 350px;
    color: #a78bfa; /* Lavender */
}

/* General Button Controls */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-small {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
}

.btn-connect {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-connect:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

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

.btn-danger:hover {
    background-color: hsl(350, 89%, 52%);
}

.btn-small {
    background-color: #1e293b;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-small:hover {
    background-color: #334155;
    border-color: var(--border-hover);
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Table Controls, Searching, Filtering & Column Sorting (Premium Features)
   ========================================================================== */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: rgba(13, 18, 31, 0.4);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 10px;
}

.search-box-container {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-box-container .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-box-container input {
    width: 100%;
    background-color: rgba(7, 9, 14, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px 10px 40px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 13.5px;
    transition: all 0.25s ease;
}

.search-box-container input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(0, 145, 255, 0.15);
    background-color: rgba(7, 9, 14, 0.9);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-select {
    background-color: rgba(7, 9, 14, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 13.5px;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
    min-width: 150px;
}

.filter-select:focus, .filter-select:hover {
    border-color: var(--border-hover);
    background-color: rgba(7, 9, 14, 0.9);
}

.data-table th.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
}

.data-table th.sortable:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.data-table th.sortable i {
    margin-left: 6px;
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.data-table th.sortable:hover i {
    color: var(--text-secondary);
}

.data-table th.sortable.asc i {
    color: var(--color-accent);
}

.data-table th.sortable.desc i {
    color: var(--color-accent);
}

/* Pagination and Row Limit Styling (Premium Features) */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(13, 18, 31, 0.2);
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: auto; /* Push to bottom of content box if flex column */
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: rgba(7, 9, 14, 0.4);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.page-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.page-btn.active {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.limit-select-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.limit-select {
    background-color: rgba(7, 9, 14, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
}

.limit-select:focus {
    border-color: var(--color-accent);
}

input[type="date"].limit-select {
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Banking-style Privacy / Bullet Feature */
.metric-card.blur-sensitive {
    position: relative;
    overflow: hidden;
}

.metric-card.blur-sensitive .metric-value {
    user-select: none;
    transition: letter-spacing 0.2s ease;
}

.metric-card.blur-sensitive .metric-value.hidden-amount {
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Common Privacy Eye Button in Header */
.btn-privacy {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
}

.btn-privacy:hover {
    border-color: var(--border-hover);
    color: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent-trans);
    transform: translateY(-1px);
}

.btn-privacy:active {
    transform: translateY(0);
}

.btn-privacy i {
    font-size: 14px;
}

/* ==========================================================================
   Place Order & Proximity Radar Custom UI Components
   ========================================================================== */

/* Glassmorphic Form Card Styling */
.order-desk-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
}

.form-card.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.form-card.glass:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.form-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.form-header h3 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h3 i {
    color: var(--color-accent);
}

/* BUY/SELL Segment Toggle Switch */
.segmented-control {
    display: flex;
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    width: 280px;
    margin-top: 8px;
    overflow: hidden;
}

.segmented-control input[type="radio"] {
    display: none;
}

.segmented-control .action-label {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    z-index: 2;
    transition: all 0.25s ease;
    border-radius: 6px;
    color: var(--text-muted);
}

.segmented-control input[type="radio"]#action-buy:checked ~ .action-label.buy-label {
    color: #fff;
    background: var(--color-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.segmented-control input[type="radio"]#action-sell:checked ~ .action-label.sell-label {
    color: #fff;
    background: var(--color-danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Styled Inputs */
.form-input {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
    background: rgba(10, 15, 30, 0.8);
}

.form-input.text-readonly {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    cursor: not-allowed;
    border-style: dashed;
}

.select-styled {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Submit Action Button */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.btn-trade-submit {
    background: linear-gradient(135deg, hsl(204, 100%, 50%) 0%, hsl(210, 100%, 40%) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
}

.btn-trade-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 145, 255, 0.35);
}

.btn-trade-submit:active {
    transform: translateY(0);
}

/* Proximity Badge styling */
.badge-proximity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-weight: 700;
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-proximity.close {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: var(--shadow-success-glow);
}

.badge-proximity.warning {
    background: rgba(245, 158, 11, 0.15);
    color: hsl(45, 93%, 55%);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-proximity.normal {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

/* Quick Action Button in Table */
.btn-trade-action {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-trade-action:hover {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-trade-action:active {
    transform: translateY(0);
}

/* ==========================================================================
   Automated Swing Trading (Autopilot Bot) Custom Components
   ========================================================================== */

.autopilot-grid {
    animation: fadeIn 0.4s ease-out;
}

.console-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.console-body::-webkit-scrollbar {
    width: 6px;
}

.console-body::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.console-line {
    margin-bottom: 6px;
    white-space: pre-wrap;
    word-break: break-all;
}

.console-line.info {
    color: #38bdf8; /* sky-400 */
}

.console-line.success {
    color: #4ade80; /* green-400 */
}

.console-line.warning {
    color: #fbbf24; /* amber-400 */
}

.console-line.danger {
    color: #f87171; /* red-400 */
}

.console-line.scan {
    color: #c084fc; /* purple-400 */
}

.bot-icon-container {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bot-icon-container.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.bot-icon-container.active i {
    color: #4ade80 !important;
    animation: pulseRobot 1.5s infinite ease-in-out;
}

@keyframes pulseRobot {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-panel {
    transition: all 0.3s ease;
}

.status-panel.active {
    background: rgba(16, 185, 129, 0.05) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* Override vertical scroll for Autopilot Bot executions log table to scroll the full tab instead */
#tab-auto-pilot .table-container {
    flex: none;
    overflow-y: visible;
    min-height: auto;
}

/* ==========================================================================
   Responsive & Adaptive Layouts (Desktop, iPad, iPhone, and Android)
   ========================================================================== */

@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        padding: 8px 12px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 6px;
    }

    .sidebar.collapsed {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .sidebar-primary {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 0 6px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .sidebar-brand {
        display: none;
    }

    .parent-menu-list {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px 0;
    }

    .parent-menu-item {
        flex-direction: row;
        width: auto;
        height: auto;
        padding: 6px 12px;
        border-radius: 20px;
        gap: 6px;
    }

    .parent-menu-item i {
        font-size: 14px;
    }

    .parent-menu-item span {
        font-size: 10px;
    }

    .sidebar-secondary {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        padding: 0;
        background-color: transparent;
    }

    .submenu-header {
        display: none;
    }

    .submenu-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        gap: 6px;
        width: 100%;
        padding: 6px 0 2px 0;
        scrollbar-width: none;
    }

    .submenu-list::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        padding: 6px 12px;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: 20px;
    }

    .sidebar-secondary-footer {
        display: none;
    }

    .main-content {
        padding: 16px;
        height: calc(100vh - 140px);
        overflow-y: auto;
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        margin-bottom: 16px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        padding: 8px 12px;
    }

    .logo-area {
        gap: 8px;
    }

    .logo-title {
        font-size: 16px;
    }

    .main-content {
        padding: 12px;
        height: calc(100vh - 130px);
    }

    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 16px;
    }

    .header-left h1 {
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .demo-toggle-container {
        font-size: 11px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
        flex-grow: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   New Custom Features: Sidebar Brand Header & Profile dropdown / Modal
   ========================================================================== */

/* Sidebar Header & Brand */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    height: 70px;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-secondary);
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 16px 0;
}

.sidebar-header .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar.collapsed .sidebar-header .logo-area {
    display: none !important;
}

.sidebar-header .logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 145, 255, 0.2));
}

.sidebar-header .logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-header .logo-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    letter-spacing: -0.2px;
}

.sidebar-header .logo-subtitle {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.sidebar-header .toggle-btn {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.sidebar-header .toggle-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Sidebar Body container to hold primary and secondary */
.sidebar-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 992px) {
    .sidebar-header {
        display: none !important;
    }
    .sidebar-body {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
    }
}

/* Profile Dropdown Container */
.profile-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.profile-trigger:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 145, 255, 0.3);
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.profile-chevron {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.profile-trigger:hover .profile-chevron {
    color: var(--text-primary);
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-user-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-username-label {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-username-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.dropdown-item i {
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.dropdown-item.danger {
    color: #f43f5e;
}

.dropdown-item.danger:hover {
    background-color: rgba(244, 63, 94, 0.08);
    color: #fca5a5;
}

/* Modal Overlay & Content styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow-y: auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.modal-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-sizing: border-box;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden !important;
    margin: auto !important;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-secondary);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    outline: none;
    line-height: 1;
    padding: 0;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

/* Forms in Modal */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    background-color: rgba(7, 9, 14, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.password-input-container input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.15);
    background-color: rgba(7, 9, 14, 0.8);
}

.toggle-pwd-visibility {
    position: absolute;
    right: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.toggle-pwd-visibility:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

/* Alert Boxes in Modal */
.error-msg {
    background-color: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.success-msg {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Holding Sell Recommendation Badges */
.badge-hold {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}
.badge-sell-target {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}
.badge-sell-sl {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}
.badge-sell-rsi {
    background: rgba(249, 115, 22, 0.1) !important;
    color: #f97316 !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.1);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}




