/* Custom Theme Styling */
:root {
    --primary-color: #0dcaf0;
    --primary-dark: #08a1c0;
    --secondary-color: #6c757d;
    --background-color: #1a1f2c;
    --text-color: #f8f9fa;
    --success-color: #20c997;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --card-bg: #242938;
    --border-color: #495057;
    --hover-color: #2a3040;
}

body {
    background: linear-gradient(135deg, #161b27, #1e2432);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}

/* Analysis alert styling */
.alert-primary {
    background: linear-gradient(145deg, #1a1f2c, #242938);
    color: var(--text-color);
    border-color: #333945;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Make form text visible on dark backgrounds */
.form-text {
    color: var(--text-color) !important;
    opacity: 0.8;
}

/* Fix button styling */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    /* White text on gradient background */
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Subtle text shadow for better readability */
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
    color: white;
    /* Keep white text on hover */
}

/* Analysis Progress Styles */
.analysis-progress-container {
    padding: 8px;
}

.analysis-progress-bar-container {
    height: 8px;
    background-color: rgba(13, 202, 240, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0 15px 0;
}

.analysis-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.analysis-progress-percentage {
    font-weight: bold;
    color: var(--primary-color);
}

.analysis-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.analysis-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: rgba(108, 117, 125, 0.5);
    z-index: 1;
}

.analysis-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.analysis-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.analysis-step.active .analysis-step-icon {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.7);
    transform: scale(1.1);
}

.analysis-step.completed .analysis-step-icon {
    background-color: var(--success-color);
}

.analysis-step-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.analysis-step.active .analysis-step-text,
.analysis-step.completed .analysis-step-text {
    color: var(--text-color);
}

:root {
    --accent-color: #ff3e88;
}

body {
    background-color: var(--background-color);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-color);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 247, 255, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 35%, #A8A8A8 50%, #C0C0C0 65%, #E8E8E8 100%) !important;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5 {
    color: #000000 !important;
    text-shadow: none;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white !important;
    padding: 12px;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 247, 255, 0.2);
    color: white !important;
}

.navbar {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--text-color) !important;
    font-weight: 700;
}

.table {
    color: #000000;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Ensure table container has rounded corners */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Remove individual table borders when inside responsive container */
.table-responsive .table {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Fix for table row backgrounds to show properly */
.table tbody tr {
    background-color: rgba(255, 255, 255, 0.05);
}

.table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.1);
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.table thead th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    color: #000000 !important;
    text-align: center;
}

.table td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.loading {
    background: rgba(26, 31, 44, 0.9);
    backdrop-filter: blur(5px);
}

.spinner-border {
    color: var(--secondary-color) !important;
}

