/* Enhanced Positions Styling */
.position-item {
    transition: all 0.3s ease;
}

.position-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#mark-price-BTCUSDT, #mark-price-ETHUSDT, #mark-price-BNBUSDT,
[id^="mark-price-"] {
    transition: color 0.3s ease;
}

#pnl-BTCUSDT, #pnl-ETHUSDT, #pnl-BNBUSDT,
[id^="pnl-"] {
    transition: color 0.3s ease;
}

.trailing-stop-info {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profit-level {
    transition: background-color 0.3s ease;
}

.profit-level.reached {
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.5);
}

.position-actions button {
    transition: all 0.2s ease;
}

.position-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.position-actions button:active {
    transform: translateY(0);
}

/* Connection status styles */
#connection-status {
    transition: all 0.3s ease;
    font-weight: bold;
}

#connection-status:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: currentColor;
    animation: pulse 2s infinite;
}

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