@charset "UTF-8";
@import url("styleguide/colors-e345e0ec19fe4aa85483ff310f3756c9.css");
@import url("portfolio/market_searcher-75622aef3bedc2c1e57dfefb2c24590a.css");

/**
 * Fontawesome icon customizations
 */
.app-fa-arrow-or-close {
    /* Equals .fa-close */
    --fa: "\f00d";
    --fa--fa: "\f00d\f00d";
}

@media (min-width: 1024px) {
    .app-fa-arrow-or-close {
        /* Equals .fa-arrow-right */
        --fa: "\f061";
        --fa--fa: "\f061\f061";
    }
}

/* Bootstrap styling updates are set using --bs- prefixes per element. */

html, body, * {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: var(--color-dark);
}

body.no-h-overflow {
    overflow-x: hidden;
}

body.theme-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #f3fdff 100%);
}

.theme-light a:not(.btn):not(.dropdown-item), .theme-light a:not(.btn):not(.dropdown-item):link,
.theme-light a.btn-link, .theme-light a.btn-link:link {
    color: var(--color-green);
    cursor: pointer;
}

.theme-light a:not(.btn):not(.dropdown-item):hover, .theme-light a:not(.btn):not(.dropdown-item):focus, .theme-light a:not(.btn):not(.dropdown-item):active,
.theme-light a.btn-link:hover, .theme-light a.btn-link:focus, .theme-light a.btn-link:active {
    color: var(--color-green-dark);
}

.theme-light a.bg-primary:not(.btn), .theme-light a.bg-primary:not(.btn):link,
.theme-light a.btn-link.bg-primary, .theme-light a.btn-link.bg-primary:link {
    background-color: var(--color-green);
}

.theme-light a.bg-primary:focus, .theme-light a.bg-primary:hover, .theme-light button.bg-primary:focus, .theme-light button.bg-primary:hover {
    background-color: var(--color-green);
}

.theme-light a i {
    color: inherit;
}

.hidden {
    display: none;
}

/**
 * Text
 */
.green-text {
    color: var(--color-green);
}

.red-text {
    color: var(--color-red);
}

.orange-text {
    color: var(--color-orange);
}

/**
 * Market Logos - Global styling for consistent appearance
 */
.market-logo {
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.market-logo-fallback {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0;
}

/* Make sure Bootstrap's lead component's inner elements inherit the font-size of the lead component. */
.lead span, .lead p, .lead a, .lead a:link {
    font-size: inherit;
}

/**
 * Badges
 *
 * Override .badge's .bg-primary as only overriding .bg-primary is not enough since the JS of Bootstrap-Utilities,
 * has the color of bg-primary hardcoded.
 */
.badge.bg-primary {
    background-color: var(--color-green);
}

/**
 * Buttons
 */
.btn {
    --bs-btn-border-radius: 30px;
    --bs-btn-padding-x: 30px;
    --bs-btn-padding-y: 10px;
    --bs-btn-border-width: 0;

    --bs-btn-disabled-bg: var(--color-grey-dark);
    --bs-btn-disabled-color: var(--color-dark);
}

/* Icon-only buttons should be compact and square with consistent sizing */
.btn.btn-icon-only {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-border-radius: 8px;
    min-width: 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Remove default margin for icon-only buttons in action containers */
.actions .btn.btn-icon-only {
    margin-right: 0;
    margin-left: 0;
}

/* Ensure consistent icon sizing within icon-only buttons */
.btn.btn-icon-only i {
    font-size: 16px !important;
    line-height: 1;
    width: 16px;
    text-align: center;
}

.btn.btn-icon-only.btn-sm {
    min-width: 30px;
    width: 30px;
    height: 30px;
    --bs-btn-border-radius: 6px;
}

.btn.btn-icon-only.btn-sm i {
    font-size: 14px !important;
    width: 14px;
}

.btn.btn-icon-only.btn-lg {
    min-width: 44px;
    width: 44px;
    height: 44px;
    --bs-btn-border-radius: 10px;
}

.btn.btn-icon-only.btn-lg i {
    font-size: 18px !important;
    width: 18px;
}

.btn i, .btn:link i {
    color: inherit;
}

.btn:hover i {
    color: inherit;
}

.btn:active i, .btn:focus i {
    color: inherit;
}

.btn.btn-primary {
    --bs-btn-bg: var(--color-green);
    --bs-btn-hover-bg: var(--color-green-dark);
    --bs-btn-active-bg: var(--color-green-dark);
}

.btn.btn-secondary {
    --bs-btn-bg: var(--color-grey);
    --bs-btn-color: var(--color-dark);
    --bs-btn-hover-bg: var(--color-grey-dark);
    --bs-btn-hover-color: var(--color-dark);
    --bs-btn-active-bg: var(--color-grey-dark);
    --bs-btn-active-color: var(--color-dark);
}

.btn.btn-unselected {
    --bs-btn-bg: var(--color-grey);
    --bs-btn-hover-bg: var(--color-green);
    --bs-btn-hover-color: var(--color-white);
    --bs-btn-active-bg: var(--color-green-dark);
    --bs-btn-active-color: var(--color-white);
}

/**
 * Forms
 */
.form-check-input:checked {
    background-color: var(--color-green);
    border-color: var(--color-green);
}

.input-group .icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    /* Set z-index one higher than Bootstrap's z-index of 5 on the focused input, otherwise the icon won't show on focus: */
    z-index: 6;
}

/**
 * Accordion
 */
.accordion-button:not(.collapsed) {
    --bs-accordion-active-color: var(--color-white);
    --bs-accordion-active-bg: var(--color-green);
}

/**
 * Dropdown
 */
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--color-green-dark);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: var(--color-white);
    backdrop-filter: blur(10px);
}

