@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) !important;
}
.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) !important;
}

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

.hidden {
    display: none !important;
}

/**
 * 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) !important;
}

/**
 * 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);
}

.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 !important;
}

.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 25px 25px 25px;
}

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

/**
 * 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% !important;
}

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

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

.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) {
    .sidebar {
        border-radius: 30px 0 0 30px;
        width: fit-content !important;
        min-width: 35%;
        max-width: 35%;
    }
}

/**
 * Main content
 */
.main-content {
    position: initial;
    z-index: initial;
    margin-left: initial;
    margin-right: initial;
    padding-top: initial;
    padding: 0 !important;
}

.main-content .content-block {
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, .2);
    padding: 30px !important;
    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 !important;
    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 !important;
    background-color: transparent;
    margin-bottom: 1em;
}

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

/**
 * Table containers - Unified styling for all table types
 */
.re_portfolio-table-container,
.table-responsive {
    overflow-x: auto;
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.re_portfolio-table {
    white-space: nowrap;
    margin: 0;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.re_portfolio-table th,
.re_portfolio-table td {
    padding: 0.5rem 1rem;
}

.re_portfolio-table td {
    padding: 4px 5px;
    text-align: center;
}

.re_portfolio-table thead th {
    padding: 3px;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 25vw;
}

.re_portfolio-table thead th {
    background: white;
    border-bottom: 2px solid var(--color-grey);
    padding: 1em;
    vertical-align: middle;
    text-align: right;
}

.re_portfolio-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: white;
    border-right: 1px solid var(--color-grey);
    text-align: left;
}

.re_portfolio-table tbody th {
    font-weight: bold;
    text-align: left;
    position: relative;
}

.re_portfolio-table tbody th:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
    border-right: 1px solid var(--color-grey);
    display: flex;
    justify-content: stretch;
    align-items: center;
    gap: 1em;
    padding: 1em 1em 1em 0;
}

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

.re_portfolio-table tbody th,
.re_portfolio-table tbody td {
    border-bottom: 1px solid var(--color-grey);
    padding: 1em;
    vertical-align: middle;
    text-align: right;
}

.re_portfolio-table thead th a {
    color: var(--color-dark);
}

.re_portfolio-table thead th a:focus, .re_portfolio-table thead th a:hover {
    color: var(--color-black);
}

.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;
}

/* 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;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--color-dark);
    background-color: var(--color-grey);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--color-grey-dark);
    color: var(--color-dark);
}

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

.action-btn.text-danger:hover {
    background-color: var(--color-red);
    color: white;
}

.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;
}

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 !important;
    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-color: #f8f9fa;
    border-color: #e9ecef !important;
    display: block;
    padding: 1rem;
    border: 1px solid;
    border-radius: 0.375rem;
    text-decoration: none;
}

.option-card:hover {
    background-color: var(--color-green);
    border-color: var(--color-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

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

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

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

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

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

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

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

/* 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);
}
