/* Ultra-Smart AI Trading Bot - Pink Purple Blue Red Theme */

/* Global pink purple blue red theme enhancements */
:root {
    --bg-primary: #0f0515;
    --bg-secondary: #1a0b2e;
    --bg-tertiary: #2d1b4e;
    --border-primary: #4c2a85;
    --border-accent: #ff6b9d;
    --text-primary: #f8e8ff;
    --text-secondary: #d1a3ff;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-orange: #ff6b9d;
    --accent-gold: #f472b6;
    --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.3);
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a051a 25%, #0f061a 50%, #1a0512 75%, var(--bg-primary) 100%) !important;
    background-attachment: fixed;
    color: var(--text-primary) !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Enhanced glass morphism effect */
.glass {
    background: rgba(26, 11, 46, 0.8) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 157, 0.2);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3), 0 4px 16px rgba(239, 68, 68, 0.2);
}

/* Trading status indicators */
.trading-active {
    animation: pulse 2s infinite;
}

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

/* Price change indicators */
.price-up {
    color: var(--bs-success) !important;
}

.price-down {
    color: var(--bs-danger) !important;
}

.price-neutral {
    color: var(--bs-secondary) !important;
}

/* Strategy button states */
.strategy-btn.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.strategy-btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Enhanced card styling */
.card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    border: 1px solid var(--border-primary) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 107, 157, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    transition: left 0.8s;
}

.card:hover::before {
    left: 100%;
}

.card-header {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(33, 38, 45, 0.8)) !important;
    border-bottom: 1px solid var(--border-primary) !important;
    position: relative;
    z-index: 1;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    opacity: 0.6;
}

/* Enhanced table styling */
.table {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.table th {
    background: linear-gradient(145deg, var(--bg-tertiary), rgba(33, 38, 45, 0.8)) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    border-color: var(--border-primary) !important;
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background: linear-gradient(145deg, rgba(88, 166, 255, 0.05), rgba(165, 163, 255, 0.03)) !important;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Chart container */
#price-chart {
    max-height: 400px;
}

/* Position items */
.position-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #21262d !important;
    border-radius: 0.375rem;
    border-left: 3px solid #1f6feb;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Status badges */
.status-connected {
    background-color: var(--bs-success) !important;
}

.status-disconnected {
    background-color: var(--bs-danger) !important;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn-group-vertical .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table th, .table td {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #0d1117;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Enhanced metric cards */
.metric-card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    border: 1px solid var(--border-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Live price updates with enhanced animations */
.price-live {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.price-live.updated {
    transform: scale(1.08);
    color: #ffc107 !important;
    text-shadow: 0 0 20px currentColor;
}

.price-live::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.price-live.updated::before {
    width: 200px;
    height: 200px;
}

/* Enhanced glow effects */
.glow-text {
    text-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        text-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
        opacity: 1;
    }
    50% { 
        text-shadow: 0 0 25px currentColor, 0 0 35px currentColor, 0 0 45px currentColor;
        opacity: 0.9;
    }
}

/* Enhanced float animation */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateY(-5px) rotate(1deg);
    }
    50% { 
        transform: translateY(-10px) rotate(0deg);
    }
    75% { 
        transform: translateY(-5px) rotate(-1deg);
    }
}

/* Market status badge animations */
@keyframes market-connecting {
    0%, 100% { 
        background-color: #6c757d;
        transform: scale(1);
    }
    50% { 
        background-color: #ffc107;
        transform: scale(1.05);
    }
}

#market-status.connecting {
    animation: market-connecting 1.5s infinite;
}

#market-status.connected {
    background-color: var(--accent-green) !important;
    box-shadow: 0 0 10px rgba(63, 185, 80, 0.5);
}

