﻿
:root {
    /* Base colors */
    --dark-bg: #131722;
    --darker-bg: #0c0e17;
    --card-bg: #1e222d;
    --border-color: #2a2e39;
    /* Primary colors */
    --primary: #58e021;
    --primary-hover: #74f23c;
    --primary-gradient: linear-gradient(45deg, #58e021, #2fae0e);
    /* Secondary color palette */
    --success: #58e021;
    --success-hover: #00d2ad;
    --warning: #ffba00;
    --warning-hover: #ffc933;
    --danger: #ff5252;
    --danger-hover: #ff7575;
    --info: #5965f9;
    --info-hover: #7a84fa;
    /* Text colors */
    --text-light: #f5f5f5;
    --text-muted: #9aa0b9;
    --text-dim: #656d85;
    /* Accent colors for data */
    --up-color: #58e021;
    --down-color: #a259ff;
    --neutral-color: #9aa0b9;
    /* Font families */
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.ace-logo {
    height: 80px; /* Match the font size of the brand text */
    width: auto;
    margin-right: 8px; /* Smaller margin */
    vertical-align: middle; /* Ensure proper alignment */
}

.ace-brand {
    display: flex;
    align-items: center;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 0;
    margin: 0;
    min-height: 100vh;
    line-height: 1.6;
}

/* Modern container styling */
.ace-container {
    max-width: 1320px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Header styling */
.ace-header {
    background-color: var(--darker-bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.ace-brand {
    font-size: 28px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 1px;
}

    .ace-brand span {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-right: 5px;
    }

.ace-nav {
    display: flex;
    align-items: center;
}

.ace-nav-item {
    padding: 10px 15px;
    margin: 0 5px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .ace-nav-item:hover, .ace-nav-item.active {
        color: var(--primary);
        background-color: rgba(88, 224, 33, 0.1);
    }

    .ace-nav-item.active {
        font-weight: 600;
    }

/* Redesigned card components */
.ace-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .ace-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.ace-card-title {
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

    .ace-card-title i {
        margin-right: 10px;
        color: var(--primary);
    }

/* Dashboard cards */
.dashboard-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .dashboard-card h5 {
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.stat-number {
    font-size: 36px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Modern buttons */
.ace-btn {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .ace-btn i {
        margin-right: 8px;
    }

.ace-btn-primary {
    background: var(--primary-gradient);
    color: #fff;
}

    .ace-btn-primary:hover {
        background: linear-gradient(45deg, #74f23c, #46c715);
        color: #fff;
        transform: translateY(-2px);
    }

.ace-btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

    .ace-btn-outline:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-2px);
    }

.ace-btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

.ace-btn-danger {
    background: var(--danger);
    color: #fff;
}

    .ace-btn-danger:hover {
        background: var(--danger-hover);
        color: #fff;
        transform: translateY(-2px);
    }

/* Alert styling */
.ace-alert {
    background-color: rgba(88, 224, 33, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.ace-alert-warning {
    background-color: rgba(255, 186, 0, 0.1);
    border-left: 4px solid var(--warning);
}

.ace-alert-success {
    background-color: rgba(88, 224, 33, 0.1);
    border-left: 4px solid var(--success);
}

.ace-alert-danger {
    background-color: rgba(255, 82, 82, 0.1);
    border-left: 4px solid var(--danger);
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-success {
    background-color: var(--success);
    box-shadow: 0 0 10px rgba(88, 224, 33, 0.5);
}

.status-warning {
    background-color: var(--warning);
    box-shadow: 0 0 10px rgba(255, 186, 0, 0.5);
}

.status-error {
    background-color: var(--danger);
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.5);
}

.status-info {
    background-color: var(--info);
    box-shadow: 0 0 10px rgba(89, 101, 249, 0.5);
}

/* Form controls */
.ace-form-control {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .ace-form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(88, 224, 33, 0.2);
        background-color: rgba(88, 224, 33, 0.05);
    }

.ace-form-label {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.ace-form-select {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    padding: 12px 15px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239aa0b9' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
}

/* Custom range styling */
.ace-range {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 10px 0;
}

    .ace-range::-webkit-slider-runnable-track {
        width: 100%;
        height: 6px;
        background: var(--darker-bg);
        border-radius: 3px;
        border: 1px solid var(--border-color);
    }

    .ace-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 20px;
        width: 20px;
        background: var(--primary-gradient);
        border-radius: 50%;
        cursor: pointer;
        margin-top: -8px;
        box-shadow: 0 0 10px rgba(88, 224, 33, 0.5);
    }

/* Filter section styling */
.filter-section {
    background-color: rgba(89, 101, 249, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(89, 101, 249, 0.2);
    padding: 20px;
    margin-bottom: 25px;
}

/* Opportunity cards */
.opportunity-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .opportunity-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        border-color: var(--primary);
    }

    .opportunity-card h4 {
        font-size: 26px;
        font-family: var(--font-heading);
        font-weight: 400;
        margin-bottom: 5px;
        color: var(--text-light);
        letter-spacing: 1px;
    }

    .opportunity-card h5 {
        font-size: 16px;
        color: var(--text-muted);
        margin-bottom: 15px;
    }

    .opportunity-card p {
        color: var(--text-muted);
        margin-bottom: 12px;
        font-size: 14px;
    }

        .opportunity-card p strong {
            color: var(--text-light);
            font-weight: 600;
        }

.opportunity-metrics {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.metric-item {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
}

.metric-label {
    font-weight: 600;
    color: var(--text-muted);
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--danger);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 82, 82, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

/* Settings panel styling */
.settings-panel {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    padding: 25px;
}

.settings-toggle {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .settings-toggle:hover {
        color: var(--primary-hover);
    }

    .settings-toggle i {
        margin-right: 8px;
    }

/* Indicator categories */
.indicator-category {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.indicator-category-title {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 18px;
    letter-spacing: 1px;
}

/* Modern checkbox */
.ace-checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: var(--text-muted);
}

    .ace-checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.ace-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ace-checkbox-container:hover input ~ .ace-checkbox {
    border-color: var(--primary);
}

.ace-checkbox-container input:checked ~ .ace-checkbox {
    background-color: var(--primary);
    border-color: var(--primary);
}

.ace-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ace-checkbox-container input:checked ~ .ace-checkbox:after {
    display: block;
}

/* Modern switch */
.ace-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .ace-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.ace-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 24px;
}

    .ace-switch-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 2px;
        background-color: var(--text-muted);
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .ace-switch-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

    input:checked + .ace-switch-slider:before {
        transform: translateX(25px);
        background-color: #fff;
    }

/* Form group spacing */
.ace-form-group {
    margin-bottom: 20px;
}

/* Modern pagination */
.ace-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

    .ace-pagination .page-item .page-link {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        margin: 0 5px;
        border-radius: 8px;
        transition: all 0.3s ease;
        padding: 10px 15px;
    }

    .ace-pagination .page-item.active .page-link {
        background-color: var(--primary);
        color: #fff;
        border-color: var(--primary);
        box-shadow: 0 5px 15px rgba(88, 224, 33, 0.3);
    }

    .ace-pagination .page-item .page-link:hover {
        background-color: rgba(88, 224, 33, 0.1);
        color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

/* Footer styling */
.ace-footer {
    background-color: var(--darker-bg);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

    .ace-footer p {
        color: var(--text-dim);
        font-size: 14px;
        margin-bottom: 0;
    }

/* Confidence value */
.confidence-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

    .confidence-value .value {
        font-size: 34px;
        font-family: var(--font-heading);
        font-weight: 400;
        color: var(--success);
        margin-bottom: 5px;
        letter-spacing: 1px;
    }

    .confidence-value .label {
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 500;
    }

/* Loading spinner */
.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px 0;
}

.loader {
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Glowing effects */
.glow-effect {
    position: relative;
}

    .glow-effect::before {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        border-radius: 13px;
        background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
        z-index: -1;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .glow-effect:hover::before {
        opacity: 0.5;
        animation: glowing 3s linear infinite;
    }

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Tooltip styling */
.ace-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: var(--text-muted);
}

    .ace-tooltip .tooltip-text {
        visibility: hidden;
        width: 200px;
        background-color: var(--darker-bg);
        color: var(--text-light);
        text-align: center;
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -100px;
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 12px;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

        .ace-tooltip .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: var(--border-color) transparent transparent transparent;
        }

    .ace-tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

/* Responsive adjustments */
@media (max-width: 992px) {
    .ace-nav {
        margin-top: 15px;
    }

    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .opportunity-card .col-md-3 {
        margin-top: 20px;
    }

    .dashboard-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .ace-container {
        padding: 0 15px;
    }

    .ace-card, .dashboard-card, .opportunity-card, .settings-panel {
        padding: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .metric-item {
        margin-right: 10px;
        margin-bottom: 5px;
    }
}

/* Process Stage Tracker */
.stage-container {
    position: relative;
    padding: 20px 0;
}

.stage-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.stages {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.stage-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.stage-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.stage.active .stage-icon {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(88, 224, 33, 0.5);
}

.stage.active .stage-label {
    color: var(--primary);
    font-weight: 600;
}

.stage.completed .stage-icon {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.stage.completed .stage-label {
    color: var(--success);
}

/* Industry item styling */
.industry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .industry-item:hover {
        background-color: rgba(88,224,33,0.05);
    }

.industry-info {
    display: flex;
    align-items: center;
}

.industry-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--text-muted);
}

.industry-status.pending {
    color: var(--text-muted);
}

.industry-status.processing {
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

.industry-status.completed {
    color: var(--success);
}

.industry-status.skipped {
    color: var(--warning);
}

.industry-status.error {
    color: var(--danger);
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Recent opportunity items */
.opportunity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .opportunity-item:hover {
        background-color: rgba(88,224,33,0.05);
        transform: translateY(-2px);
    }

.opportunity-info {
    display: flex;
    align-items: center;
}

.opportunity-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--success);
}

.new-opportunity {
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI-themed styling */
.ai-status-card {
    background: linear-gradient(135deg, rgba(30, 34, 45, 0.8) 0%, rgba(25, 28, 36, 0.95) 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

    .ai-status-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--info) 50%, var(--primary) 100%);
        animation: gradientShift 3s linear infinite;
        z-index: 1;
    }

.ai-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(88, 224, 33, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88, 224, 33, 0.3);
}

    .ai-icon-container i {
        font-size: 28px;
        color: var(--primary);
    }

    .ai-icon-container.completed {
        background: rgba(88, 224, 33, 0.1);
        border-color: rgba(88, 224, 33, 0.3);
    }

        .ai-icon-container.completed i {
            color: var(--success);
            font-size: 32px;
        }

.status-title {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.status-description {
    color: var(--text-muted);
    font-size: 14px;
}

/* Neural network animation */
.neural-activity {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.neural-line {
    height: 3px;
    flex-grow: 1;
    margin: 0 3px;
    background: linear-gradient(90deg, rgba(88, 224, 33, 0.1) 0%, rgba(88, 224, 33, 0.7) 50%, rgba(88, 224, 33, 0.1) 100%);
    animation: neuralPulse 2s infinite;
    border-radius: 3px;
}

    .neural-line:nth-child(2) {
        animation-delay: 0.4s;
    }

    .neural-line:nth-child(3) {
        animation-delay: 0.8s;
    }

    .neural-line:nth-child(4) {
        animation-delay: 1.2s;
    }

    .neural-line:nth-child(5) {
        animation-delay: 1.6s;
    }

.ai-metric-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    border: 1px solid var(--border-color);
}

    .ai-metric-card h6 {
        color: var(--text-muted);
        font-size: 14px;
        margin-bottom: 10px;
    }

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.opportunity-alert {
    color: var(--success);
    font-size: 12px;
    animation: fadeInOut 2s infinite;
}

/* Pulsating text effect */
.pulse-text {
    animation: textPulse 2s infinite;
    color: var(--primary);
}

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes neuralPulse {
    0% {
        opacity: 0.3;
        height: 3px;
    }

    50% {
        opacity: 1;
        height: 15px;
    }

    100% {
        opacity: 0.3;
        height: 3px;
    }
}

@keyframes textPulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
    font-size: 0.9em;
}

.status-on {
    background-color: rgba(88, 224, 33, 0.2);
    color: var(--success);
}

.status-off {
    background-color: rgba(255, 82, 82, 0.2);
    color: var(--danger);
}

.next-run-info {
    font-weight: 500;
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 15px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

    .dropdown-item i {
        margin-right: 10px;
        width: 16px;
        text-align: center;
    }

    .dropdown-item:hover, .dropdown-item:focus {
        background-color: rgba(88, 224, 33, 0.1);
        color: var(--primary);
    }

/* Custom arrow positioning for dropdown */
.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
}

/* Fix for dropdown on mobile */
@media (max-width: 992px) {
    .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
    }
}

/* Results summary styling */
.result-stat-card {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    height: 100%;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
}

.industry-result-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

    .industry-result-item:last-child {
        border-bottom: none;
    }

.industry-result-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.industry-result-count {
    font-weight: 600;
    color: var(--success);
}


/* Table styling */
#opportunitiesTable {
    color: var(--text-light);
    background-color: transparent;
    margin-bottom: 0;
}

    #opportunitiesTable thead th {
        color: var(--text-muted);
        border-top: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 8px;
        font-weight: 600;
        position: sticky;
        top: 0;
        background-color: var(--card-bg);
        z-index: 10;
    }

    #opportunitiesTable tbody tr {
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

        #opportunitiesTable tbody tr:hover {
            background-color: rgba(88,224,33,0.05);
        }

    #opportunitiesTable tbody td {
        padding: 12px 8px;
        vertical-align: middle;
        border: none;
    }

.sortable {
    cursor: pointer;
    position: relative;
}

    .sortable::after {
        content: "⇵"; /* Double arrow indicating sortable */
        position: absolute;
        right: 8px;
        opacity: 0.4;
    }

    .sortable.sort-asc::after {
        content: "▲"; /* Triangle up for ascending sort */
        opacity: 0.8;
    }

    .sortable.sort-desc::after {
        content: "▼"; /* Triangle down for descending sort */
        opacity: 0.8;
    }

#opportunitiesTable {
    table-layout: fixed; /* This makes columns respect their width settings more strictly */
    width: 100%;
}

.confidence-cell {
    font-weight: 600;
}

.confidence-high {
    color: var(--success);
}

.confidence-medium {
    color: var(--primary);
}

.confidence-low {
    color: var(--warning);
}

.table-responsive {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.view-btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.table-footer {
    font-size: 14px;
    color: var(--text-muted);
}

#currentPageDisplay {
    display: inline-block;
    padding: 6px 10px;
    min-width: 100px;
    text-align: center;
}

.dropdown-menu {
    padding: 8px;
    min-width: 200px;
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: 4px;
}

/* Add this CSS to fix the hover text color issue */
#opportunitiesTable tbody tr:hover {
    background-color: rgba(88,224,33,0.05);
    color: var(--text-light) !important; /* Force text to remain light */
}

    #opportunitiesTable tbody tr:hover td {
        color: var(--text-light) !important; /* Apply to all cells within the row */
    }

    /* Make sure the confidence cells maintain their colors on hover */
    #opportunitiesTable tbody tr:hover .confidence-cell.confidence-high {
        color: var(--success) !important;
    }

    #opportunitiesTable tbody tr:hover .confidence-cell.confidence-medium {
        color: var(--primary) !important;
    }

    #opportunitiesTable tbody tr:hover .confidence-cell.confidence-low {
        color: var(--warning) !important;
    }
/* Enhanced modal styling */
.custom-tabs {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem 0;
}

    .custom-tabs .nav-link {
        color: var(--text-muted);
        border-radius: 8px 8px 0 0;
        padding: 0.8rem 1.5rem;
        font-weight: 500;
        border: 1px solid transparent;
        transition: all 0.3s ease;
        position: relative;
        margin-right: 5px;
    }

        .custom-tabs .nav-link:hover {
            color: var(--primary);
            background-color: rgba(88, 224, 33, 0.05);
        }

        .custom-tabs .nav-link.active {
            color: var(--primary);
            background-color: rgba(88, 224, 33, 0.1);
            border: 1px solid var(--border-color);
            border-bottom-color: transparent;
        }

            .custom-tabs .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                right: 0;
                height: 2px;
                background: var(--primary-gradient);
            }

.stat-item {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .stat-item:hover {
        background: rgba(88, 224, 33, 0.05);
        transform: translateY(-2px);
    }

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

/* Animated gauge chart */
.gauge-container {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
}

.gauge-background {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 100%;
    top: 0;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    border: 10px solid rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
}

.gauge-fill {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 0;
    background: conic-gradient(var(--success) 0%, var(--primary) 50%, var(--danger) 100%);
    border-radius: 100%;
    clip-path: polygon(0 100%, 100% 100%, 100% 50%, 0 50%);
    transform-origin: center bottom;
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-center {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 100%;
    background: var(--card-bg);
    top: 20px;
    left: 20px;
}

.gauge-value {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-light);
    top: 50px;
}

.gauge-label {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    top: 90px;
}

.gauge-needle {
    position: absolute;
    width: 6px;
    height: 90px;
    background: var(--danger);
    bottom: 0;
    left: 97px;
    transform-origin: bottom center;
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    clip-path: polygon(50% 0, 100% 90%, 50% 100%, 0 90%);
    z-index: 10;
}

.gauge-ticks {
    position: absolute;
    width: 200px;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.gauge-tick {
    font-size: 12px;
    color: var(--text-muted);
}

/* Animated progress bars */
.animated-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.animated-progress-bar {
    height: 100%;
    border-radius: 5px;
    background: var(--primary-gradient);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s ease;
}

/* Enhanced scrollbars for the metrics section */
.metrics-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

    .metrics-scrollable::-webkit-scrollbar {
        width: 8px;
    }

    .metrics-scrollable::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .metrics-scrollable::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }

/* Indicator cards */
.indicator-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

    .indicator-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        background: rgba(88, 224, 33, 0.05);
    }

.indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.indicator-title {
    font-weight: 600;
    color: var(--text-light);
    font-size: 16px;
}

.indicator-value {
    font-weight: bold;
    font-size: 18px;
}

.positive-value {
    color: var(--success);
}

.negative-value {
    color: var(--danger);
}

.neutral-value {
    color: var(--info);
}

.indicator-description {
    color: var(--text-muted);
    font-size: 14px;
}

/* Stock opportunity alert flags */
.opportunity-flag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(88, 224, 33, 0.3);
    transform: rotate(2deg);
    z-index: 100;
}

    .opportunity-flag::after {
        content: '';
        position: absolute;
        bottom: -8px;
        right: 10px;
        border-width: 0 0 10px 10px;
        border-style: solid;
        border-color: transparent transparent transparent var(--success);
        transform: rotate(45deg);
    }

/* Radar chart container for the valuation section */
.radar-container {
    width: 100%;
    height: 250px;
    position: relative;
    margin: 20px auto;
}

/* No data available message */
.no-data-message {
    background: rgba(89, 101, 249, 0.1);
    border: 1px solid var(--info);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

    .no-data-message i {
        font-size: 24px;
        color: var(--info);
        margin-bottom: 10px;
    }

    .no-data-message h5 {
        color: var(--text-light);
        margin-bottom: 10px;
    }

    .no-data-message p {
        color: var(--text-muted);
        margin-bottom: 0;
    }

/* Technical analysis result boxes */
.analysis-box {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

    .analysis-box.positive {
        background: rgba(88, 224, 33, 0.1);
        border-left: 4px solid var(--success);
    }

    .analysis-box.negative {
        background: rgba(255, 82, 82, 0.1);
        border-left: 4px solid var(--danger);
    }

    .analysis-box.neutral {
        background: rgba(89, 101, 249, 0.1);
        border-left: 4px solid var(--info);
    }

/* Indicator status chip styles */
.indicator-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
}

.chip-bullish {
    background-color: rgba(88, 224, 33, 0.2);
    color: var(--success);
}

.chip-bearish {
    background-color: rgba(255, 82, 82, 0.2);
    color: var(--danger);
}

.chip-neutral {
    background-color: rgba(255, 186, 0, 0.2);
    color: var(--warning);
}

/* Key metrics highlight section */
.key-metric-box {
    background: linear-gradient(135deg, rgba(88, 224, 33, 0.05) 0%, rgba(89, 101, 249, 0.1) 100%);
    border: 1px solid rgba(88, 224, 33, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .key-metric-box:hover {
        transform: translateY(-5px);
    }

.key-metric-value {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.key-metric-label {
    color: var(--text-muted);
    font-size: 14px;
}

/* Glowing effects */
.glow-effect-positive {
    box-shadow: 0 0 10px rgba(88, 224, 33, 0.5);
    animation: glow-positive 2s infinite alternate;
}

.glow-effect-negative {
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.5);
    animation: glow-negative 2s infinite alternate;
}

@keyframes glow-positive {
    from {
        box-shadow: 0 0 5px rgba(88, 224, 33, 0.5);
    }

    to {
        box-shadow: 0 0 15px rgba(88, 224, 33, 0.8);
    }
}

@keyframes glow-negative {
    from {
        box-shadow: 0 0 5px rgba(255, 82, 82, 0.5);
    }

    to {
        box-shadow: 0 0 15px rgba(255, 82, 82, 0.8);
    }
}

/* Add to your CSS file */
.metrics-dashboard .card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .metrics-dashboard .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25);
    }

.metrics-dashboard .icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metrics-dashboard .badge {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 7px;
}

.bg-gradient-dark {
    background: linear-gradient(45deg, #1e2735, #273244);
}

.risk-meter {
    position: relative;
    overflow: hidden;
}

/* Time Horizon styling for the table */
#opportunitiesTable .horizon-short-term {
    color: var(--danger-hover) !important;
    background-color: rgba(255, 82, 82, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

#opportunitiesTable .horizon-week {
    color: var(--warning-hover) !important;
    background-color: rgba(255, 186, 0, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

#opportunitiesTable .horizon-month {
    color: var(--primary-hover) !important;
    background-color: rgba(88, 224, 33, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

#opportunitiesTable .horizon-quarter {
    color: var(--success-hover) !important;
    background-color: rgba(88, 224, 33, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

/* Ensure hover color doesn't override our time horizon colors */
#opportunitiesTable tbody tr:hover td.horizon-short-term,
#opportunitiesTable tbody tr:hover td.horizon-week,
#opportunitiesTable tbody tr:hover td.horizon-month,
#opportunitiesTable tbody tr:hover td.horizon-quarter {
    color: inherit !important;
}

/* User profile dropdown styling */
.user-profile {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
    border: 1px solid transparent;
}

    .user-profile:hover {
        background-color: rgba(88, 224, 33, 0.1);
        border-color: var(--primary);
    }

    /* Make the entire dropdown clickable */
    .user-profile.dropdown-toggle::after {
        display: none; /* Hide the default caret */
    }

    .user-profile .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: var(--text-light);
    }

    .user-profile .user-name {
        font-weight: 500;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-profile .fa-chevron-down {
        font-size: 12px;
        color: var(--text-muted);
    }

/* Improved dropdown menu appearance */
.dropdown-menu {
    padding: 8px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    padding: 8px 16px;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: rgba(88, 224, 33, 0.1);
    }

    .dropdown-item i {
        width: 20px;
        text-align: center;
    }

    /* Special styling for logout button */
    .dropdown-item#logoutButton {
        color: var(--danger);
    }

        .dropdown-item#logoutButton:hover {
            background-color: rgba(255, 82, 82, 0.1);
        }

/* Auth Modal Styling - Matching dashboard.html */
.auth-modal .modal-content {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.auth-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

.auth-modal .modal-footer {
    border-top: 1px solid var(--border-color);
}

.auth-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.auth-modal .nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.auth-modal .nav-link {
    color: var(--text-muted);
    border: none;
}

    .auth-modal .nav-link.active {
        color: var(--primary);
        background-color: transparent;
        border-bottom: 2px solid var(--primary);
    }

/* Form styling specific for auth modal */
.auth-modal .form-label {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.auth-modal .ace-form-control,
.auth-modal .form-control {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .auth-modal .ace-form-control:focus,
    .auth-modal .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(88, 224, 33, 0.2);
        background-color: rgba(88, 224, 33, 0.05);
    }

/* Add style for the error messages */
.auth-modal .alert-danger {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--danger);
    border-color: rgba(255, 82, 82, 0.2);
}

/* Opportunities Table Token Access Styles */
.opportunities-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(19, 23, 34, 0.8);
    backdrop-filter: blur(8px);
    /* Remove display: flex from here */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 8px;
    pointer-events: auto;
}

.opportunities-blur-overlay.visible {
    display: flex;  /* Only show flex when we want it visible */
}

.opportunities-blur-overlay.hidden,
.opportunities-blur-overlay:not(.visible) {
    display: none;
}

/* Container for the table needs relative positioning */
.table-container {
    position: relative !important;
    overflow: hidden; /* Ensure the blur stays within bounds */
}

.token-access-button {
    padding: 15px 30px;
    font-size: 18px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
    z-index: 101; /* Ensure button stays on top */
}

.token-access-button {
    padding: 15px 30px;
    font-size: 18px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(88, 224, 33, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(88, 224, 33, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(88, 224, 33, 0);
    }
}

/* Timer positioning and styling */
.time-remaining-display {
    position: fixed; /* Change from absolute to fixed */
    top: 15px;
    right: 15px;
    background-color: rgba(19, 23, 34, 0.9);
    color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    z-index: 1000;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(88, 224, 33, 0.5);
    transition: all 0.3s ease;
    animation: pulse-border 2s infinite;
}

/* Enhanced styling for timer components */
.time-component {
    color: #58e021;
    font-weight: 700;
    font-size: 18px;
}

/* Pulse animation for border */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 224, 33, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(88, 224, 33, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(88, 224, 33, 0);
    }
}

/* Token Modal Styles - Matching Analysis Implementation */
.token-display {
    background: linear-gradient(45deg, #58e021, #2fae0e);
    border-radius: 16px;
    padding: 15px 30px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(88, 224, 33, 0.3);
}

    .token-display.insufficient {
        background: linear-gradient(45deg, #ff5252, #cc4141);
    }

.token-count {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.token-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.token-packages .token-package {
    background-color: #1e222d;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #2a2e39;
    transition: all 0.3s ease;
}

    .token-packages .token-package:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        border-color: #58e021;
    }

    .token-packages .token-package.best-value {
        border-color: #ffba00;
        position: relative;
    }

.best-value-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffba00;
    color: #131722;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.package-price {
    font-size: 24px;
    font-weight: 700;
    color: #f5f5f5;
    margin: 10px 0;
}

.package-tokens {
    color: #58e021;
    font-weight: 600;
}

.countdown-timer {
    background-color: #131722;
    border-radius: 12px;
    padding: 15px;
    margin: 15px auto;
    max-width: 300px;
}

.time-remaining {
    font-size: 28px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 10px;
}

    .time-remaining .hours,
    .time-remaining .minutes,
    .time-remaining .seconds {
        color: #58e021;
    }

.benefits .list-group-item {
    color: #f5f5f5;
    border-color: #2a2e39;
    background-color: transparent;
}

    .benefits .list-group-item:before {
        content: "✓";
        color: #58e021;
        margin-right: 10px;
        font-weight: bold;
    }

/* Token Modal Content */
#tokenModalBody {
    color: #f5f5f5;
    background-color: #131722;
}

#tokenModalFooter {
    border-top: 1px solid #2a2e39;
    background-color: #131722;
}

.modal-content {
    background-color: #131722;
    border: 1px solid #2a2e39;
}

.modal-header {
    border-bottom: 1px solid #2a2e39;
    background-color: #131722;
    color: #f5f5f5;
}

/* Additional Modal Styling */
.modal-dialog {
    max-width: 500px;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
}

.modal-body {
    padding: 0; /* Content will have its own padding */
}

.modal-footer {
    padding: 15px 20px;
}

.token-info {
    color: #f5f5f5;
}

.token-usage-info, .bypass-option, .benefits {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

    .token-usage-info h5, .bypass-option h5, .benefits h5 {
        font-size: 18px;
        margin-bottom: 10px;
    }

.list-group {
    background-color: transparent;
    border: none;
}

.list-group-item {
    position: relative;
    padding-left: 30px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

    .list-group-item:last-child {
        border-bottom: none;
    }

    .list-group-item:before {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

/* Lightning bolt animation for the modal icon */
@keyframes lightning-pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(88, 224, 33, 0.5));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(88, 224, 33, 0.8));
        transform: scale(1.1);
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(88, 224, 33, 0.5));
        transform: scale(1);
    }
}

#loginRequiredModal .fa-bolt {
    animation: lightning-pulse 2s infinite;
    color: var(--primary);
    margin-top: 20px; /* Add more space between the header and icon */
    margin-bottom: 20px; /* Add more space below the icon */
}

