/* --- General Body & Theme --- */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #0c1021;
    background-image: radial-gradient(circle at top left, rgba(14, 165, 233, 0.15), transparent 30%), radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.1), transparent 40%);
}

.glassmorphism { 
    background: rgba(23, 28, 52, 0.6); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-track { background: #1f2937; }
::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* --- Buttons & Tabs --- */
.timeframe-button, .tab-button, .leverage-preset-button, button {
    transition: all 0.2s ease-in-out;
}
.timeframe-button:hover, .tab-button:hover, .leverage-preset-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.timeframe-button.active, .tab-button[data-active="true"] { 
    background-color: #0ea5e9;
    color: #ffffff; 
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

/* --- Position & Order Cards --- */
.position-card {
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid;
    transition: all 0.3s ease;
    width: 320px;
}
.position-card-long { border-color: rgba(34, 197, 94, 0.3); }
.position-card-short { border-color: rgba(239, 68, 68, 0.3); }

.pos-symbol-btn, .order-symbol-btn {
    transition: all 0.2s ease;
}
.pos-symbol-btn:hover, .order-symbol-btn:hover {
    cursor: pointer;
    filter: brightness(1.2);
    color: #0ea5e9;
}

.positions-list-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- RSI Dashboard Meter --- */
.rsi-meter-bg {
    background-color: #374151;
    border-radius: 0.375rem;
    height: 8px;
    width: 100%;
    overflow: hidden;
}

.rsi-meter-bar {
    height: 100%;
    border-radius: 0.375rem;
    transition: width 0.3s ease-in-out;
}

/* --- Form Inputs --- */
input[type=number], input[type=text], select {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    width: 100%;
    transition: all 0.2s ease-in-out;
}
input[type=number]:focus, input[type=text]:focus, select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.4);
}

/* --- Modal & Toasts --- */
.modal-overlay { 
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); z-index: 40;
    display: none; justify-content: center; align-items: center;
    transition: opacity 0.3s ease;
}
.modal-overlay.show { display: flex; }

.toast { 
    transition: transform 0.5s ease, opacity 0.5s ease; 
    transform: translateX(100%); 
    opacity: 0; 
}
.toast.show { 
    transform: translateX(0); 
    opacity: 1; 
}

/* --- Volume Profile Styles --- */
.volume-profile-chart {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-around;
    padding: 4px 0;
}

.vp-bar-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.vp-bar {
    height: 100%;
    background-color: rgba(75, 85, 99, 0.5); /* gray-600 with opacity */
    border-left: 1px solid rgba(156, 163, 175, 0.5);
    transition: width 0.3s ease-in-out;
}
.vp-bar.value-area {
    background-color: rgba(59, 130, 246, 0.4); /* blue-500 with opacity */
}
.vp-bar.poc {
    background-color: rgba(251, 191, 36, 0.6); /* amber-400 with opacity */
}

.vp-price-label {
    position: absolute;
    right: 5px;
    font-size: 10px;
    color: #d1d5db;
    text-shadow: 1px 1px 2px #000;
}

/* --- Trading Sessions Styles --- */
#activeSessionsDisplay span {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#sessionLevelsContainer .font-mono span {
    font-size: 0.8rem;
}
