﻿.sc-chart-container.dark-mode {
    background-color: black !important;
    color: #e0e0e0;
}

/* Shimmer Button Styles */
/* Generic Shimmer Button Styles - Adapts to Bootstrap Theme */
/* Generic Shimmer Button Styles - Adapts to Bootstrap Theme */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .btn-shimmer:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
    }

    .btn-shimmer::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.3), transparent );
        transition: left 0.6s ease;
    }

    .btn-shimmer:hover::before {
        left: 100%;
    }

/* Single sweep shimmer animation with delay */
.btn-shimmer-sweep::before {
    animation: shimmerSweep 1.5s ease-out 1s 1 forwards;
}

@keyframes shimmerSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Enhanced focus state for accessibility */
.btn-shimmer:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.btn-shimmer:active {
    transform: translateY(0);
}



.limit-orders-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(10px, 2vw, 12px);
}

.limit-table-header th {
    color: #787b86;
    font-weight: 500;
    text-align: left;
    padding: 4px 8px 8px 0;
    border-bottom: 1px solid #1a1a25;
    width: 30%;
}

    .limit-table-header th:last-child {
        width: 10%;
        text-align: right;
    }

.limit-table-row td {
    padding: 4px 8px 4px 0;
    color: #e0e6ed;
    vertical-align: middle;
}

.action-column {
    text-align: right;
}

.order-type-badge {
    padding: 2px 6px;
    border-radius: 2px;
    font-size: clamp(9px, 1.8vw, 10px);
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 28px;
}

.order-type-buy {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.order-type-sell {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-remove {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .btn-remove:hover {
        background: #ef4444;
        color: white;
    }












/* Typing Indicator (Spinner) Styles */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center; /* Center dots within the indicator */
    background-color: rgba(45, 55, 72, 0.9); /* Added */
    border-radius: 20px; /* Added */
    padding: 10px 15px; /* Added */
    max-width: 70px; /* Added */
    /* margin: 0 auto; /* This is already on the div in HTML, so not strictly needed here if parent is text-align:center */
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64ffda; /* From dark_chatbot_ui, a bright teal */
    margin: 0 3px; /* Increased margin slightly */
    animation: typing 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: -0.16s;
    }
/* .typing-dot:nth-child(3) is implicitly 0s delay */

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.6); /* Made dots slightly smaller in their 'off' state */
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close button for AI Insight Card */
.notification-close { /* Style for the 'x' button */
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px; /* Made slightly larger */
    padding: 0;
    color: var(--text-secondary, #a1a1b5); /* Use variable with fallback */
    line-height: 1;
    opacity: 0.7;
}

    .notification-close:hover {
        opacity: 1;
        color: var(--text, #fff); /* Use variable with fallback */
    }


.card-body:not(.card .card .card-body) {
    padding: 0px !important;
    box-shadow: none !important;
}

.card {
    /*background-color: #1D1C23 !important;*/
    background-color: #1a191f !important;
}



.simul8or-site-link:hover {
    color: white !important;
    text-decoration: none !important;
}



/* Specific adjustments for the AI Insight Card's section */
#aiInsightResultCard .section {
    padding: 0 !important; /* Ensure no padding from .section */
    border-bottom: none !important; /* Ensure no bottom border */
    margin-bottom: 0 !important; /* Ensure no margin */
}

/* Make #aiInsightResultCard (which has .info-card) adopt terminal styling */
#aiInsightResultCard.info-card {
    background-color: #0d1117; /* Terminal background */
    border: 1px solid #30363d; /* Terminal border */
    /* padding: 15px; */ /* .info-card already has 15px padding, which is good for the terminal content */
    /* border-radius: var(--border-radius); */ /* .info-card already has 8px, matching terminal */
    position: relative; /* For the ::before pseudo-element */
    overflow: hidden; /* To contain the ::before */
}

    #aiInsightResultCard.info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #00d4aa, #7c3aed, #f472b6);
        z-index: 1; /* Ensure gradient is on top of background but below content */
    }


