/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: black;
    color: #FFFFF0;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner.visible {
    display: flex;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #DAA520;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #FFFFF0;
    font-size: 18px;
    font-weight: bold;
}

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

/* Buttons */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* DatePickerRange */
.DateInput {
    background-color: transparent;
}

.DateInput_input {
    color: #FFFFF0;
    background-color: #1a2b4c;
    border: 1px solid #FFFFF0;
    border-radius: 5px;
    font-size: 16px;
}

.DateRangePickerInput {
    background-color: transparent;
    border: none;
}

.DateRangePickerInput_arrow {
    color: #DAA520;
}

/* Graph */
.js-plotly-plot .plotly .modebar {
    background-color: rgba(26, 43, 76, 0.7) !important;
}

.js-plotly-plot .plotly .modebar-btn path {
    fill: #FFFFF0 !important;
}

/* Custom animation for feedback */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Custom styling for textarea scrollbars */
textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb {
    background: rgba(218, 165, 32, 0.5);
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(218, 165, 32, 0.7);
}

/* Navigation link styles */
.nav-link {
    color: #FFFFF0;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-link:hover {
    color: #DAA520;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #DAA520;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:active {
    transform: translateY(1px);
}

/* Save button loading state */
.save-loading {
    opacity: 0.7;
    cursor: not-allowed !important;
}

#save-report-button:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    background-color: #8B7500 !important; /* Darker gold */
}

/* Loading message for save operation */
.save-loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 43, 76, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    text-align: center;
    border: 2px solid #DAA520;
}

.save-loading-message h4 {
    color: #DAA520;
    margin-bottom: 20px;
}

.save-loading-message .spinner {
    margin: 0 auto 20px auto;
}

/* Template Preview Styles */
.preview-template-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.preview-template-section {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.preview-template-section h4 {
    color: #DAA520;
    margin-bottom: 15px;
}

.preview-check-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.preview-check-icon {
    font-size: 20px;
    margin-right: 10px;
}

.preview-check-icon.success {
    color: #32CD32;
}

.preview-check-icon.warning {
    color: #FFA500;
}

.preview-detail-box {
    background-color: rgba(26, 43, 76, 0.9);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-left: 30px;
}

.preview-confirmation-box {
    background-color: rgba(106, 90, 205, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    border: 2px solid #6a5acd;
}

/* Card Dashboard Styles - Enhanced Visibility */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%) !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.3) !important;
}

.card-header {
    font-weight: bold;
    padding: 15px 20px;
    backdrop-filter: blur(15px);
}

.card-body {
    padding: 20px;
    color: #FFFFF0;
}

/* Ensure text visibility in cards */
.card-body span, .card-body div {
    color: #FFFFF0;
}

.card-body h5 {
    color: #DAA520;
}

/* Status colors with better contrast */
.card-body .text-success {
    color: #32CD32 !important;
}

.card-body .text-warning {
    color: #FFA500 !important;
}

.card-body .text-danger {
    color: #FF6347 !important;
}

