38451-vm/assets/css/terminal.css
2026-02-16 08:59:58 +00:00

778 lines
15 KiB
CSS

:root {
--term-bg: #0b0e11;
--term-surface: #161a1e;
--term-border: #2b3139;
--term-text: #eaecef;
--term-muted: #848e9c;
--term-primary: #0062ff;
--term-success: #26a69a;
--term-danger: #ef5350;
--header-height: 70px;
--sidebar-width: 280px;
--orderbook-width: 300px;
}
/* Global Terminal Layout */
.terminal-container {
display: flex;
flex-direction: column;
min-height: calc(100vh - 70px);
height: auto;
background: var(--term-bg);
color: var(--term-text);
}
.terminal-main {
display: flex;
flex: 1;
min-height: calc(100vh - 70px);
}
.terminal-sidebar {
width: var(--sidebar-width);
border-right: 1px solid var(--term-border);
display: flex;
flex-direction: column;
background: var(--term-surface);
height: 100%;
}
.terminal-content {
flex: 1;
display: flex;
flex-direction: column;
border-right: 1px solid var(--term-border);
background: var(--term-bg);
}
.terminal-right-sidebar {
width: var(--orderbook-width);
border-left: 1px solid var(--term-border);
background: var(--term-surface);
height: 100%;
}
.sidebar-tabs {
display: flex;
height: 60px;
border-bottom: 1px solid var(--term-border);
background: var(--term-surface);
}
.sidebar-tabs .terminal-tab {
flex: 1;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
border-right: 1px solid var(--term-border);
color: var(--term-muted);
text-decoration: none;
font-weight: 600;
transition: all 0.2s;
}
.sidebar-tabs .terminal-tab:hover {
color: var(--term-text);
background: rgba(255,255,255,0.03);
}
.sidebar-tabs .terminal-tab.active {
background: var(--term-bg);
color: var(--term-primary);
border-bottom: 2px solid var(--term-primary);
}
.sidebar-tabs .terminal-tab:last-child {
border-right: none;
}
.sidebar-search {
padding: 10px 12px;
border-bottom: 1px solid var(--term-border);
height: 60px;
display: flex;
align-items: center;
background: var(--term-surface);
}
.sidebar-search input {
background: #0b0e11;
border: 1px solid var(--term-border);
color: #fff;
width: 100%;
height: 38px;
padding: 0 12px;
border-radius: 4px;
font-size: 12px;
outline: none;
transition: all 0.2s;
}
.content-header {
height: 65px;
border-bottom: 1px solid var(--term-border);
display: flex;
align-items: center;
padding: 0 20px;
gap: 30px;
background: var(--term-surface);
}
.kline-container {
flex: 1;
min-height: 500px; /* Increased height for better preview */
background: #000;
position: relative;
border-bottom: 1px solid var(--term-border);
padding: 5px 0; /* Added a bit of padding to avoid edges */
}
.trading-panels {
padding: 15px 20px;
background: var(--term-surface);
border-bottom: 1px solid var(--term-border);
}
.binary-order-panel .cycle-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
margin-bottom: 15px;
}
.cycle-btn {
min-height: 55px;
padding: 8px 4px;
/* ... existing styles ... */
}
.sidebar-search input {
background: #0b0e11;
border: 1px solid var(--term-border);
color: #fff;
width: 100%;
padding: 8px 15px;
border-radius: 8px;
font-size: 13px;
outline: none;
transition: border-color 0.2s;
}
.sidebar-search input:focus {
border-color: var(--term-primary);
}
/* Order Book Beautification */
.order-book {
display: flex;
flex-direction: column;
height: 100%;
font-family: 'Roboto Mono', 'Noto Sans SC', monospace;
background: #0b0e11;
}
.ob-header {
display: flex;
justify-content: space-between;
padding: 12px 15px;
font-size: 11px;
color: #848e9c;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 1px solid var(--term-border);
}
.ob-list {
flex: 1;
display: flex;
flex-direction: column;
}
.ob-row {
display: flex;
justify-content: space-between;
padding: 2px 15px;
font-size: 12px;
position: relative;
cursor: pointer;
}
.ob-mid-price {
padding: 10px 15px;
text-align: left;
background: rgba(0,0,0,0.4);
border-top: 1px solid var(--term-border);
border-bottom: 1px solid var(--term-border);
}
.ob-mid-price .val {
font-size: 18px;
font-weight: 700;
display: block;
}
.ob-row:hover {
background: rgba(255,255,255,0.05);
}
.ob-row .price { font-weight: 600; z-index: 2; }
.asks .price { color: #f6465d; }
.bids .price { color: #0ecb81; }
.ob-row .amount { color: #eaecef; opacity: 0.9; z-index: 2; }
.ob-row-bg {
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 1;
opacity: 0.1;
transition: width 0.3s ease;
}
.asks .ob-row-bg { background: #f6465d; }
.bids .ob-row-bg { background: #0ecb81; }
.ob-mid-price {
padding: 15px;
text-align: left;
background: rgba(0,0,0,0.3);
border-top: 1px solid var(--term-border);
border-bottom: 1px solid var(--term-border);
}
.ob-mid-price .val {
font-size: 20px;
font-weight: 700;
display: block;
}
/* Order Panel Records */
.order-history table {
border-collapse: separate;
border-spacing: 0;
}
.order-history th {
font-weight: 600;
text-transform: uppercase;
font-size: 10px;
letter-spacing: 0.5px;
color: var(--term-muted);
padding: 10px;
}
.order-history td {
padding: 12px 10px;
border-bottom: 1px solid rgba(255,255,255,0.03);
}
.order-history tr:hover td {
background: rgba(255,255,255,0.02);
}
.terminal-tab {
padding: 0 24px;
height: 100%;
display: flex;
align-items: center;
color: var(--term-muted);
text-decoration: none !important;
font-weight: 600;
font-size: 14px;
border-right: 1px solid var(--term-border);
transition: all 0.2s;
}
.terminal-tab:hover {
color: var(--term-text);
background: rgba(255,255,255,0.05);
}
.terminal-tab.active {
background: var(--term-bg);
color: var(--term-primary);
border-bottom: 2px solid var(--term-primary);
}
/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
.terminal-main {
flex-direction: column;
height: auto;
overflow-y: auto;
padding-bottom: 120px; /* Ensure records are not covered by bottom nav */
}
.terminal-sidebar {
position: fixed;
left: -100%;
top: 0;
width: 80%;
height: 100%;
z-index: 1050;
transition: left 0.3s ease;
box-shadow: 10px 0 20px rgba(0,0,0,0.5);
}
.terminal-sidebar.active {
left: 0;
}
.terminal-sidebar-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.7);
z-index: 1040;
display: none;
}
.terminal-sidebar-overlay.active {
display: block;
}
.terminal-right-sidebar {
display: none; /* Hide order book on mobile by default to save space */
}
.terminal-content {
width: 100%;
border-right: none;
}
.content-header {
padding: 10px;
gap: 10px;
height: auto;
flex-wrap: wrap;
}
.header-pair {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
}
.header-stat {
font-size: 11px;
}
.kline-container {
min-height: 350px;
height: 350px;
}
.trading-panels {
padding: 10px;
}
.cycle-grid {
grid-template-columns: repeat(3, 1fr);
}
.order-history {
height: auto;
min-height: 400px;
}
.sidebar-tabs {
display: none; /* We will use a different top switcher on mobile */
}
/* Mobile Top Switcher */
.mobile-type-switcher {
display: flex;
background: var(--term-surface);
padding: 5px;
gap: 5px;
border-bottom: 1px solid var(--term-border);
}
.mobile-type-switcher a {
flex: 1;
text-align: center;
padding: 8px 0;
font-size: 12px;
color: var(--term-muted);
text-decoration: none;
border-radius: 4px;
background: rgba(255,255,255,0.03);
}
.mobile-type-switcher a.active {
background: var(--term-primary);
color: #fff;
}
.mobile-pair-toggle {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
}
/* Make trading panels more mobile-friendly */
.order-form-container .col-6 {
width: 100%; /* Stack Buy/Sell on very small screens or keep as is? */
}
@media (max-width: 576px) {
.order-form-container .col-6 {
width: 100%;
}
.binary-order-panel .col-6 {
width: 100%;
}
.binary-order-panel .btn-buy-sell {
margin-bottom: 10px;
}
}
.btn-buy-sell {
font-size: 18px !important;
padding: 15px !important;
text-transform: uppercase;
letter-spacing: 1px;
}
.cycle-grid {
gap: 5px;
}
.cycle-btn {
padding: 8px 2px;
}
}
@media (min-width: 769px) {
.mobile-type-switcher {
display: none;
}
}
.sidebar-search {
padding: 12px;
border-bottom: 1px solid var(--term-border);
height: 60px;
display: flex;
align-items: center;
}
.sidebar-search input {
background: #2b3139;
border: 1px solid var(--term-border);
color: #fff;
width: 100%;
padding: 6px 12px;
border-radius: 4px;
font-size: 13px;
outline: none;
}
.coin-list-container {
flex: 1;
overflow-y: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}
.coin-list-container::-webkit-scrollbar {
display: none;
}
.coin-row {
padding: 10px 15px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
border-bottom: 1px solid rgba(255,255,255,0.02);
transition: background 0.2s;
}
.coin-row:hover {
background: rgba(255,255,255,0.05);
}
.coin-row img {
width: 20px;
height: 20px;
margin-right: 10px;
}
.coin-row .symbol {
font-weight: 600;
font-size: 13px;
}
.coin-row .change {
font-size: 11px;
margin-left: 5px;
}
.coin-row .price {
font-size: 13px;
font-weight: 500;
}
.content-header {
height: 60px;
border-bottom: 1px solid var(--term-border);
display: flex;
align-items: center;
padding: 0 20px;
gap: 30px;
}
.kline-container {
flex: 1;
min-height: 450px;
background: #000;
position: relative;
border-bottom: 1px solid var(--term-border);
}
.trading-panels {
padding: 15px 20px;
background: var(--term-surface);
}
.terminal-content {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.order-history {
height: 350px;
border-top: 1px solid var(--term-border);
background: var(--term-surface);
overflow-y: auto;
}
/* Binary Order Panel Improvements */
.cycle-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 8px;
background: transparent;
border: none;
padding: 0;
margin-bottom: 20px;
}
.cycle-btn {
background: #1e2329;
border: 1px solid var(--term-border);
color: var(--term-muted);
padding: 10px 4px;
font-size: 11px;
font-weight: 700;
border-radius: 8px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
min-height: 55px;
cursor: pointer;
}
.cycle-btn:hover {
background: #2b3139;
border-color: var(--term-primary);
color: #fff;
transform: translateY(-2px);
}
.cycle-btn.active {
background: linear-gradient(135deg, var(--term-primary), #004ecc);
border-color: var(--term-primary);
color: #fff;
box-shadow: 0 4px 15px rgba(0, 98, 255, 0.3);
}
.cycle-btn .cycle-time { font-size: 13px; }
.cycle-btn .cycle-profit { font-size: 10px; opacity: 0.8; }
.amount-input-wrapper input {
height: 44px;
font-size: 16px;
font-weight: 700;
text-align: center;
border-radius: 8px;
background: #0b0e11 !important;
border: 1px solid var(--term-border) !important;
color: #fff !important;
}
.amount-input-wrapper input:focus {
border-color: var(--term-primary) !important;
box-shadow: 0 0 0 1px var(--term-primary) !important;
}
.binary-order-panel .btn-buy-sell {
height: 60px; /* Reduced height as requested */
border-radius: 12px;
transition: all 0.2s;
border: none;
position: relative;
overflow: hidden;
}
.binary-order-panel .btn-buy-sell:active {
transform: scale(0.98);
}
.btn-success.btn-buy-sell {
background: linear-gradient(135deg, #26a69a, #1b8076);
box-shadow: 0 4px 12px rgba(38, 166, 154, 0.2);
}
.btn-danger.btn-buy-sell {
background: linear-gradient(135deg, #ef5350, #c62828);
box-shadow: 0 4px 12px rgba(239, 83, 80, 0.2);
}
/* Ensure history is visible */
.terminal-content {
display: flex;
flex-direction: column;
height: 100%;
}
.kline-container {
flex: 1;
min-height: 300px; /* Allow it to shrink slightly to show more history */
}
.order-history {
height: 450px; /* Increased height as requested */
border-top: 1px solid var(--term-border);
background: var(--term-surface);
}
.trading-panels {
padding: 15px 20px;
border-bottom: 1px solid var(--term-border);
}
/* Enhanced Balance and Profit visibility */
.balance-highlight {
color: #0062ff !important;
text-shadow: 0 0 10px rgba(0, 98, 255, 0.3);
}
.profit-highlight {
color: #26a69a !important;
font-size: 1.1rem;
text-shadow: 0 0 10px rgba(38, 166, 154, 0.3);
}
/* Order Countdown Popup */
.order-popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(5px);
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
}
.order-popup {
background: #1e2329;
width: 360px;
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 40px rgba(0,0,0,0.5);
text-align: center;
border: 1px solid rgba(255,255,255,0.05);
}
.order-popup h5 {
color: #848e9c;
font-size: 16px;
margin-bottom: 30px;
}
.countdown-circle {
position: relative;
width: 160px;
height: 160px;
margin: 0 auto 30px;
}
.countdown-circle svg {
width: 160px;
height: 160px;
transform: rotate(-90deg);
}
.countdown-circle circle {
fill: none;
stroke-width: 8;
}
.countdown-circle .bg {
stroke: #2b3139;
}
.countdown-circle .progress {
stroke: #26a69a;
stroke-linecap: round;
transition: stroke-dashoffset 1s linear;
}
.countdown-circle .time-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 36px;
font-weight: 700;
color: #fff;
}
.popup-details {
background: rgba(255,255,255,0.03);
border-radius: 12px;
padding: 15px;
margin-bottom: 20px;
}
.popup-row {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
font-size: 13px;
}
.popup-row .label { color: #848e9c; }
.popup-row .value { color: #eaecef; font-weight: 600; }
.popup-footer {
font-size: 11px;
color: #5e6673;
}