/* Container for the terminal-styled AI analysis */
#aiInsightText {
    /* This div will now primarily be a container for .ai-analysis-terminal */
    /* Remove direct styling like padding, background, border, font-size, as .ai-analysis-terminal will handle it */
    max-height: 250px; /* Adjust as needed for terminal content */
    overflow-y: auto;
    /* Ensure it doesn't add its own background if terminal is transparent or has margins */
    background-color: transparent;
    border: none;
    padding: 0; /* Reset padding */
    color: var(--text); /* Default text color, terminal will override */
}

/* Styles for the new terminal display (inner content part) */
.ai-analysis-terminal {
    background: transparent; /* Outer card handles background */
    border: none; /* Outer card handles border */
    border-radius: 0; /* Outer card handles radius */
    padding: 0; /* Outer card handles padding */
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    color: #c9d1d9;
    font-size: 13px; /* Increased font size for AI response text */
    /* position: relative; no longer needed as ::before is removed from this element */
    /* overflow: hidden; no longer needed */
    /* z-index is handled by the parent structure in HTML */
}

/* ::before for .ai-analysis-terminal is removed as the gradient is now on #aiInsightResultCard.info-card */

.terminal-line {
    display: flex;
    margin-bottom: 10px; /* Slightly reduced margin */
    align-items: flex-start; /* Align items to the start of the flex line */
    position: relative; /* For z-index stacking if ::before was an issue */
    z-index: 2; /* Ensure text is above the ::before gradient line */
}

    .terminal-line:last-child {
        margin-bottom: 0;
    }

.terminal-prompt {
    color: #3b82f6; /* Clean electric blue */
    margin-right: 10px; /* Increased spacing */
    font-weight: bold;
    min-width: 65px; /* Adjusted min-width */
    flex-shrink: 0;
    text-transform: uppercase; /* Make prompts uppercase */
}


.terminal-value {
    color: #c9d1d9; /* Light grey/off-white */
    flex: 1;
    white-space: pre-wrap; /* Allow wrapping within the value */
    word-break: break-word; /* Break long words if necessary */
}

.terminal-highlight {
    color: #79c0ff; /* Light blue */
    font-weight: 500;
}

/* Scrollbar for #aiInsightText if content overflows */
#aiInsightText::-webkit-scrollbar {
    width: 6px;
}

#aiInsightText::-webkit-scrollbar-track {
    background: #0d1117; /* Match terminal background */
    border-radius: 0 3px 3px 0; /* Match terminal border radius if scrollbar is on the edge */
}

#aiInsightText::-webkit-scrollbar-thumb {
    background: #30363d; /* Match terminal border */
    border-radius: 3px;
}

    #aiInsightText::-webkit-scrollbar-thumb:hover {
        background: #4a5058; /* Slightly lighter for hover */
    }

/* Ensure the rain canvas itself doesn't interfere with clicks on the terminal content */
#aiInsightRainCanvas {
    pointer-events: none; /* Allows clicks to pass through to elements behind it (like the terminal) */
    /* The rain effect itself will be on this canvas, not interactive */
}



/* MODAL STYLES START */
#simul8orProModal .modal-dialog {
    max-width: 900px;
}

#simul8orProModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.98);
}

#simul8orProModal .modal-content {
    background: #0f0f0f;
    border: none;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

#simul8orProModal .modal-header {
    border-bottom: 1px solid #1f1f1f;
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    position: relative;
}

#simul8orProModal .modal-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

#simul8orProModal .modal-subtitle {
    color: #a0a0a0;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#simul8orProModal .learn-link {
    color: #00ffff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

    #simul8orProModal .learn-link:hover {
        color: #00cccc !important;
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    }

#simul8orProModal .pricing-container {
    padding: 1rem 1.5rem;
}

#simul8orProModal .pricing-card {
    background: #1a1a1a;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

    #simul8orProModal .pricing-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #00ffff, #0088ff);
    }

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

#simul8orProModal .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
}

