/* 
background dark: #0B1220 
teal executive: #0A5C58
teal primary: #14B8A6
cyan precision :#00C2FF
text : #D1D9E0
*/



#content{
    width: 100%;
    max-width: 1800px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

body {
    /* margin-top: 60px;  */
    font-family: Helvetica, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin:0px;
}

.ti{
    /* text-shadow: 
    0.1px 0 0 currentColor,
    -0.1px 0 0 currentColor,
    0 0.1px 0 currentColor,
    0 -0.1px 0 currentColor; */
    font-size: 18px;
}

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 64px;
    padding: 0 24px;

    background: #0b1220; 
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.beta-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    padding: 4px 8px;
    border-radius: 999px;

    background: rgba(15, 118, 110, 0.15); /* teal subtle */
    color: #5eead4; /* light teal */

    border: 1px solid rgba(15, 118, 110, 0.4);
    white-space: nowrap;
}

#user-profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.user-info {
    color: #E5E7EB;
}

.user-info #user-name {
    color: #E5E7EB;
}

.user-info #user-plan {
    color: #1FA2B8;
}

.user-strides-balance {
    color: #E5E7EB;
}

.user-strides-balance span {
    color: #CBD5F5;
}

.user-strides-balance .balance-value {
    color: #E5E7EB;
}

.user-avatar{
    width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); display: flex; align-items: center; justify-content: center; font-weight: 600; color: white;
}
div.user-strides-balance,.user-avatar,.user-info,.logout-link{
    
    vertical-align: middle;
}

span#user-strides-balance,#user-purchased-balance{
    text-align:right;
    /* min-width:0px; */
    display:block;
    float:right;
    margin-right:23px;
    /* margin-left: auto; */
}

.balance-value{
    display: inline-block;
    min-width: 28px;
    text-align: right;
}

#main-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
}

#main-menu a {
    color: white;
    text-decoration: none;
    margin: 0px; /* Adjusted margin for centered alignment */
    font-size: 20px;
    display: flex;
    align-items: center;
}

#main-menu a:hover {
    color: #ddd;
}

#main-menu i {
    margin-right: 8px;
}

#asset-search-input{
    width: 200px;
}


.header-search {
    position: relative;
    flex: 0 0 320px;
}

.header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.header-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #111827;
    color: #e5e7eb;
    font-size: 14px;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.header-search-results.active {
    display: block;
}

.header-search-item,
.header-search-empty {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.header-search-item:hover {
    background: rgba(148, 163, 184, 0.12);
}

.header-search-symbol {
    font-weight: 600;
    color: #f8fafc;
}

.header-search-name {
    color: #cbd5f5;
    font-size: 12px;
    margin-top: 2px;
}

.header-search-meta {
    display: flex;
    flex-direction: column;
}

.header-search-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.2);
    color: #5eead4;
    white-space: nowrap;
}

.header-search-tag.crypto {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

@media (max-width: 1200px) {
    .header-search {
        flex-basis: 240px;
    }
}

@media (max-width: 1024px) {
    #header {
        flex-wrap: wrap;
        height: auto;
        gap: 12px;
        padding: 12px 16px;
    }

    .header-brand {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    #main-menu {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        order: 3;
    }

    #user-profile-section {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        order: 2;
    }

    .user-profile-link {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-search {
        max-width: 90%;
        flex: 1 1 100%;
        order: 4;
    }

    #asset-search-input {
        width: 100%;
    }
}

@media (max-width: 640px) {
    #main-menu a {
        font-size: 16px;
    }

    .beta-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}



h1, h2, h3 {
    color: #444;
    margin:0px 0px 10px 0px;
}

.listing-title {
    max-width: 1200px;
    margin: 16px 0 0;
    padding: 0;
    font-weight: 700;
}

button {
    background-color: #0f766e;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}


button:hover {
    background-color: #0056b3;
}

th, td {
    padding: 4px 7px;
}

#assets-list {
    border-collapse: collapse;
    float: left;
}

th {
    background-color: #eee;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}


#filter-table {
    width: 100%;
    max-width:350px;
    border-collapse: collapse;
    margin-top: 20px;
}