.dropdown-menu .dropdown-item {
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    color: var(--color-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--color-grey);
    color: var(--color-green-dark);
    transform: translateX(2px);
}

.dropdown-menu .dropdown-item:active {
    background-color: var(--color-green);
    color: var(--color-white);
}

/**
 * Tables
 */
.table-cell-no-left-padding {
    padding-left: 0;
}

.new-dot {
    display: inline-block;
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ec526c;
    right: 0;
    top: -10px;
}

#container {
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "sidebar"
        "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    min-height: 100vh;
    padding: 0;
}

.main-content {
    grid-area: main;
    overflow-x: auto;
    display: flex;
    flex-direction: column;

    /* Full screen width utilization */
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
}

/**
 * Sidebar
 */
.sidebar {
    grid-area: sidebar;
    overflow-y: auto;
    background-color: var(--color-white);
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, .2);
    width: 100%;
}

.sidebar .close-icon, .sidebar .close-icon:link {
    color: var(--color-dark);
}

.sidebar .close-icon:hover, .sidebar .close-icon:focus, .sidebar .close-icon:active {
    color: var(--color-black);
}

.sidebar .sidebar-content {
    /*    min-width: 100%;  Should always be at least the side of the sidebar container */
    display: block;
    margin-left: 0;
    padding: 30px;
}

.sidebar .sidebar-content > header {
    display: flex; /* profile-and-actions should be hidden for this to work properly */
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 2em;
}

.sidebar .sidebar-content > header h1 {
    margin: 0;
    padding: 0;
}

.sidebar .sidebar-content > footer {
    margin-top: 25px;
}

/* Sidebar loading indicator */
.sidebar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.sidebar-loading .fa-spinner {
    color: var(--color-green);
}

.sidebar-loading p {
    color: var(--color-dark);
    font-size: 1.1em;
}

.content-block-header-outside {
}

.content-block-header-outside h1 {
    font-size: 2rem;
}

@media (min-width: 1024px) {
    .main-content {
        padding: 0 2rem; /* Appropriate desktop padding for full width */
    }

    .sidebar {
        border-radius: 30px 0 0 30px;
        width: fit-content;
        min-width: 35%;
        max-width: 35%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 0.75rem; /* Minimal padding on mobile */
    }

    .re_portfolio-table-container,
    .table-responsive {
        padding: 1rem; /* Reduced padding on mobile */
        margin: 1rem 0;
    }
}

/**
 * Main content - Additional styles
 */

.main-content .content-block {
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, .2);
    padding: 30px;
    background-color: var(--color-white);
    margin-bottom: 1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced styling for profile pages and other content blocks */
