:root{--bg-app: #0b0c0f;--bg-sidebar: #111216;--bg-card: #16171c;--bg-card-hover: #1c1d24;--bg-input: #0f1014;--bg-modal: #1a1b21;--bg-highlight: rgba(255, 255, 255, .03);--primary: #3b82f6;--primary-dark: #2563eb;--primary-glow: rgba(59, 130, 246, .4);--primary-dim: rgba(59, 130, 246, .1);--sidebar-gradient: linear-gradient(180deg, rgba(59, 130, 246, .15) 0%, rgba(11, 12, 15, 0) 100%);--color-profit: #00d2a0;--bg-profit: rgba(0, 210, 160, .12);--border-profit: rgba(0, 210, 160, .3);--color-loss: #ff4d4f;--bg-loss: rgba(255, 77, 79, .12);--border-loss: rgba(255, 77, 79, .3);--color-warning: #f59e0b;--bg-warning: rgba(245, 158, 11, .12);--text-main: #ececf1;--text-secondary: #a1a1aa;--text-muted: #71717a;--space-xs: 4px;--space-sm: 8px;--space-md: 16px;--space-lg: 24px;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 16px;--border-color: rgba(255, 255, 255, .08);--shadow-card: 0 4px 20px rgba(0,0,0,.4);--shadow-neon: 0 0 10px var(--primary-glow);--glass-effect: blur(10px)}*{box-sizing:border-box;outline:none}body{margin:0;padding:0;font-family:Inter,Segoe UI,Roboto,sans-serif;background-color:var(--bg-app);color:var(--text-main);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;background-image:radial-gradient(rgba(59,130,246,.05) 1px,transparent 1px);background-size:30px 30px}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-app);border-left:1px solid var(--border-color)}::-webkit-scrollbar-thumb{background:#333;border-radius:4px;border:2px solid var(--bg-app)}::-webkit-scrollbar-thumb:hover{background:var(--primary)}a{text-decoration:none;color:inherit;transition:.2s}h1,h2,h3,h4,h5{margin:0 0 10px;font-weight:700;color:var(--text-main)}.page-title{font-size:1.6rem;font-weight:800;margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;gap:12px;letter-spacing:-.5px}.page-title:before{content:"";width:4px;height:24px;background:var(--primary);box-shadow:0 0 10px var(--primary)}.section-title{font-size:1rem;color:var(--text-secondary);margin:25px 0 15px;text-transform:uppercase;letter-spacing:1px;font-weight:600;display:flex;align-items:center;gap:8px}.section-title:after{content:"";flex:1;height:1px;background:var(--border-color);opacity:.5}.text-success{color:var(--color-profit)!important}.text-danger{color:var(--color-loss)!important}.text-warning{color:var(--color-warning)!important}.text-muted{color:var(--text-muted)!important}.font-mono{font-family:JetBrains Mono,monospace}.font-bold{font-weight:700}.layout{display:flex;min-height:100vh}.sidebar-wrapper{width:270px;background-color:var(--bg-sidebar);background:linear-gradient(160deg,#111216,#0d0e11);border-right:1px solid var(--border-color);height:100vh;position:sticky;top:0;z-index:1000;display:flex;flex-direction:column;flex-shrink:0;box-shadow:5px 0 30px #00000080}.content{flex:1;padding:30px;width:100%;max-width:1800px;margin:0 auto;overflow-x:hidden}.sidebar{padding:25px;height:100%;display:flex;flex-direction:column}.sidebar .logo{font-size:1.5rem;font-weight:900;color:#fff;margin-bottom:40px;display:flex;align-items:center;gap:12px;text-shadow:0 0 20px rgba(59,130,246,.5);letter-spacing:-.5px;padding-bottom:20px;border-bottom:1px solid rgba(255,255,255,.05)}.sidebar .logo i{color:var(--primary);filter:drop-shadow(0 0 8px var(--primary))}.main-nav{display:flex;flex-direction:column;gap:8px}.nav-link{display:flex;align-items:center;padding:14px 18px;color:var(--text-secondary);font-weight:600;border-radius:var(--radius-md);transition:all .3s cubic-bezier(.4,0,.2,1);font-size:.95rem;position:relative;overflow:hidden;border:1px solid transparent}.nav-link i{margin-right:14px;font-size:1.2rem;width:24px;text-align:center;transition:.3s;opacity:.7}.nav-link:hover{background:#ffffff08;color:#fff;border-color:#ffffff1a;transform:translate(5px)}.nav-link:hover i{color:var(--primary);opacity:1;transform:scale(1.1)}.nav-link.active{background:#3b82f626;color:#fff;border:1px solid rgba(59,130,246,.4);box-shadow:0 0 20px #3b82f626}.nav-link.active:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--primary);box-shadow:2px 0 10px var(--primary)}.nav-link.active i{color:var(--primary);opacity:1}.settings-section{margin-top:auto;padding-top:20px;border-top:1px solid var(--border-color)}.card{background-color:var(--bg-card);border-radius:var(--radius-lg);border:1px solid var(--border-color);padding:20px;margin-bottom:20px;box-shadow:var(--shadow-card);position:relative}.page-header-actions{display:flex;justify-content:space-between;align-items:center;background:var(--bg-card);padding:15px 20px;border-radius:var(--radius-lg);border:1px solid var(--border-color);margin-bottom:20px;gap:15px}.bot-list-compact{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:20px;margin-top:20px}.compact-card{background:linear-gradient(145deg,var(--bg-card) 0%,#121216 100%);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:20px;transition:all .3s ease;cursor:pointer;position:relative;overflow:hidden}.compact-card:hover{transform:translateY(-5px);border-color:var(--primary);box-shadow:0 10px 30px -10px #3b82f64d}.card-border-profit{border-top:3px solid var(--color-profit);border-left:1px solid var(--border-color)}.card-border-loss{border-top:3px solid var(--color-loss);border-left:1px solid var(--border-color)}.bot-card-header{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--border-color);padding-bottom:10px;margin-bottom:10px}.symbol-pair{font-size:1.3rem;font-weight:800;color:#fff;display:block}.strategy-name{font-size:.75rem;color:var(--primary);background:var(--primary-dim);padding:2px 8px;border-radius:4px;margin-top:4px;display:inline-block}.tag{font-size:.7rem;font-weight:700;padding:4px 8px;border-radius:4px;text-transform:uppercase;letter-spacing:.5px}.tag-success{background:var(--bg-profit);color:var(--color-profit);border:1px solid var(--border-profit)}.tag-danger{background:var(--bg-loss);color:var(--color-loss);border:1px solid var(--border-loss)}.tag-warning{background:var(--bg-warning);color:var(--color-warning)}.stats-group-compact{display:grid;grid-template-columns:repeat(4,1fr);background:#0003;padding:10px;border-radius:var(--radius-md);gap:5px}.stats-group-compact .stat-card{padding:0;border:none;background:transparent;text-align:center;box-shadow:none;min-width:0}.stats-group-compact .stat-card-title{font-size:.65rem;opacity:.6;margin-bottom:2px}.stats-group-compact .stat-card-value{font-size:.95rem;font-weight:600}.bot-actions-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:15px;padding-top:10px;border-top:1px solid var(--border-color)}.stats-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-top:20px}.stat-card{background:var(--bg-card);padding:20px;border-radius:var(--radius-lg);border:1px solid var(--border-color);position:relative;display:flex;flex-direction:column;box-shadow:var(--shadow-card)}.stat-card:after{content:"";position:absolute;top:15%;bottom:15%;left:0;width:4px;background:var(--text-muted);border-radius:0 4px 4px 0}.stat-card-success:after{background:var(--color-profit);box-shadow:0 0 8px var(--color-profit)}.stat-card-danger:after{background:var(--color-loss);box-shadow:0 0 8px var(--color-loss)}.stat-card-title{font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}.stat-card-value{font-size:1.8rem;font-weight:700;color:#fff;line-height:1.2}.form-section-box{background:#ffffff05;border:1px solid var(--border-color);border-radius:var(--radius-md);padding:20px;margin-bottom:20px}.form-section-title{font-size:.9rem;color:var(--primary);font-weight:700;margin-bottom:15px;display:block;text-transform:uppercase}input[type=text],input[type=number],input[type=password],input[type=date],select,textarea{width:100%;padding:11px 15px;background:var(--bg-input);border:1px solid var(--border-color);border-radius:var(--radius-sm);color:#fff;font-size:.95rem;margin-top:5px;transition:all .2s}input:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-dim);background:#15161a}.form-label{display:block;margin-bottom:4px;font-size:.85rem;color:var(--text-secondary)}.form-group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-bottom:15px}button{cursor:pointer;border:none;padding:10px 20px;border-radius:var(--radius-sm);font-weight:600;font-size:.9rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s}button:active{transform:scale(.98)}.btn-primary{background:var(--primary);color:#fff;box-shadow:0 4px 15px #3b82f64d}.btn-primary:hover{background:var(--primary-dark);transform:translateY(-1px)}.btn-success{background:var(--color-profit);color:#fff}.btn-danger{background:var(--color-loss);color:#fff}.btn-secondary{background:#ffffff0d;color:var(--text-main);border:1px solid var(--border-color)}.btn-secondary:hover{background:#ffffff1a}.btn-sm{padding:6px 12px;font-size:.8rem}.table-responsive{overflow-x:auto;background:var(--bg-card);border-radius:var(--radius-lg);border:1px solid var(--border-color);box-shadow:var(--shadow-card);-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse}thead th{background:#0000004d;color:var(--text-secondary);font-size:.75rem;text-transform:uppercase;letter-spacing:.5px;padding:10px 12px;text-align:left;font-weight:600;border-bottom:1px solid var(--border-color);white-space:normal!important;vertical-align:bottom;line-height:1.2;max-width:100px;word-wrap:break-word}tbody td{padding:10px 12px;border-bottom:1px solid var(--border-color);color:var(--text-main);font-size:.9rem;vertical-align:middle;font-family:var(--font-mono);white-space:nowrap}tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:#ffffff05}.text-pnl-pos{color:var(--color-profit);font-weight:700}.text-pnl-neg{color:var(--color-loss);font-weight:700}.trade-long{color:var(--color-profit);font-weight:700;background:var(--bg-profit);padding:2px 6px;border-radius:4px;font-size:.8rem}.trade-short{color:var(--color-loss);font-weight:700;background:var(--bg-loss);padding:2px 6px;border-radius:4px;font-size:.8rem}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000d9;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:5000;display:flex;justify-content:center;align-items:center;opacity:0;animation:fadeIn .3s forwards}.modal-content{background:var(--bg-modal);width:95%;max-width:750px;max-height:90vh;overflow-y:auto;border-radius:var(--radius-lg);border:1px solid var(--border-color);box-shadow:0 20px 50px #00000080;transform:scale(.95);animation:popIn .3s forwards}.modal-header{padding:15px 20px;background:#ffffff05;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:center}.modal-close-button{width:32px;height:32px;border-radius:50%;background:#ffffff0d;border:none;color:var(--text-muted);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s;font-size:1.2rem}.modal-close-button:hover{background:var(--color-loss);color:#fff;transform:rotate(90deg);box-shadow:0 0 10px var(--color-loss)}.mobile-header{display:none}@media (max-width: 1024px){.layout{flex-direction:column}.sidebar-wrapper{display:none}}@media (max-width: 768px){body{padding-top:70px;padding-bottom:30px}.content{padding:15px;width:100%}.sidebar-wrapper{display:block!important;position:fixed;top:0;left:0;width:100%;height:auto!important;background:#0f1014fa;border-bottom:1px solid var(--border-color);z-index:9000;padding:0;box-shadow:0 4px 10px #0000004d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.sidebar{flex-direction:row;padding:5px 15px;height:65px;width:100%;gap:15px;align-items:center}.sidebar .logo{margin:0;font-size:1.2rem;white-space:nowrap;border:none;padding:0}.main-nav{flex-direction:row;flex:1;overflow-x:auto;overflow-y:hidden;white-space:nowrap;align-items:center;gap:10px;scrollbar-width:none;padding-right:10px}.main-nav::-webkit-scrollbar{display:none}.nav-link{padding:8px 14px;background:#ffffff0d;border-radius:20px;font-size:.85rem;border:1px solid var(--border-color);margin:0}.nav-link i{margin-right:6px;font-size:1rem;width:auto}.nav-link:hover{transform:none}.nav-link.active{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 2px 8px #3b82f666}.nav-link.active:before{display:none}.settings-section{display:none}.modal-overlay{align-items:flex-start;padding-top:20px}.modal-content{max-height:95vh;margin-top:20px;margin-bottom:20px}.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid var(--border-color);background:var(--bg-card)}table{display:table;width:100%;min-width:600px}thead{display:table-header-group}tbody{display:table-row-group}tr{display:table-row;background:transparent!important;margin:0;border:none}th,td{display:table-cell;width:auto;padding:10px;text-align:left}thead th{font-size:.7rem;padding:8px 10px;white-space:normal;max-width:80px}tbody td:before{content:none!important}tbody td:last-child{grid-column:auto;border-top:none;padding-top:10px;margin:0;flex-direction:row;display:table-cell;font-size:.9rem}.bot-list-compact{grid-template-columns:1fr}.stats-group{grid-template-columns:1fr 1fr}.page-header-actions{flex-direction:column}.page-header-actions button{width:100%}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes popIn{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes slideUpFade{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulseGreen{0%{box-shadow:0 0 #00d2a066}70%{box-shadow:0 0 0 6px #00d2a000}to{box-shadow:0 0 #00d2a000}}@keyframes pulseRed{0%{box-shadow:0 0 #ff4d4f66}70%{box-shadow:0 0 0 6px #ff4d4f00}to{box-shadow:0 0 #ff4d4f00}}@keyframes spin{to{transform:rotate(360deg)}}.animate-fade-in{animation:fadeIn .5s ease-out forwards}.animate-slide-up{animation:slideUpFade .5s ease-out forwards}.pulse-success{animation:pulseGreen 2s infinite}.pulse-danger{animation:pulseRed 2s infinite}.toggle-switch{position:relative;display:inline-block;width:42px;height:24px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--bg-input);border:1px solid var(--border-color);transition:.4s;border-radius:24px}.toggle-slider:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:3px;background-color:var(--text-muted);transition:.4s;border-radius:50%}input:checked+.toggle-slider{background-color:var(--primary);border-color:var(--primary)}input:checked+.toggle-slider:before{transform:translate(18px);background-color:#fff}.custom-checkbox{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:.9rem}.custom-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark{height:18px;width:18px;background-color:var(--bg-input);border:1px solid var(--border-color);border-radius:4px;margin-right:10px;position:relative;transition:all .2s}.custom-checkbox:hover input~.checkmark{border-color:var(--text-secondary)}.custom-checkbox input:checked~.checkmark{background-color:var(--primary);border-color:var(--primary)}.checkmark:after{content:"";position:absolute;display:none}.custom-checkbox input:checked~.checkmark:after{display:block}.custom-checkbox .checkmark:after{left:6px;top:2px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert{padding:12px 16px;border-radius:var(--radius-md);margin-bottom:20px;border:1px solid transparent;display:flex;align-items:flex-start;gap:12px;font-size:.9rem;line-height:1.5}.alert i{font-size:1.1rem;margin-top:2px}.alert-info{background:#3b82f61a;border-color:#3b82f633;color:#60a5fa}.alert-success{background:#00d2a01a;border-color:#00d2a033;color:#34d399}.alert-warning{background:#f59e0b1a;border-color:#f59e0b33;color:#fbbf24}.alert-danger{background:#ff4d4f1a;border-color:#ff4d4f33;color:#f87171}[data-tooltip]{position:relative;cursor:help}[data-tooltip]:hover:after{content:attr(data-tooltip);position:absolute;bottom:100%;left:50%;transform:translate(-50%) translateY(-8px);background:#222;color:#fff;padding:5px 10px;border-radius:4px;font-size:.75rem;white-space:nowrap;z-index:1000;box-shadow:0 4px 10px #00000080;pointer-events:none;border:1px solid var(--border-color)}.loader-spinner{border:3px solid rgba(255,255,255,.1);border-radius:50%;border-top:3px solid var(--primary);width:24px;height:24px;animation:spin .8s linear infinite}.d-flex{display:flex!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.gap-2{gap:8px!important}.gap-4{gap:16px!important}.text-center{text-align:center!important}.text-right{text-align:right!important}.text-sm{font-size:.85rem!important}.text-xs{font-size:.75rem!important}.uppercase{text-transform:uppercase!important}.font-bold{font-weight:700!important}.bg-dark{background-color:var(--bg-app)!important}.text-primary{color:var(--primary)!important}.text-white{color:#fff!important}.m-0{margin:0!important}.mt-2{margin-top:10px!important}.mt-4{margin-top:20px!important}.mb-2{margin-bottom:10px!important}.mb-4{margin-bottom:20px!important}.p-0{padding:0!important}.p-4{padding:20px!important}.hidden{display:none!important}.block{display:block!important}@media (min-width: 769px){.mobile-only{display:none!important}}@media (max-width: 768px){.desktop-only{display:none!important}}