#filter-table th, #filter-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#filter-table th {
    background-color: #f2f2f2;
}

#filter-table select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

#filter-table select option {
    font-size: 15px;
}
#filter-table table tr,#filter-table table td{
    margin:0px;
    padding:0px 2px;
    border:0px;
}

#filter-table input[type="text"], #filter-table input[type="number"] {
    width: 60px;
    font-size: 15px;
    padding: 3px;
    margin:0px;

    box-sizing: border-box;
}

#column-controls label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #333;
}

#column-controls input[type="checkbox"] {
    margin-right: 10px;
}

 /* Sidebar styles */
 .sidebar {
    /* height: calc(100% - 60px); Adjust height to account for main menu */
    width: 300px;
    /* position: fixed; */
    /* z-index: 1000; */
    top: 10px; /* Start below the main menu */
    left: 0;
    background-color: rgba(244, 244, 249, 0.9);
    overflow-x: hidden;
    padding-top: 0px;
    display: block;
    float: left;
}

.toplinks {
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
}

a{
    text-decoration: none;
    color: #0f766e;
}
a:hover {
    color: #007bff;
}

/* .sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 20px;
    color: #333;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #007bff;
} */

.sidebar .closebtn {
    display: none; /* Hide close button */
}

.sidebar{
    border-right: 2px solid #ddd;
    padding-right:7px;
}


#assets-list {
    width: 100%;
    border-collapse: collapse;
}

#assets-list thead th {
    position: sticky;
    top: 0;
    background-color: #f1f1f1;
    z-index: 1;
    cursor: pointer;
}

#assets-list th, #assets-list td {
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#screener-table-container {
    max-height: 1000px;
    overflow-y: auto;
}
#scoring-formula {
    width: 700px;
}

#backtests-table td.symbol {
    cursor: pointer;
    color: #0f766e;
}
#backtests-table td.symbol:hover {
    color: #007bff;
}

.strategies .info-tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

#toast {
    visibility: hidden;
    width: 800px;
    margin: 20px auto;
    /* margin-right: auto; */
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 0;
    right: 0;
    top: 30px;
    font-size: 17px;
}

/* Footer Styles */
#footer-hr{
    margin-top:20px;
}
#footer {
    background: #0B1220;
    color: #ffffff;
    margin-top: auto;
    border-top: 1px solid #333;
}

h4{
    margin:0px;
}

.legal-page {
    max-width: 1700px;
    margin: 60px auto;
    padding: 0 20px;
}

.doc-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.doc-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fafbfc;
}

.doc-sidebar-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 8px;
}

.doc-sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.doc-sidebar li {
    margin: 4px 0;
}

.doc-sidebar a {
    color: #0f766e;
    text-decoration: none;
    font-size: 0.9rem;
}

.doc-sidebar a:hover {
    text-decoration: underline;
}

.doc-content {
    flex: 1 1 auto;
    min-width: 0;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #255381;
}

.legal-page p {
    color: #444;
    font-size: 1rem;
}

/* Legal documents: always keep list markers and indentation visible. */
.legal-page ul,
.legal-page ol,
.sales-terms-body ul,
.sales-terms-body ol {
    list-style-position: outside;
    padding-left: 22px;
    margin: 8px 0 12px;
}

.legal-page ul,
.sales-terms-body ul {
    list-style-type: disc;
}

.legal-page ol,
.sales-terms-body ol {
    list-style-type: decimal;
}

.legal-page li,
.sales-terms-body li {
    margin: 3px 0;
}

.sales-terms-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.sales-terms-modal.active {
    display: flex;
}

.sales-terms-content {
    background: #ffffff;
    max-width: 820px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px 24px;
}

.sales-terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sales-terms-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}

.sales-terms-close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
}

.sales-terms-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 12px;
    
}

.sales-terms-tab {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #0f766e;
}

.sales-terms-tab.active {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
}

.sales-terms-body {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    max-height: 360px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #374151;
}

/* Keep legal TOC numbering visible inside modal bodies. */
.sales-terms-body nav.toc ol,
.sales-terms-body .toc ol {
    list-style: decimal;
    list-style-position: outside;
    padding-left: 22px;
    margin: 8px 0 12px;
}