.main-content .content-block,
.main-content .row.my-sm-3 .content-block {
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, .2);
    padding: 30px;
    background-color: var(--color-white);
    margin-bottom: 1em;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.main-content .content-block:hover,
.main-content .row.my-sm-3 .content-block:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Override for content-block containing portfolio tables to remove conflicting styling */
.main-content .content-block.portfolio-table-wrapper,
.main-content .content-block:has(.re_portfolio-table-container) {
    border-radius: 0;
    border: none;
    padding: 0;
    background-color: transparent;
    margin-bottom: 1em;
}

.main-content .content-block h1 {
    font-size: 30px;
    font-weight: bold;
    color: var(--color-dark);
}

/**
 * Table containers
 */
.re_portfolio-table-container,
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(54, 224, 160, 0.1);
    transition: all 0.3s ease;
    margin: 1.5rem 0;
    width: 100%;
    min-height: 200px; /* Ensure proper loading indicator space */
}

.re_portfolio-table-container:hover {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12),
    0 12px 20px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.re_portfolio-table {
    width: 100%;
    margin: 0;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-size: 0.95rem;
    font-family: 'Mulish', sans-serif;
}

/* Consistent padding for all cells */
.re_portfolio-table th,
.re_portfolio-table td {
    padding: 1.25rem;
    vertical-align: middle;
    border: none;
}

.re_portfolio-table tbody td {
    border-bottom: 1px solid rgba(54, 224, 160, 0.08);
    font-weight: 500;
    text-align: right;
}

.re_portfolio-table tbody td:first-child {
    text-align: left;
    padding: 1.25rem;
}

.re_portfolio-table tbody td:first-child .asset-info {
    width: 100%;
    height: 100%;
}

/* Header styling */
.re_portfolio-table thead th {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    border: none;
    position: relative;
}

.re_portfolio-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.re_portfolio-table thead th:last-child {
    border-radius: 0 12px 0 0;
    text-align: center;
}

/* Body rows */
.re_portfolio-table tbody tr {
    transition: all 0.2s ease;
    background: white;
}