#market-status.error {
    background-color: #dc3545 !important;
    animation: blink 1s infinite;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-green));
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.metric-card:hover {
    transform: translateY(-4px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(88, 166, 255, 0.2);
}

.metric-card:hover::before {
    transform: translateX(0);
}

/* Enhanced form controls */
.form-control, .form-select {
    background: linear-gradient(145deg, var(--bg-tertiary), rgba(33, 38, 45, 0.8)) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.form-control:focus, .form-select:focus {
    background: linear-gradient(145deg, rgba(33, 38, 45, 0.9), var(--bg-tertiary)) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 
        0 0 0 0.2rem rgba(88, 166, 255, 0.15),
        0 0 20px rgba(88, 166, 255, 0.1) !important;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-secondary) !important;
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Advanced animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 157, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 157, 0.6); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navbar enhancements */
.navbar {
    background: linear-gradient(145deg, var(--bg-secondary), rgba(26, 11, 46, 0.95)) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 2px 20px rgba(168, 85, 247, 0.3);
}

.navbar-brand {
    background: linear-gradient(145deg, var(--accent-orange), var(--accent-purple), var(--accent-red), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Status indicators */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success {
    background: linear-gradient(145deg, var(--accent-green), #238636) !important;
    box-shadow: 0 2px 8px rgba(63, 185, 80, 0.3);
}

.bg-danger {
    background: linear-gradient(145deg, var(--accent-red), #dc2626) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.bg-warning {
    background: linear-gradient(145deg, var(--accent-orange), #d1770f) !important;
    box-shadow: 0 2px 8px rgba(255, 166, 87, 0.3);
    color: #000 !important;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(88, 166, 255, 0.3);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--border-primary), #484f58);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #484f58, var(--accent-blue));
}

/* Chart container enhancements */
#price-chart {
    max-height: 400px;
    border-radius: 10px;
    background: rgba(22, 27, 34, 0.5);
    padding: 10px;
}

/* Ultra-Smart One-Touch Trading Interface */
.one-touch-trading {
    background: linear-gradient(135deg, 
        rgba(31, 111, 235, 0.9) 0%, 
        rgba(88, 166, 255, 0.8) 35%,
        rgba(165, 163, 255, 0.7) 70%,
        rgba(31, 111, 235, 0.9) 100%) !important;
    border: 2px solid var(--accent-blue);
    box-shadow: 
        0 20px 60px rgba(31, 111, 235, 0.4),
        0 0 40px rgba(88, 166, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.one-touch-trading::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.one-touch-trading .card-header {
    background: rgba(0,0,0,0.2);
    border: none;
}

.trading-active {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    }
}

/* Live price updates */
.price-live {
    transition: all 0.3s ease;
}

.price-live.updated {
    transform: scale(1.05);
    color: #ffc107 !important;
}

/* Ultra-smart trading button */
#one-touch-trade-btn {
    background: linear-gradient(145deg, var(--accent-gold), #d29922) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 24px rgba(242, 204, 96, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#one-touch-trade-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.6s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

#one-touch-trade-btn:hover::before {
    width: 300px;
    height: 300px;
}

#one-touch-trade-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(242, 204, 96, 0.6),
        0 0 30px rgba(242, 204, 96, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#one-touch-trade-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s;
}

/* Enhanced button states */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s;
    transform: translate(-50%, -50%);
}

.btn:hover::after {
    width: 200px;
    height: 200px;
}

.btn-primary {
    background: linear-gradient(145deg, var(--accent-blue), #1f6feb) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.btn-success {
    background: linear-gradient(145deg, var(--accent-green), #238636) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

.btn-danger {
    background: linear-gradient(145deg, #f85149, #da3633) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.3);
}

.btn-warning {
    background: linear-gradient(145deg, var(--accent-orange), #d1770f) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 166, 87, 0.3);
    color: #000 !important;
}

/* Preset amount buttons */
.preset-amount {
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.preset-amount:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.preset-amount.btn-light {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1f6feb !important;
    border-color: white !important;
}

/* Real-time status bar */
.trading-status-bar {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
}

/* AI signal display */
#ai-signal {
    text-shadow: 0 0 10px currentColor;
    font-weight: bold;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* AI Agent Cards */
.agent-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, currentColor, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.agent-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(88, 166, 255, 0.2);
}

.agent-card:hover::before {
    transform: translateX(0);
}

.agent-icon {
    animation: float 3s ease-in-out infinite;
}

.agent-stats {
    transition: all 0.3s ease;
}

.agent-card:hover .agent-stats {
    transform: scale(1.05);
}

/* Consensus Analysis */
.consensus-item {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    margin: 0.25rem;
}

.consensus-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Enhanced market status */
#market-status {
    animation: pulse 2s infinite;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Trading status enhancements */
.trading-active .badge {
    animation: pulse-glow 1.5s infinite;
}

/* Risk level indicators */
#risk-level {
    font-weight: 600;
    text-shadow: 0 0 5px currentColor;
}

/* Form controls in trading interface */
.one-touch-trading .form-control {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.one-touch-trading .form-control:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.one-touch-trading .input-group-text {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.one-touch-trading .form-select {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.one-touch-trading .form-select:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Sentiment Gauge */
.gauge-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.gauge-fill {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #dc3545 0deg,
        #ffc107 120deg,
        #28a745 240deg,
        transparent calc(var(--fill) * 3.6deg),
        #21262d calc(var(--fill) * 3.6deg)
    );
    position: relative;
    animation: gauge-fill 2s ease-in-out;
}

.gauge-fill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

@keyframes gauge-fill {
    from { --fill: 0%; }
    to { --fill: var(--fill); }
}

/* Sentiment Indicators */
.sentiment-indicator, .volatility-indicator, .trend-indicator, .risk-indicator {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.sentiment-indicator:hover, .volatility-indicator:hover, .trend-indicator:hover, .risk-indicator:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.trend-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Toast Notifications */
.toast {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    border: 1px solid var(--border-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.toast-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid var(--border-primary);
}

/* Status Bar */
#status-bar {
    backdrop-filter: blur(10px);
    animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced table styling */
.table th {
    background: linear-gradient(145deg, var(--bg-tertiary), rgba(33, 38, 45, 0.8)) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr:hover {
    background: linear-gradient(145deg, rgba(88, 166, 255, 0.08), rgba(165, 163, 255, 0.05)) !important;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* AI Signal badges in table */
.signal-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Enhanced mobile responsiveness */
@media (max-width: 1200px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .gauge-container {
        width: 60px;
        height: 60px;
    }
    
    .gauge-fill {
        width: 60px;
        height: 60px;
    }
    
    .gauge-fill::before {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 992px) {
    .one-touch-trading .col-lg-3,
    .one-touch-trading .col-lg-4,
    .one-touch-trading .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    #one-touch-trade-btn {
        padding: 1rem !important;
        font-size: 1rem !important;
        margin-top: 1rem;
    }
    
    .preset-amount {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        margin: 0.2rem;
    }
    
    .metric-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
    }
    
    h4, h5, h6 {
        font-size: calc(1rem + 0.3vw);
    }
}

/* Dark theme specific enhancements */
.text-primary { color: var(--accent-blue) !important; }
.text-success { color: var(--accent-green) !important; }
.text-warning { color: var(--accent-gold) !important; }
.text-info { color: #56d4dd !important; }
.text-muted { color: var(--text-secondary) !important; }

/* Utility classes for the dark theme */
.glow-text {
    text-shadow: 0 0 10px currentColor;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulse-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

.gradient-bg {
    background: linear-gradient(270deg, var(--accent-blue), var(--accent-purple), var(--accent-green));
    background-size: 600% 600%;
    animation: gradient-shift 3s ease infinite;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

.card, .btn, .form-control, .metric-card {
    will-change: transform, box-shadow;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating, .pulse-glow, .gradient-bg {
        animation: none;
    }
}