.sales-terms-body nav.toc li,
.sales-terms-body .toc li {
    margin: 3px 0;
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.legal-toc-label {
    color: #6b7280;
    font-weight: 600;
}

.legal-toc a {
    color: #0f766e;
    text-decoration: underline;
}

.sales-terms-body.hidden {
    display: none;
}

.sales-terms-footer {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sales-terms-hint {
    font-size: 0.85rem;
    color: #6b7280;
}

.sales-terms-accept {
    background: #0f766e;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.sales-terms-accept:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.doc-summary {
    margin: 16px 0 20px;
    padding: 12px 16px;
    background: #f5f7f9;
    border-left: 4px solid #0f766e;
    border-radius: 8px;
}

.doc-summary p {
    margin: 0;
}

.doc-accordion {
    margin: 14px 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.doc-accordion summary {
    cursor: pointer;
    font-weight: 700;
    color: #255381;
    outline: none;
    list-style: none;
}

.doc-accordion summary::-webkit-details-marker {
    display: none;
}

.doc-accordion summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.doc-accordion[open] summary::before {
    transform: rotate(90deg);
}

.doc-accordion h3 {
    margin-top: 12px;
    color: #255381;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-legal-only {
    grid-template-columns: 2fr 1fr;
    align-items: start;
    padding: 40px 0 20px;
}

.footer-section h4 {
    color: #0f766e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand i {
    font-size: 1.8rem;
    color: #0f766e;
}

.footer-brand h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    color: #0f766e;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #0f766e;
    color: #1a1a1a;
    border-color: #0f766e;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #0f766e;
}

.footer-bottom {
    width:100%;
    border-top: 1px solid #333;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #888;
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #0f766e;
}

.footer-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-column a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links-column a:hover {
    color: #0f766e;
}

.footer-legal-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-legal-col a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-legal-col a:hover {
    color: #0f766e;
}

.footer-legal-lang {
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-flag {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.95rem;
    line-height: 1;
    vertical-align: text-top;
}

.footer-legal-disclaimer {
    color: #9aa0a6;
    font-size: 0.85rem;
    margin-top: 16px;
}

.footer-footnote {
    /* text-align: center; */
    color: #b0b0b0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-footnote p {
    margin: 4px 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-grid {
        grid-template-columns: 1fr;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Exploration Statistics Styles */

#explorations-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 0 10px;
    box-sizing: border-box;
}

@media (min-width: 1440px) {
    #explorations-container {
        max-width: 1600px;
    }
}

@media (min-width: 1720px) {
    #explorations-container {
        max-width: 1800px;
    }
}

#explorations-table-container {
    overflow-x: auto;
    margin-top: 10px;
}

.exploration-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.exploration-primary-action:hover {
    background: #0b5f57;
    transform: translateY(-1px);
}

.exploration-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.exploration-cta-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exploration-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #1E293B;
    border: 1px solid rgba(31, 162, 184, 0.4);
    color: #E5E7EB;
    font-size: 0.85rem;
    font-weight: 600;
}

.exploration-meta-pill i {
    color: #1FA2B8;
}

.explorations-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    margin-top: 18px;
    background: #F3F4F6;
    color: #0B1220;
    border: 1px solid rgba(15, 76, 92, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(11, 18, 32, 0.18);
}

.explorations-table th,
.explorations-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 76, 92, 0.2);
    font-size: 0.95rem;
    color: #0B1220;
}

.explorations-table thead th {
    background: #1E293B;
    color: #E5E7EB;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}

.explorations-table tbody tr:nth-child(even) {
    background: #E7EEF2;
}

.explorations-table tbody tr:hover {
    background: #D7EEF3;
}

.explorations-table a {
    color: #0F4C5C;
}

.explorations-table a:hover {
    color: #1FA2B8;
}

.exploration-status-icon {
    font-size: 20px;
}

.exploration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exploration-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    color: #0B1220;
    background: #E7EEF2;
}