/* Card icon colors - Add these for better visual hierarchy */
.card-header .fa-chart-pie { color: #DAA520; }
.card-header .fa-chart-line { color: #DAA520; }
.card-header .fa-sync-alt { color: #9370DB; }
.card-header .fa-newspaper { color: #32CD32; }
.card-header .fa-map-marker-alt { color: #FF6347; }
.card-header .fa-folder { color: #DAA520; }

/* Card height equalization within rows */
.row.g-3 {
    align-items: stretch;
}

.row.g-3 > [class*="col-"] {
    display: flex;
}

.row.g-3 .card {
    width: 100%;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .DateRangePickerInput {
        width: 100%;
    }

    .DateInput {
        width: 40%;
    }

    .DateInput_input {
        font-size: 14px;
        padding: 5px;
    }

    textarea {
        height: 100px !important;
        font-size: 12px !important;
    }

    .card {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 15px;
    }
}


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:wght@400;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');


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

/* Price preview tooltip styling */
.price-preview {
    position: fixed !important;  /* Ensure fixed positioning */
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #DAA520;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10000;
    color: #FFFFFF;
    white-space: nowrap;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Entry mode green border */
.price-preview.entry-mode {
    border-color: #28a745;
}

/* Exit mode red border */
.price-preview.exit-mode {
    border-color: #dc3545;
}

/* Ensure charts have proper cursor in entry/exit modes */
.js-plotly-plot.entry-mode-active {
    cursor: crosshair !important;
}

.js-plotly-plot.exit-mode-active {
    cursor: crosshair !important;
}

/* Dropdown styling for dark theme */
.Select-control {
    background-color: #1a1a1a !important;
    color: #FFFFF0 !important;
    border-color: rgba(218, 165, 32, 0.3) !important;
}

.Select-menu-outer {
    background-color: #1a1a1a !important;
    color: #FFFFF0 !important;
}

.Select-option {
    background-color: #1a1a1a !important;
    color: #DAA520 !important;
}

.Select-option:hover {
    background-color: rgba(218, 165, 32, 0.2) !important;
    color: #FFFFF0 !important;
}

/* Fix Dash dropdown input text color */
.Select-input input {
    color: #FFFFF0 !important;
}

.Select-value-label {
    color: #FFFFF0 !important;
}

.Select-placeholder {
    color: #FFFFF0 !important;
}

/* ========================================
   AI CHAT WIDGET STYLES - IMPROVED & LARGER
   ======================================== */

.ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 80px; /* Offset from feedback widget */
    z-index: 9998;
}

.ai-chat-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ai-chat-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* IMPROVED: Much larger chat window with height constraints */
.ai-chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 650px;
    height: 750px;
    /* Add max-height to prevent going above viewport */
    max-height: calc(100vh - 100px);  /* 100px accounts for bottom offset + margin */
    background: #1a1a1a;
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;        /* Prevent header from shrinking */
}

/* IMPROVED: More space for messages - adjust based on window height */
.chat-messages {
    flex: 1;               /* Take all available space */
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;     /* Reduced minimum for smaller screens */
}


.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 70%;
    color: #FFFFF0;
    font-size: 14px;
    line-height: 1.6;
}

.chat-message.user .message-content {
    background: rgba(102, 126, 234, 0.2);
}

/* FIXED: Preset questions with proper navigation visibility */
.preset-questions {
    padding: 10px 15px;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    flex-shrink: 0;        /* Prevent from shrinking */
    max-height: 220px;     /* Increased to accommodate navigation */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #DAA520;
    font-weight: 600;
    flex-shrink: 0;        /* Don't shrink header */
}

.toggle-presets-btn {
    background: none;
    border: none;
    color: #DAA520;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.toggle-presets-btn:hover {
    background: rgba(218, 165, 32, 0.1);
}

.preset-buttons {
    flex: 1;               /* Take available space */
    overflow-y: auto;      /* Scroll if needed */
    overflow-x: hidden;    /* No horizontal scroll */
    transition: max-height 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 5px;   /* Small padding for scroll */
}

/* Category headers */
.category-header {
    font-size: 12px;
    color: #DAA520;
    font-weight: 600;
    margin-bottom: 5px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.category-header-expanded {
    font-size: 11px;
    color: #DAA520;
    font-weight: 600;
    margin: 8px 0 3px 0;
    padding: 2px 0;
}

/* Regular preset buttons */
.preset-btn {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #FFFFF0;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    margin: 2px 0;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(218, 165, 32, 0.2);
    transform: translateX(2px);
}

/* Compact preset buttons (when expanded) */
.preset-btn-compact {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #FFFFF0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    margin: 1px 0;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.preset-btn-compact:hover {
    background: rgba(218, 165, 32, 0.2);
}

/* FIXED: Navigation controls always visible */
.preset-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 5px;
    flex-shrink: 0;        /* Never shrink navigation */
    padding-top: 8px;      /* Space from questions */
    border-top: 1px solid rgba(218, 165, 32, 0.1);  /* Visual separator */
}

.nav-btn, .expand-btn {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #FFFFF0;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover, .expand-btn:hover {
    background: rgba(218, 165, 32, 0.2);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    display: flex;
    gap: 10px;
    flex-shrink: 0;        /* Prevent input area from shrinking */
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #FFFFF0;
    padding: 10px;
    border-radius: 25px;
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(218, 165, 32, 0.6);
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

.send-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.send-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-chat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for chat widget */
@media (max-height: 900px) {
    .ai-chat-window {
        height: calc(100vh - 120px);  /* Smaller height for shorter screens */
    }
}

@media (max-height: 700px) {
    .ai-chat-window {
        height: calc(100vh - 100px);  /* Even smaller for very short screens */
        bottom: 60px;  /* Move up slightly */
    }

    .preset-questions {
        max-height: 180px;  /* Reduce preset area */
    }
}

@media (max-width: 1200px) {
    .ai-chat-window {
        width: 500px;
        height: 700px;
        max-height: calc(100vh - 100px);  /* Ensure height constraint */
    }
}

@media (max-width: 768px) {
    .ai-chat-window {
        width: 380px;
        height: 600px;
        max-height: calc(100vh - 100px);  /* Ensure height constraint */
        right: 10px;
    }

    .ai-chat-widget {
        right: 10px;
    }

    .preset-questions {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .ai-chat-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 150px);
        right: 15px;
        bottom: 70px;
    }
}

/* Enhanced message content formatting for AI chat widget */
.message-content .list-item {
    margin: 6px 0;
    padding-left: 20px;
    position: relative;
}

.message-content .list-item.numbered {
    color: #FFFFF0;
}

.message-content .list-item.bullet {
    color: #FFFFF0;
}

.message-content .list-item.bullet::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #DAA520;
}

/* Headers and special formatting */
.message-content .emoji-header {
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #DAA520;
}

.message-content .section-header {
    font-weight: 600;
    color: #DAA520;
    margin-top: 10px;
    margin-bottom: 6px;
}

.message-content .tip-text {
    margin-top: 10px;
    padding: 8px;
    background: rgba(218, 165, 32, 0.1);
    border-left: 3px solid #DAA520;
    border-radius: 4px;
    font-style: italic;
}

.message-content .regular-line {
    margin: 4px 0;
}

.message-content .line-break {
    height: 8px;
}

/* When expanded, allow more height */
.preset-questions.expanded {
    max-height: 400px;
}

.preset-buttons.expanded {
    max-height: 350px;
}

/* Custom scrollbar for news container */
.news-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(218, 165, 32, 0.5);
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(218, 165, 32, 0.7);
}

/* Add subtle shadow at bottom when scrollable */
.news-scroll-container {
    position: relative;
}

.news-scroll-container::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* Add these styles to app/assets/styles.css */

/* Subscribe/Manage button hover effect */
.subscribe-btn-dash:hover {
    background-color: #DAA520 !important;
    color: black !important;
}

/* Logout button hover effect */
.logout-btn-dash:hover {
    background-color: #FF4444 !important;
}

/* Login button hover (for non-authenticated users) */
.login-btn-dash:hover {
    background-color: #B8860B !important;
}

/* Register button hover */
.register-btn-dash:hover {
    background-color: #5a4acd !important;
}

/* ========================================
   USERNAME DROPDOWN MENU STYLES
   ======================================== */

/* Dropdown container */
#username-dropdown-menu {
    animation: slideDown 0.2s ease-out;
}

/* Dropdown item styling */
.dropdown-item {
    display: flex !important;
    align-items: center;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(218, 165, 32, 0.1) !important;
}

/* Username button hover effect */
#username-dropdown-toggle:hover {
    background-color: #B8950F !important;
    transition: background-color 0.2s ease;
}