.re_portfolio-table tbody tr:hover {
    background: linear-gradient(135deg,
    rgba(54, 224, 160, 0.02) 0%,
    rgba(242, 255, 250, 0.6) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.re_portfolio-table tbody th {
    font-weight: 600;
    text-align: left;
    position: relative;
    color: var(--color-dark);
}

.re_portfolio-table tbody th:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
    border-right: 2px solid rgba(var(--color-green-rgb, 46, 204, 113), 0.15);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem 1rem 1.25rem; /* Fix: Consistent padding on both sides */
}

.re_portfolio-table tbody tr:hover th:first-child {
    background-color: rgba(var(--color-green-rgb, 46, 204, 113), 0.02);
}

.re_portfolio-table tbody tr:nth-child(even) th:first-child {
    background-color: rgba(248, 249, 250, 0.3);
}

.re_portfolio-table tbody tr:nth-child(even):hover th:first-child {
    background-color: rgba(var(--color-green-rgb, 46, 204, 113), 0.03);
}

.re_portfolio-table tbody th .range {
    left: 0;
}

.re_portfolio-table tbody td {
    text-align: right;
    font-weight: 500;
}

/* Remove border from last row and add corner rounding */
.re_portfolio-table tbody tr:last-child td {
    border-bottom: none;
}

.re_portfolio-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.re_portfolio-table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

/* Ensure consistent styling for all table headers */
.re_portfolio-table thead th,
.re_portfolio-table thead th a,
.re_portfolio-table thead th .sortable-header,
.re_portfolio-table thead th .sort-link {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

/* Consistent hover states - no color changes */
.re_portfolio-table thead th a:focus, 
.re_portfolio-table thead th a:hover,
.re_portfolio-table thead th .sortable-header:hover,
.re_portfolio-table thead th .sort-link:hover {
    color: var(--color-dark);
    text-decoration: none;
}

/* Sortable Headers - Use same styling as regular headers */
.sortable-header,
.sortable-header .sort-link {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    gap: 0.5rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.sortable-header:hover,
.sortable-header .sort-link:hover {
    color: var(--color-dark);
    text-decoration: none;
}

/* Sort icon styling for both structures */
.sort-icon,
.sortable-header .sort-icon,
.sortable-header .sort-link .sort-icon {
    font-size: 0.7rem;
    opacity: 0.8;
    transition: all 0.2s ease;
    display: inline-block;
    width: 1rem;
    text-align: center;
}

.sortable-header:hover .sort-icon,
.sortable-header .sort-link:hover .sort-icon {
    opacity: 1;
    color: var(--color-green);
}

/* Default sort icon styling */
.sortable-header .sort-icon-default {
    opacity: 0.3;
}

.sortable-header:hover .sort-icon-default {
    opacity: 0.7;
}

/* Right-align non-first columns  */
.sortable-header:not(:first-child) .sort-link {
    justify-content: flex-end;
}

.re_portfolio-table tbody td .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.re_portfolio-table tbody td .actions .re_show-details-link {
    display: initial;
}

.re_portfolio-table tbody td .actions .dropdown-icon-div {
    display: none;
}

.re_portfolio-table tbody td .actions ul.dropdown-menu li.re_double-separator {
    border-top: 6px double #000;
}

.re_portfolio-table tbody td .actions ul.dropdown-menu li > a {
    display: flex;
    gap: 1em;
    align-items: center;
    justify-content: left;
}

.re_portfolio-table-subtable-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* Filter link styling - matches portfolio overview edit link */
.filter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 500;
    color: var(--color-green);
    text-decoration: none;
}

.filter-link:hover {
    color: var(--color-green-dark);
}

.filter-link.disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/* Asset Information Layout - Consolidated for both portfolio and watchlist */
.asset-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 56px;
    width: 100%;
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
/*    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);*/
    color: white;
    font-weight: 600;
}

.asset-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.asset-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.asset-symbol {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Price Information - Consistent across all tables */
.price-info {
    text-align: right;
}

.current-price {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
    line-height: 1.2;
}

.price-change {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
}

.price-change.positive {
    color: var(--color-green);
}

.price-change.negative {
    color: var(--color-red);
}

/* Profit/Loss Styling - Consistent across tables */
.profit-info {
    text-align: right;
}

.profit-amount {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.profit-percentage {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
}

.profit-amount.positive,
.profit-percentage.positive {
    color: var(--color-green);
}

.profit-amount.negative,
.profit-percentage.negative {
    color: var(--color-red);
}

/* Numeric Cells - Universal numeric styling */
.numeric-cell {
    text-align: right;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

/* Vertical alignment helper */
.vertically-align-middle {
    vertical-align: middle !important;
    text-align: center;
}

/* Row action buttons */
.expand-toggle-cell {
    width: 40px;
    padding: 0 !important;
    text-align: center !important;
}

.action-buttons-cell {
    width: 120px;
    padding: 0 !important;
    text-align: right !important;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    background: #1AA871; /* User-specified green for normal state */
    color: white;
    min-width: 36px;
    /* Dual shadow system: brand-colored + depth */
    box-shadow: 0 4px 8px rgba(26, 168, 113, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action-btn i,
.action-btn span i {
    color: white;
}

.action-btn:hover {
    background: #189C64; /* Slightly darker version of #1AA871 for hover */
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(26, 168, 113, 0.35),
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.action-btn.secondary {
    background: #64748b;
    color: white;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    min-width: 36px;
    /* Dual shadow system for secondary */
    box-shadow: 0 3px 6px rgba(100, 116, 139, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action-btn.secondary:hover {
    background: #475569;
    transform: translateY(-1px); /* Less movement than primary for hierarchy */
    color: white;
    box-shadow: 0 6px 16px rgba(100, 116, 139, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.action-btn.text-danger,
.action-btn.danger {
    background: var(--color-red); /* #ff6565 */
    color: white;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    min-width: 36px;
    /* Dual shadow system for danger */
    box-shadow: 0 4px 8px rgba(255, 101, 101, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action-btn.text-danger:hover,
.action-btn.danger:hover {
    background: #e53e3e; /* 10% darker than brand red */
    transform: translateY(-2px); /* Same as primary for critical actions */
    color: white;
    box-shadow: 0 8px 20px rgba(255, 101, 101, 0.35),
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Action Buttons - Trade History Row Design */
.actions-cell {
    text-align: center;
    vertical-align: middle;
    min-height: 76px;
    padding: 1.25rem !important;
}

.actions-cell .actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.actions-cell .actions span {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.actions-cell .actions span:hover {
    transform: scale(1.1);
}

.actions-cell .action-icon {
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.actions-cell .edit-trade-history .action-icon,
.actions-cell .action-btn.primary .fa-pencil {
    color: var(--color-green);
}

.actions-cell .delete-trade-history .action-icon,
.actions-cell .action-btn.danger .fa-trash {
    color: var(--color-red);
}

.actions-cell .action-icon:hover {
    opacity: 0.8;
}

.expand-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.expand-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
}

tr[aria-expanded="true"] .expand-toggle i {
    transform: rotate(180deg);
}

@media (min-width: 1024px) {
    .re_portfolio-table tbody td .actions .re_show-details-link {
        display: none;
    }

    .re_portfolio-table tbody td .actions .dropdown-icon-div {
        display: initial;
    }

    .re_portfolio-table tbody td .actions .dropdown-icon-div i {
        color: var(--color-dark);
    }
}

/* Expanded position row */
.analysis-content {
    position: relative;
}

.analysis-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    padding: 0.75rem;
}

.analysis-content li {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.pattern-values, .more-patterns {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.more-patterns {
    margin-top: 0;
}

.pattern-value {
    padding: 0.25rem 0.5rem;
    background: var(--color-grey);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: normal;
}

.analysis-content li > p, .analysis-content li > div > p {
    text-align: left;
}

.analysis-content .trend-data,
.analysis-content .patterns-data,
.analysis-content .candlesticks-data,
.analysis-content .location-data,
.analysis-content .sentiment-data,
.analysis-content .support-data,
.analysis-content .resistance-data {
    text-align: left;
}

/* Public pages */
/* Forms */
/* Big inputs with label and icons */
/**
 * @example
 *  <div class="big-input-container">
 *      <label for="password-input">Wachtwoord</label>
 *      <i class="fa fa-lock icon-left"></i>
 *      <input type="password" class="form-control" id="password-input" placeholder="Voer je wachtwoord in">
 *      <i class="fa fa-eye icon-right"></i>
 *  </div>
 */
.big-input-container {
    position: relative;
}

.big-input-container label {
    display: block;
    margin: 15px 50px;
    position: absolute;
}

.big-input-container input {
    height: 80px;
    font-size: 14px;
    padding-top: 1em;
    padding-left: 50px; /* Adjust for icon-left */
    padding-right: 50px; /* Adjust for icon-right */
}

.big-input-container .icon-left {
    position: absolute;
    top: 25px;
    left: 25px;
    color: var(--color-green);
    font-size: 25px;
}

.big-input-container .icon-right {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--color-green);
    font-size: 25px;
}

.big-input-container-checkbox .form-check {
    display: flex;
    gap: 15px;
    margin-left: 15px;
    align-items: center;
}

.big-input-container-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
}

.big-input-container-checkbox .form-check-label {
    cursor: pointer;
}

.big-input-container .btn-fullsize {
    display: block;
    border-radius: 5px;
    background-color: var(--color-green);
    border: 1px solid transparent;
    color: var(--color-white);
    font-weight: bold;
    width: 100%;
    margin: 0;
    padding: 15px 0;
    transition: linear all 0.4s;
}

.big-input-container .btn-fullsize:hover {
    background: transparent;
    border: 1px solid var(--color-green);
    color: var(--color-green);
    transition: linear all 0.4s;
}

/* Option Cards */
.option-card {
    transition: all 0.2s ease;
    background: var(--color-grey);
    color: var(--color-dark);
    display: block;
    padding: 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
}

.option-card:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(15, 99, 68, 0.3);
    text-decoration: none;
}

.option-card h5,
.option-card h6 {
    transition: color 0.2s ease;
}

.option-card:hover h5,
.option-card:hover h6 {
    color: white;
}

.option-card small {
    transition: color 0.2s ease;
}

.option-card:hover small {
    color: rgba(255, 255, 255, 0.9);
}

.option-card .option-card-icon {
    width: 50px;
    text-align: center;
}

.option-card .option-card-icon i {
    color: var(--color-dark);
    transition: color 0.2s ease;
}

.option-card:hover .option-card-icon i {
    color: white;
    transition: color 0.2s ease;
}

.option-card:hover .option-card-icon i {
    color: white;
    transition: color 0.2s ease;
}

.option-card:hover .option-card-icon i {
    color: white;
}

.option-card small {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.option-card:hover small {
    color: var(--color-dark);
}

/* User Profile specific styling */
.tab_outer {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.tab_outer .nav-tabs {
    border: none;
    gap: 0.5rem;
}

.tab_outer .nav-tabs li a {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--color-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.tab_outer .nav-tabs li a:hover {
    background-color: var(--color-grey);
    color: var(--color-green-dark);
}

.tab_outer .nav-tabs li.active a {
    background-color: var(--color-green);
    color: var(--color-white);
}

/* Loading States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading-spinner .fa-spinner {
    color: var(--color-green);
}

.loading-spinner p {
    color: var(--color-dark);
    font-size: 1.1em;
    margin-top: 1rem;
}

/* Spinner Sizes */
.spinner-sm {
    font-size: 1rem;
}

.spinner-md {
    font-size: 2rem;
}

.spinner-lg {
    font-size: 3rem;
}

@media (min-width: 1024px) {
    .big-input-container input {
        font-size: 20px;
    }
}

/**
 * Enhanced Dropdown Styling
 * Modern dropdown design with glassmorphism effects
 */
.dropdown-menu {
    border: none;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 220px;
    overflow: hidden;
    animation: dropdown-fade-in 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown arrow/pointer */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 -2px 8px rgba(0, 0, 0, 0.1));
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu .dropdown-item {
    border: none;
    border-radius: 0;
    padding: 1rem 1.75rem;
    color: var(--color-dark);
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.dropdown-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-green), var(--color-green-dark));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.dropdown-menu .dropdown-item i {
    font-size: 1.1rem;
    color: var(--color-green);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.dropdown-menu .dropdown-item span {
    position: relative;
    z-index: 1;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, var(--color-grey), #f8f9fa);
    color: var(--color-dark);
    transform: translateX(6px);
    box-shadow: inset 4px 0 0 var(--color-green);
}

.dropdown-menu .dropdown-item:hover::before,
.dropdown-menu .dropdown-item:focus::before {
    width: 4px;
}

.dropdown-menu .dropdown-item:hover i,
.dropdown-menu .dropdown-item:focus i {
    color: var(--color-green-dark);
    transform: scale(1.15);
}

.dropdown-menu .dropdown-item:active {
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    color: var(--color-white);
    transform: translateX(0);
    box-shadow: none;
}

.dropdown-menu .dropdown-item:active i,
.dropdown-menu .dropdown-item:active span {
    color: var(--color-white);
}

/* Portfolio and Watchlist Filter Buttons - Now using design system buttons */
.portfolio_filter_buttons,
.tag_filter_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Button styling is now handled by design system but we keep positioning indicators */
.portfolio_filter_buttons .btn.show-holdings-count::after {
    content: '';
    border-radius: 50%;
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.position-badge {
    margin-left: 0.25em;
}

/* Legacy add-market-btn styles - now replaced with design system primary_icon_left buttons */
.add-market-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(26, 168, 113, 0.3);
    border: none;
}

.add-market-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 168, 113, 0.4);
    color: white;
    text-decoration: none;
}

/* Date Filter Styling - Consistent with asset filter buttons */
.date-filter-container {
    align-items: center;
    gap: 0.75rem;
}

.date-filter-container .form-floating {
    margin-bottom: 0;
}

.date-filter-container .form-control {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.date-filter-container .form-control:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 0.2rem rgba(26, 168, 113, 0.25);
}

.date-filter-container .btn {
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Responsive adjustments for date filter */
@media (max-width: 768px) {
    .date-filter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .date-filter-container .form-floating {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .date-filter-container .btn {
        width: 100%;
        justify-content: center;
    }
    
    .date-filter-container span.text-muted {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .date-filter-container {
        padding: 0 0.5rem;
    }
}