.exploration-action.primary {
    background: rgba(31, 162, 184, 0.18);
    color: #0B1220;
    border-color: rgba(31, 162, 184, 0.5);
}

.exploration-action.primary:hover {
    background: rgba(31, 162, 184, 0.3);
}

.exploration-action.warning {
    background: rgba(255, 196, 0, 0.18);
    color: #0B1220;
    border-color: rgba(255, 196, 0, 0.5);
}

.exploration-action.warning:hover {
    background: rgba(255, 196, 0, 0.3);
}

.exploration-action.ghost {
    background: #F3F4F6;
    color: #0B1220;
    border-color: rgba(15, 76, 92, 0.4);
}

.exploration-action.ghost:hover {
    background: #E1EAED;
}

@media (max-width: 1024px) {
    .explorations-table {
        min-width: 820px;
    }

    .explorations-table th,
    .explorations-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .exploration-actions {
        gap: 8px;
    }
}

@media (max-width: 900px) {
    .explorations-table {
        min-width: 700px;
    }

    .explorations-table th:nth-child(8),
    .explorations-table td:nth-child(8),
    .explorations-table th:nth-child(9),
    .explorations-table td:nth-child(9) {
        display: none;
    }
}

@media (max-width: 640px) {
    .explorations-table {
        min-width: 600px;
    }

    .explorations-table th:nth-child(1),
    .explorations-table td:nth-child(1),
    .explorations-table th:nth-child(4),
    .explorations-table td:nth-child(4),
    .explorations-table th:nth-child(10),
    .explorations-table td:nth-child(10) {
        display: none;
    }

    .exploration-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.stats-section {
    margin-bottom: 40px;
}

.stats-section h2 {
    color: #00d4ff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.strategy-stats {
    margin-bottom: 50px;
}

.strategy-stats h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.stat-card.positive {
    border-left: 4px solid #4CAF50;
}

.stat-card.negative {
    border-left: 4px solid #f44336;
}

.stat-card.neutral {
    border-left: 4px solid #FFC107;
}

.stat-header {
    margin-bottom: 20px;
}

.stat-header h4 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 1.2rem;
}