/* Dropdown animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon spacing in dropdown items */
.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Fix for sample playbooks dropdown - black background */
.dropdown-menu {
    background-color: #1a1a1a !important;  /* Black background */
    border: 1px solid rgba(218, 165, 32, 0.3) !important;  /* Gold border */
}

.dropdown-menu .dropdown-item {
    color: #FFFFF0 !important;  /* Light text color */
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(218, 165, 32, 0.2) !important;  /* Gold hover effect */
    color: #DAA520 !important;  /* Gold text on hover */
}

/* Ensure the dropdown arrow/caret is visible */
.dropdown-toggle::after {
    color: #FFFFF0 !important;
}

/* For the specific samples dropdown if needed */
.nav-link.dropdown-toggle {
    color: #FFFFF0 !important;
}
/* Fix dropdown item links */
.dropdown-item {
    padding: 0 !important;
}

.dropdown-item a {
    padding: 0.5rem 1rem !important;
    display: block !important;
    width: 100% !important;
    color: #FFFFF0 !important;
    text-decoration: none !important;
}

.dropdown-item a:hover {
    background-color: rgba(218, 165, 32, 0.2) !important;
    color: #DAA520 !important;
}

/* Add this to the end of your styles.css */

/* Fix for dropdown hover to match other nav links */
.nav-link.dropdown-toggle {
    color: #FFFFF0;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-link.dropdown-toggle:hover {
    color: #DAA520;
}