/* Enhanced list group styling */
#loginRequiredModal .list-group-item {
    color: var(--text-light);
    border-color: rgba(42, 46, 57, 0.5);
    padding: 10px 15px;
}

    #loginRequiredModal .list-group-item:before {
        content: "✓";
        color: var(--primary);
        margin-right: 10px;
        font-weight: bold;
    }

/* Modal header styling */
#loginRequiredModal .modal-header {
    background: linear-gradient(90deg, rgba(19, 23, 34, 0.95) 0%, rgba(30, 34, 45, 0.95) 100%);
    border-bottom: 1px solid var(--primary);
    padding: 15px 20px;
}

/* Modal styling */
#loginRequiredModal .modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

#loginRequiredModal h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#loginRequiredModal h5 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Button hover effects */
#loginRequiredModal .ace-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Custom benefits list styling */
#loginRequiredModal .benefits-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

#loginRequiredModal .benefit-item {
    position: relative;
    padding: 10px 10px 10px 42px; /* Increased left padding for icon space */
    margin-bottom: 8px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(42, 46, 57, 0.5);
    color: var(--text-light);
}

    #loginRequiredModal .benefit-item::before {
        content: "⚡"; /* Lightning emoji as bullet point */
        position: absolute;
        left: 15px; /* Position the icon with good spacing */
        color: var(--primary);
    }

/* Table sorting indicators */
#opportunitiesTable th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

    #opportunitiesTable th.sortable:after {
        content: "↕";
        position: absolute;
        right: 5px;
        color: #aaa;
    }

#opportunitiesTable th.sort-asc:after {
    content: "↑";
    color: var(--primary);
}

#opportunitiesTable th.sort-desc:after {
    content: "↓";
    color: var(--primary);
}

/* Add this CSS to opportunities.html or your CSS file */
.metric-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .metric-card:hover {
        background: rgba(255,255,255,0.05) !important;
        transform: translateY(-2px);
    }

.current-status-section {
    position: relative;
    overflow: hidden;
}

    .current-status-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(88, 224, 33, 0.1), transparent);
        animation: statusScan 4s infinite;
    }

@keyframes statusScan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

#processLog::-webkit-scrollbar {
    width: 8px;
}

#processLog::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

#processLog::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.log-entry {
    margin-bottom: 2px;
    word-wrap: break-word;
}

.badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}