.strategy-name {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.stat-value {
    text-align: center;
    margin-bottom: 20px;
}

.score {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.score.positive {
    color: #4CAF50;
}

.score.negative {
    color: #f44336;
}

.score.neutral {
    color: #FFC107;
}

.metric {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    text-align: center;
}

.detail-item .label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.detail-item .value {
    color: #ffffff;
    font-weight: 500;
}

/* Heatmap Styles */
.heatmap-section {
    margin-bottom: 50px;
}

.heatmap-section h2 {
    color: #00d4ff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.heatmap-container {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #333;
}

.heatmap-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.high {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.legend-color.medium {
    background: linear-gradient(135deg, #FFC107, #FFCA28);
}

.legend-color.low {
    background: linear-gradient(135deg, #f44336, #EF5350);
}

.heatmap-grid {
    display: flex;
    flex-direction: column;
}

.heatmap-header {
    display: grid;
    grid-template-columns: 200px repeat(auto-fit, minmax(80px, 1fr));
    gap: 2px;
    margin-bottom: 2px;
}

.corner-cell {
    background: #333;
    padding: 15px;
    font-weight: bold;
    color: #ffffff;
    border-radius: 8px 0 0 0;
}

.header-cell {
    background: #2a2a2a;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
}

.heatmap-row {
    display: grid;
    grid-template-columns: 200px repeat(auto-fit, minmax(80px, 1fr));
    gap: 2px;
    margin-bottom: 2px;
}

.row-label {
    background: #2a2a2a;
    padding: 15px;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    align-items: center;
    border-radius: 0 0 0 8px;
}

.heatmap-cell {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    border-radius: 0 0 8px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.heatmap-cell:hover {
    transform: scale(1.05);
}

.heatmap-cell.high {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.heatmap-cell.medium {
    background: linear-gradient(135deg, #FFC107, #FFCA28);
}

.heatmap-cell.low {
    background: linear-gradient(135deg, #f44336, #EF5350);
}

/* Summary Section */
.summary-section {
    margin-bottom: 40px;
}

.summary-section h2 {
    color: #00d4ff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.summary-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: #00d4ff;
    transform: translateY(-3px);
}

.summary-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.summary-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00d4ff;
}

/* Strategy Heatmap Styles */
.strategy-heatmap {
    margin-top: 20px;
}

.heatmap-strategy-header {
    display: grid;
    grid-template-columns: 80px repeat(auto-fit, minmax(60px, 1fr));
    gap: 2px;
    margin-bottom: 2px;
}

.heatmap-corner {
    background: #2a2a2a;
    padding: 10px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    border-radius: 4px;
}

.heatmap-sell-header {
    background: #1a1a1a;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    border-radius: 4px;
}

.heatmap-strategy-row {
    display: grid;
    grid-template-columns: 80px repeat(auto-fit, minmax(60px, 1fr));
    gap: 2px;
    margin-bottom: 2px;
}

.heatmap-buy-label {
    background: #2a2a2a;
    padding: 10px;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.heatmap-strategy-cell {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heatmap-strategy-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.heatmap-strategy-cell.high {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.heatmap-strategy-cell.medium {
    background: linear-gradient(135deg, #FFC107, #FFCA28);
}

.heatmap-strategy-cell.low {
    background: linear-gradient(135deg, #f44336, #EF5350);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .heatmap-strategy-header,
    .heatmap-strategy-row {
        grid-template-columns: 70px repeat(auto-fit, minmax(50px, 1fr));
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .heatmap-strategy-header,
    .heatmap-strategy-row {
        grid-template-columns: 60px repeat(auto-fit, minmax(45px, 1fr));
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Screener Page Styles */
.screener-dashboard {
    margin-bottom: 40px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screener-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.overview-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.overview-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

.overview-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.overview-content p {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.overview-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.screener-configurations-section {
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.configurations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.configuration-card {
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.configuration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.card-header {
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.config-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.config-info h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.config-info p {
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.card-actions {
    padding: 0 25px 20px;
    display: flex;
    gap: 12px;
}

.card-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.config-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.85rem;
}

.meta-item i {
    color: #007bff;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 25px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.add-configuration-section {
    margin-bottom: 50px;
}

.add-config-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.3);
}

.add-config-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 25px;
}

.add-config-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.add-config-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.add-config-info p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.feature-list i {
    color: #28a745;
    font-size: 0.9rem;
}

.add-config-actions {
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


#scoring-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0 30px;
}
.scoring-profile {
    background: linear-gradient(160deg, #0B1220 0%, #1E293B 100%);
    color: #E5E7EB;
    padding: 24px;
    border: 1px solid #0F4C5C;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(11, 18, 32, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scoring-profile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(31, 162, 184, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.scoring-profile:hover {
    transform: translateY(-4px);
    border-color: #1FA2B8;
    box-shadow: 0 18px 36px rgba(11, 18, 32, 0.6);
}

.scoring-profile:hover::before {
    opacity: 1;
}

.scoring-profile h2 {
    color: #E5E7EB;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.scoring-profile-desc {
    color: rgba(229, 231, 235, 0.75);
    margin: 0;
    line-height: 1.5;
}

.scoring-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.scoring-profile-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scoring-profile-star {
    cursor: pointer;
    font-size: 16px;
    color: #1FA2B8;
}

.scoring-profile-icon {
    width: 32px;
    height: 32px;
    font-size: 32px;
    color: #1FA2B8;
}

.scoring-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scoring-profile-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.scoring-profile-action.primary {
    background: #0f766e;
    color: #ffffff;
    border: 1px solid transparent;
}

.scoring-profile-action.primary:hover {
    background: #0b5f57;
    transform: translateY(-1px);
}

.scoring-profile-action.ghost {
    background: transparent;
    color: #E5E7EB;
    border: 1px solid rgba(31, 162, 184, 0.6);
}

.scoring-profile-action.ghost:hover {
    background: rgba(31, 162, 184, 0.18);
}

.scoring-profile-add {
    background: #0f766e;
    color: #ffffff;
    border: 1px solid transparent;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.scoring-profile-add:hover {
    background: #0b5f57;
    transform: translateY(-1px);
}

#reinvest-options {
    position: relative;
}

#reinvest-options .tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    width: 350px;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    top: 0px;
    right: 10px;
}

.factor-row {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin:0px;
    padding:0px;
}

.factor-name {
    width: 100px;
}

.factor-weight {
    width: 35px;
    text-align: right;
    margin:1px auto;
    display: block;
}

.factor-formula {
    width: 350px;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #333;
}

.factor-row button {
    margin:0px;
    padding:3px 10px;
    border:0px;
    background-color: lightgrey;
}
.factor-row input {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #333;
}

#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.factor-row td{
    padding: 1px;
    border:0px;
}

.monitor-container {
    width:1200px;
    margin: 0px auto 20px;
}

.monitor-container form {
    margin-bottom: 20px;
}


.monitor-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.monitor-summary-card {
    width: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.monitor-container table{
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.monitor-container table th {
    background-color: #255381;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    color: white;
}

.monitor-container table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.exploration-status-icon {
    font-size: 24px;
    color: #007bff;
    text-align: center;
}

.fa-stop-circle{ color: grey; }
.fa-skull-crossbones{ color: black; }
.fa-check-circle{ color: green; }
.fa-times-circle{ color: red; }
.fa-stop-circle{ color: red; }
.fa-clock{ color: #0f766e; }
.fa-play-circle{ color: green; }
.fa-trash{ color: red; }


#screener-configurations {
    /* max-width: 1200px; */
    margin: 30px auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.screener-configuration {
    background: linear-gradient(160deg, #0B1220 0%, #1E293B 100%);
    color: #E5E7EB;
    padding: 24px;
    border: 1px solid #0F4C5C;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(11, 18, 32, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.screener-configuration::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(31, 162, 184, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.screener-configuration:hover {
    transform: translateY(-4px);
    border-color: #1FA2B8;
    box-shadow: 0 18px 36px rgba(11, 18, 32, 0.6);
}

.screener-configuration:hover::before {
    opacity: 1;
}

.screener-configuration h3 {
    color: #E5E7EB;
    font-size: 1.25rem;
    margin: 0 0 8px;
    font-weight: 600;
}

.screener-configuration p {
    margin: 0 0 12px;
    color: rgba(229, 231, 235, 0.8);
    line-height: 1.5;
}

.screener-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.screener-card-desc {
    color: rgba(229, 231, 235, 0.75);
}

.screener-card-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: 10px;
    border-radius: 14px;
    background: #eee;
    border: 1px solid rgba(31, 162, 184, 0.3);
}

.screener-card-prompt {
    background: rgba(15, 76, 92, 0.35);
    border: 1px solid rgba(31, 162, 184, 0.35);
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(229, 231, 235, 0.9);
}

.screener-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.screener-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.screener-card-action.primary {
    background: #0f766e;
    color: #ffffff;
    border: 1px solid transparent;
}

.screener-card-action.primary:hover {
    background: #0b5f57;
    transform: translateY(-1px);
}

.screener-card-action.ghost {
    background: transparent;
    color: #E5E7EB;
    border: 1px solid rgba(31, 162, 184, 0.6);
}

.screener-card-action.ghost:hover {
    background: rgba(31, 162, 184, 0.18);
}

.screener-card-action i {
    font-size: 14px;
}

.screener-types {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.screener-type-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: 10px;
    border-radius: 14px;
    background: #eee;
    border: 1px solid rgba(31, 162, 184, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.screener-type-image:hover {
    transform: translateY(-2px);
    border-color: #1FA2B8;
}

.screener-type-image.muted {
    opacity: 0.5;
    filter: grayscale(0.2);
}



#portfolios{
    /* max-width: 1200px; */
    margin: 30px auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.portfolio {
    background: linear-gradient(160deg, #0B1220 0%, #1E293B 100%);
    color: #E5E7EB;
    padding: 24px;
    border: 1px solid #0F4C5C;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(11, 18, 32, 0.45);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(31, 162, 184, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.portfolio:hover {
    transform: translateY(-4px);
    border-color: #1FA2B8;
    box-shadow: 0 18px 36px rgba(11, 18, 32, 0.6);
}

.portfolio:hover::before {
    opacity: 1;
}

.portfolio h2 {
    color: #E5E7EB;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.portfolio-card-desc {
    color: rgba(229, 231, 235, 0.75);
    margin: 0;
    line-height: 1.5;
}

.portfolio-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.portfolio-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.portfolio-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.portfolio-card-action.primary {
    background: #0f766e;
    color: #ffffff;
    border: 1px solid transparent;
}

.portfolio-card-action.primary:hover {
    background: #0b5f57;
    transform: translateY(-1px);
}

.portfolio-card-action.ghost {
    background: transparent;
    color: #E5E7EB;
    border: 1px solid rgba(31, 162, 184, 0.6);
}

.portfolio-card-action.ghost:hover {
    background: rgba(31, 162, 184, 0.18);
}

.portfolio-form {
    border-style: dashed;
    border-color: rgba(31, 162, 184, 0.5);
}

.portfolio-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.portfolio-form-input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(31, 162, 184, 0.4);
    background: #1E293B;
    color: #E5E7EB;
}

.portfolio-form-input::placeholder {
    color: rgba(229, 231, 235, 0.6);
}

#add-to-monitor-container {
    float:right;
    border:2px #ded solid;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

#add-to-monitor-container select {
    width: 200px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#name-input {
    position:relative;
    left:-13px;
    border: 1px solid transparent; /* ✅ same width as hover */
    border-radius: 8px;            /* keep radius consistent */
    font-size: 30px;
    width: 600px;
    font-weight: 600;
    color: #333;
    padding: 2px 10px;
    margin: 0;
    outline: none;
    margin-bottom: 5px;
    background:none;
}
#name-input:hover  {
    border-color: #55d ;
    background:#eee;
}

#description-input {
    position:relative;
    left:-11px;
    border: 1px solid transparent; /* ✅ same width as hover */
    border-radius: 8px;            /* keep radius consistent */
    font-size: 16px;
    width: 800px;
    color: #333;
    background-color: #eee;
    padding: 2px 10px;
    margin: 0;
    outline: none;
    box-sizing: border-box;        /* ensures padding + border stay fixed */
  }

#description-input:hover {
    border-color: #55d ;
}

#exploration-details-container {
    width: 1800px;
    margin: 0px auto;
}

#backtests-filters {
    float:left;
    margin-right: 30px;
}
#exploration-parameters {
    margin-bottom:20px;
}

#explorations-table-container {
    margin-bottom: 20px;
}

.ai-button{
    background-color: teal !important;
}

.ai-input{
    color:teal !important;
}

#scoring-formula {
    transition: all 0.5s ease;
    transform-origin: center;
    box-shadow: 0 0 0 transparent;
  }
  
  /* AI animation pulse */
  @keyframes aiGlow {
    0% {
      transform: scale(0.8);
      box-shadow: 0 0 0 rgba(0, 255, 200, 0);
      background: transparent;
    }
    30% {
      transform: scale(1.05);
      box-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
      background: rgba(0, 255, 200, 0.05);
    }
    60% {
      transform: scale(0.95);
      box-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 transparent;
      background: transparent;
    }
  }
  
  .ai-pulse {
    animation: aiGlow 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .popin{
    position: fixed;
    width: 1000px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  #topk-input{
    width:50px;
  }

  #start-exploration-button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
  }

  .coin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f0f0f0, #b4b4b4 70%);
    border: 2px solid #d0d0d0;
    box-shadow:
      inset 0 1px 3px rgba(255,255,255,0.3),
      inset 0 -1px 3px rgba(0,0,0,0.2),
      0 2px 4px rgba(0,0,0,0.4);
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  
  .coin i {
    color: #555 !important;
    font-size: 16px;
    text-align: center;
    display: block;
    margin:0px auto !important;
    
  }

  .scoring-gauge {
    width: 50px;
    height: 4px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #e9e9e9;
    margin-top: 4px;
    overflow: hidden;
}
.scoring-gauge-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.2s ease;
}