/* Override Bootstrap's default dropdown caret/underline */
.dropdown-toggle::after {
    border: none !important;
    content: "▼" !important;
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Remove Bootstrap's default focus styles */
.nav-link.dropdown-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ============================================================================
   STOCK DISCOVERY FEATURE STYLES
   Add these styles to the bottom of your assets/styles.css file
   ============================================================================ */

/* Discovery List Item Hover Effect */
.discovery-list-item:hover {
    background-color: rgba(218, 165, 32, 0.2) !important;
    transform: translateX(3px);
    transition: all 0.2s ease;
}

/* Load Chart Button Hover Effect */
.load-chart-button:hover {
    background-color: #FFD700 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(218, 165, 32, 0.4) !important;
}

/* Discovery Dropdown Styling */
.discovery-dropdown .Select-control {
    background-color: #2a2a2a !important;
    border-color: #DAA520 !important;
}

.discovery-dropdown .Select-menu-outer {
    background-color: #2a2a2a !important;
    border-color: #DAA520 !important;
}

.discovery-dropdown .Select-option {
    background-color: #2a2a2a !important;
    color: #FFFFF0 !important;
}

.discovery-dropdown .Select-option:hover {
    background-color: rgba(218, 165, 32, 0.2) !important;
}

/* Discovery Modal Scrollbar Styling */
#discovery-stock-list::-webkit-scrollbar,
#discovery-details-panel::-webkit-scrollbar {
    width: 8px;
}

#discovery-stock-list::-webkit-scrollbar-track,
#discovery-details-panel::-webkit-scrollbar-track {
    background: #1a1a1a;
}

#discovery-stock-list::-webkit-scrollbar-thumb,
#discovery-details-panel::-webkit-scrollbar-thumb {
    background: #DAA520;
    border-radius: 4px;
}

#discovery-stock-list::-webkit-scrollbar-thumb:hover,
#discovery-details-panel::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

/* Discovery Button Hover in Nav */
#open-discovery-button:hover {
    background-color: rgba(218, 165, 32, 0.2);
    transform: translateY(-1px);
}

/* Mobile Responsive - Stack the split view on small screens */
@media (max-width: 768px) {
    #discovery-modal .modal-content {
        width: 95% !important;
        margin: 10px auto;
    }

    /* Stack list and details vertically on mobile */
    #discovery-stock-list,
    #discovery-details-panel {
        width: 100% !important;
        margin-bottom: 15px;
    }
}

/* Smooth transitions for modal appearance */
.modal.show .modal-dialog {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Discovery modal backdrop (semi-transparent) */
.modal-backdrop.show {
    opacity: 0.3 !important;
}