/* Add glass morphism effect to form sections */
.card-body form>div {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Add glow effect to headings */
h5,
h6 {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

/* Update text colors */
.form-label,
.form-check-label,
.card-body label,
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Make section titles more visible */
.card-body h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Ensure checkbox text is visible */
.form-check {
    color: rgba(255, 255, 255, 0.9);
}

/* Add some opacity to disabled inputs */
.form-control:disabled,
.form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Adjust container max-width and padding */
.container {
    max-width: 98% !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Adjust simulation parameters width to be smaller */
.col-md-4 {
    width: 20% !important;
    /* Reduced from 26.67% */
}

/* Adjust results section width to be wider */
.col-md-8 {
    width: 80% !important;
    /* Increased from 73.33% */
}

/* Add responsive styles */
@media (max-width: 768px) {

    /* Reset column widths on mobile */
    .col-md-4,
    .col-md-8 {
        width: 100% !important;
        margin-bottom: 1rem;
    }

    /* Adjust card padding for mobile */
    .card-body {
        padding: 1rem;
    }

    /* Make table responsive on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust form sections padding */
    .card-body form>div {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Make buttons more touch-friendly */
    .btn {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        min-height: 44px;
        /* Better touch targets */
    }

    /* Adjust form inputs for better mobile interaction */
    .form-control {
        height: 44px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    /* Adjust table font size for mobile */
    .table {
        font-size: 0.875rem;
    }

    /* Update sticky header styling */
    .table thead th {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 35%, #A8A8A8 50%, #C0C0C0 65%, #E8E8E8 100%) !important;
        color: #000000 !important;
        z-index: 1;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Add horizontal scroll indicator for table */
    .table-responsive::after {
        content: '← Scroll →';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        color: var(--text-color);
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

    .table-responsive.scrolled::after {
        opacity: 0;
    }

    /* Adjust navbar for mobile */
    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Add some spacing between cards on mobile */
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Add styles for very small screens */
@media (max-width: 375px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .card-header {
        padding: 1rem;
    }

    .table {
        font-size: 0.75rem;
    }
}

/* Add smooth transitions for responsive changes */
.card,
.form-control,
.btn {
    transition: all 0.3s ease;
}

/* Add modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--background-color, #1a1a1a);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    width: 90%;
}

.close {
    color: var(--text-color, #aaa);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.help-content {
    color: var(--text-color, #fff);
    line-height: 1.6;
}

.help-content h1,
.help-content h2,
.help-content h3 {
    color: var(--accent-color, #00ff9d);
    margin-bottom: 1rem;
}

.help-content ul,
.help-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.help-content li {
    margin-bottom: 0.5rem;
}

/* Add custom button styles for file and config buttons */
.btn-dark-gradient {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-dark-gradient:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px);
}

/* Login form styles */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 400px;
    width: 90%;
}

#mainContent {
    display: none;
    /* Hide main content by default */
}

#loginContent {
    display: none;
    /* Hide login by default */
    background-image: url('TheMoneyArkImageSmall.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

/* Dark overlay for better text readability */
#loginContent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Ensure login content is above the overlay */
#loginContent>* {
    position: relative;
    z-index: 2;
}

/* MIND-BLOWING title styling */
.login-title {
    color: #fff;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 4.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347, #FFD700);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 40px rgba(255, 165, 0, 0.6)) drop-shadow(0 0 60px rgba(255, 99, 71, 0.4)) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.9));
    position: relative;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Add a subtle glow effect */
.login-title::before {
    content: 'THE MONEY ARK';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347, #FFD700);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    filter: blur(2px);
    z-index: -1;
    opacity: 0.7;
}

/* Responsive font sizing */
@media (max-width: 768px) {
    .login-title {
        font-size: 3rem;
        letter-spacing: 2px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
}

/* Add this CSS if not already present */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Very light, subtle colors */
.high-performer td {
    background-color: rgb(182, 255, 199) !important;
}

.low-performer td {
    background-color: rgb(255, 158, 168) !important;
}

/* Add these to your existing styles */
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: var(--hover-color);
    color: var(--secondary-color);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    /* Changed from var(--primary-color) to white */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Adding text shadow for better readability */
}

#databaseStatus {
    transition: all 0.3s ease;
}

.alert {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.alert-success {
    border-left: 4px solid var(--secondary-color);
}

.alert-danger {
    border-left: 4px solid var(--accent-color);
}

.alert-info {
    border-left: 4px solid #0dcaf0;
}

/* Ensure modals are outside the blur effect */
#actionModal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

#actionModal .modal-content {
    background-color: #222;
    color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #444;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    filter: none !important;
    -webkit-filter: none !important;
}

#actionModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

#actionModal .close:hover,
#actionModal .close:focus {
    color: #fff;
    text-decoration: none;
}

#actionModal h5 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

#actionModal .form-label {
    color: #fff;
}

#actionModal .form-text {
    color: #aaa;
}

#actionModal .form-control {
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
}

#actionModal .form-control:focus {
    background-color: #444;
    border-color: #666;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

#actionModal .alert {
    background-color: #333;
    border-color: #444;
    color: #ddd;
}

#actionModal .alert-info {
    background-color: #264653;
    border-color: #2a9d8f;
}

#actionModal .alert-warning {
    background-color: #e76f51;
    border-color: #f4a261;
}

#actionModal .alert-secondary {
    background-color: #444;
    border-color: #555;
}

#actionModal .modal-buttons {
    margin-top: 20px;
    text-align: right;
}

#actionModal .btn-secondary {
    background-color: #555;
    border-color: #666;
}

#actionModal .btn-primary {
    background-color: #2a9d8f;
    border-color: #264653;
}

/* Override any blur effects */
body.blur #actionModal,
body.blur #actionModal * {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Style for when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Remove any blur effects */
.blur {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Make sure the modal is on top */
#actionModal {
    z-index: 9999 !important;
}

/* Portfolio Exit Modal Styles */
#portfolioExitModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

#portfolioExitModal .modal-content {
    background-color: #222;
    color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #444;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

#portfolioExitModal .close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#portfolioExitModal .close:hover {
    color: #fff;
}

#portfolioExitModal h2 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

#portfolioExitModal .form-group {
    margin-bottom: 1rem;
}