#simul8orProModal .pricing-card.featured {
    background: #1f1f1f;
    border-color: #00ffff;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

    #simul8orProModal .pricing-card.featured::before {
        height: 4px;
        background: linear-gradient(90deg, #00ffff, #0088ff);
    }

#simul8orProModal .plan-badge {
    background: linear-gradient(135deg, #333333, #555555);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    #simul8orProModal .plan-badge.popular {
        background: linear-gradient(135deg, #00ffff, #0088ff);
        color: #000;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    }

    #simul8orProModal .plan-badge.premium {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: #fff;
    }

#simul8orProModal .plan-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#simul8orProModal .plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ffff;
    margin-bottom: 0.3rem;
    line-height: 1;
}

    #simul8orProModal .plan-price.free {
        color: #00ff88;
    }

    #simul8orProModal .plan-price.premium {
        color: #f59e0b;
    }

#simul8orProModal .plan-period {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

#simul8orProModal .feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

    #simul8orProModal .feature-list li {
        color: #ffffff;
        margin-bottom: 0.6rem;
        padding-left: 1.5rem;
        position: relative;
        font-size: 0.9rem;
        font-weight: 500;
    }

        #simul8orProModal .feature-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #00ffff;
            font-weight: bold;
            font-size: 1.1rem;
            text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
        }

        #simul8orProModal .feature-list li.limited {
            color: #666666;
        }

            #simul8orProModal .feature-list li.limited::before {
                content: '—';
                color: #444444;
                text-shadow: none;
            }

#simul8orProModal .unlock-footer {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    #simul8orProModal .unlock-footer .btn {
        background: linear-gradient(135deg, #00ffff, #0088ff);
        border: none;
        color: #ffffff;
        font-weight: 800;
        padding: 0.8rem 2.5rem;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-bottom: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
    }

        #simul8orProModal .unlock-footer .btn:hover {
            background: linear-gradient(135deg, #00cccc, #0066cc);
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
        }

#simul8orProModal .footer-text {
    color: #888888;
    font-size: 1rem;
    font-weight: 500;
}

#simul8orProModal .btn-close {
    color: #ffffff;
    opacity: 0.8;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

    #simul8orProModal .btn-close:hover {
        opacity: 1;
        color: #00ffff;
    }

#simul8orProModal .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
}

#simul8orProModal .icon-basic {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
}

#simul8orProModal .icon-pro {
    background: linear-gradient(135deg, #00ffff, #0088ff);
    color: #000;
}

#simul8orProModal .icon-premium {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
}

@media (max-width: 768px) {
    #simul8orProModal .pricing-card.featured {
        transform: none;
        margin-bottom: 1rem;
    }

    #simul8orProModal .modal-dialog {
        margin: 1rem;
    }

    #simul8orProModal .plan-price {
        font-size: 3rem;
    }

    #simul8orProModal .modal-title {
        font-size: 2rem;
    }
}

#simul8orProModal .pricing-card.premium::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
/* MODAL STYLES END */


.paused-border {
    animation: borderPulse 2s ease-in-out infinite;
    color: white;
}

@keyframes borderPulse {
    0%, 100% {
        border: 2px solid transparent;
    }

    50% {
        border: 2px solid rgba(255, 193, 7, 0.8);
    }
}


.watchlist-header .simulator-toggle-container {
    display: inline-block;
    background: #2a2a35;
    border-radius: 4px;
    padding: 2px;
    border: 1px solid #3a3a45;
}

.watchlist-header .simulator-toggle-btn {
    background: transparent !important;
    border: none !important;
    color: #787b86 !important;
    padding: 6px 10px !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 28px !important;
    flex: none !important;
    white-space: nowrap;
    overflow: hidden;
}

    .watchlist-header .simulator-toggle-btn:hover {
        color: #e0e6ed !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .watchlist-header .simulator-toggle-btn.active {
        background: #1a1a25 !important;
        color: #e0e6ed !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        border-color: #1a1a25 !important;
    }

    .watchlist-header .simulator-toggle-btn i {
        font-size: 11px !important;
        margin-right: 0 !important;
    }


.hover-link-text:hover {
    text-decoration: underline !important;
}