#portfolioExitModal .form-control {
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    width: 100%;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
}

#portfolioExitModal .form-control:focus {
    background-color: #444;
    border-color: #666;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

#portfolioExitModal .form-text {
    color: #aaa;
}

#portfolioExitModal .alert {
    background-color: #333;
    border-color: #444;
    color: #ddd;
}

#portfolioExitModal .alert-info {
    background-color: #264653;
    border-color: #2a9d8f;
}

#portfolioExitModal .alert-warning {
    background-color: #e76f51;
    border-color: #f4a261;
}

#portfolioExitModal .modal-footer {
    padding-top: 1rem;
    border-top: 1px solid #444;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

#portfolioExitModal .btn-secondary {
    background-color: #555;
    border-color: #666;
    color: #fff;
}

#portfolioExitModal .btn-primary {
    background-color: #2a9d8f;
    border-color: #264653;
    color: #fff;
}

#portfolioExitModal .form-control-static {
    color: #fff;
    padding: 0.375rem 0;
}

/* Style for Pi Cycle rows in Required Actions */
.pi-cycle-row td {
    background-color: rgba(255, 230, 254, 0.927) !important;
    /* Light greenish with transparency */
    transition: all 0.3s ease;
    /* Smooth transition for hover effect */
}

.pi-cycle-row:hover td {
    background-color: rgba(253, 227, 253, 0.903) !important;
    /* Slightly stronger on hover */
}

/* Style for Above 80 rows in portfolio */
.above-80-row td {
    background-color: rgba(232, 255, 232, 0.895) !important;
    /* Light greenish with transparency */
    transition: all 0.3s ease;
    /* Smooth transition for hover effect */
}

.above-80-row:hover td {
    background-color: rgba(227, 255, 227, 0.877) !important;
    /* Slightly stronger on hover */
}

.pi-cycle-star {
    display: inline-block;
    color: #FFD700;
    /* Gold/yellow color */
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    /* Glow effect */
    animation: pulse 2s infinite;
    /* Subtle pulsing effect */
    margin-left: 5px;
    vertical-align: middle;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    /* Black outline effect */
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

.metric-card {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.metric-card h6 {
    margin-bottom: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-card h4 {
    margin: 0;
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px 15px 0 0 !important;
}

.card-header h5 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
}

.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-dark-gradient {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-dark-gradient:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px);
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    padding-top: 20px;
}

.nav-tabs .nav-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-right: 5px;
    border-radius: 10px 10px 0 0;
}

.nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.pi-cycle-row {
    background-color: rgba(255, 215, 0, 0.1) !important;
    border-left: 4px solid #ffd700 !important;
}

.pi-cycle-star {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.analysis-progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.analysis-progress-bar-container {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.analysis-progress-bar {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.analysis-progress-percentage {
    font-weight: bold;
    color: #4CAF50;
}

.analysis-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.analysis-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.analysis-step.active {
    opacity: 1;
}

.analysis-step.completed {
    opacity: 1;
    color: #4CAF50;
}

.analysis-step-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 16px;
}

.analysis-step.active .analysis-step-icon {
    background: #4CAF50;
    color: white;
}

.analysis-step.completed .analysis-step-icon {
    background: #4CAF50;
    color: white;
}

.analysis-step-text {
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

/* Market Health Gauge Styles */
.market-health-gauge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px 10px 20px;
}

.market-health-gauge canvas {
    background: transparent;
    margin-bottom: 10px;
}

.gauge-info {
    text-align: center;
    margin-top: 5px;
}

.gauge-info h3 {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.gauge-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

#gaugeNeedle {
    transition: transform 0.5s ease-in-out;
    transform-origin: 100px 100px;
}

.market-status .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* ApexCharts Gauge Enhancements */
#marketHealthGauge {
    margin-top: -10px;
}

#marketHealthGauge .apexcharts-canvas {
    margin: 0 auto;
}

#marketHealthGauge .apexcharts-radialbar-track {
    opacity: 0.3;
}

#marketHealthGauge .apexcharts-datalabel-label {
    fill: #ffffff !important;
    font-size: 14px !important;
}

#marketHealthGauge .apexcharts-datalabel-value {
    fill: #ffffff !important;
    font-weight: bold !important;
}

/* Fix Portfolio History arrow color */
#portfolioHistoryArrow {
    color: #000 !important;
}

/* Fix Backtest Reports tab header title color */
#back-testing .card-header .card-title,
#back-testing .card-header h4 {
    color: #000 !important;
    text-shadow: none !important;
}