@charset "UTF-8";
@import url("styleguide/colors-HcvLc0t.css");
@import url("styleguide/utilities-2THkCuF.css");
@import url("portfolio/market_searcher-rv1XAGB.css");
@import url("portfolio/portfolio-loading-PtfC_hV.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-navy);
  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-navy);
}

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

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

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

/**
 * Bootstrap text utility overrides
 * Use navy for primary/success text colors
 */
.text-success {
  color: var(--color-navy) !important;
}

.text-primary {
  color: var(--color-navy) !important;
}

/**
 * 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);
  color: var(--color-navy);
}

/**
 * Accessibility overrides for text-white on green backgrounds
 * Prevents white text on light green (#36E0A0) which fails WCAG contrast requirements
 */
.bg-primary.text-white,
.bg-success.text-white {
  color: var(--color-navy) !important;
}

.bg-primary.text-white i,
.bg-success.text-white i {
  color: var(--color-navy) !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);
}

/* 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-navy);
  --bs-btn-color: var(--color-white);
  --bs-btn-hover-bg: var(--color-green);
  --bs-btn-hover-color: var(--color-white);
  --bs-btn-active-bg: var(--color-green);
  --bs-btn-active-color: var(--color-white);
}

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

/* Ghost/outline secondary buttons for table action contexts */
.btn.btn-secondary.btn-icon-only {
  --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);
}

/* Danger button styling */
.btn.btn-danger {
  --bs-btn-bg: var(--color-red);
  --bs-btn-color: var(--color-white);
  --bs-btn-hover-bg: #DC2626;
  --bs-btn-hover-color: var(--color-white);
  --bs-btn-active-bg: #B91C1C;
  --bs-btn-active-color: var(--color-white);
}

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

/**
 * Forms
 */
.form-check-input:checked {
  background-color: var(--color-green);
  border-color: var(--color-green);
  /* Override Bootstrap's white checkmark SVG with navy */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%2314233C' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(54, 224, 160, 0.2);
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/**
 * 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-navy);
  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: var(--color-red);
  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-navy);
}

.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 */
}

/**
 * Lightweight table-responsive for nested contexts (inside content-block or card-body)
 * Provides only essential responsive behavior without card-like styling
 */
.table-responsive-nested {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  /* No background, borders, shadows, or padding - inherits from parent container */
}

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

/* 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;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 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-navy);
  text-decoration: none;
}

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

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

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

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

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

/* 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: var(--color-navy);
  color: var(--color-white);
  min-width: 36px;
  /* Dual shadow system: brand-colored + depth */
  box-shadow: 0 4px 8px rgba(29, 51, 84, 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: inherit;
}

.action-btn:hover {
  background: var(--color-green);
  color: var(--color-white);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(54, 224, 160, 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: #DC2626;
  /* Danger hover color from style guide */
  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-navy);
}

.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 */

/* Layout and structural elements for non-logged-in pages */
#wrapper {
  position: relative;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: 100%;
}

@media (min-width: 1025px) {
  #wrapper {
    top: 0 !important;
  }
}

.b_section {
  margin: 30px 0;
}

.top-header {
  padding: 10px 0 50px 0;
}

.top-header .logo {
  float: left;
}

.top-header .logo img {
  max-width: 200px;
}

.pull-left {
  float: left;
}

.banner_section_outer {
}

.form-outer {
}

.login-form-outer {
  margin: 0 30px;
}

.login-img-outer img {
  margin: 25px 0;
}

.login-form-outer h3 {
  font-size: 30px;
  font-weight: bold;
  color: var(--color-green);
}

.login-form-outer h3 span {
  display: block;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--color-navy);
  margin: 10px 0;
}

/* Old-style form inputs (used in reset.html.twig) */
.login-input,
.form-input {
  font-size: 20px;
}

.login-form-outer .login-form-input-fields {
  position: relative;
  margin-bottom: 20px;
}

.login-form-outer .login-form-input-fields .fa-icon {
  position: absolute;
  top: 25px;
  left: 0;
  color: var(--color-navy);
  font-size: 25px;
}

.login-form-outer .login-form-input-fields .fa-icon.fa-lock {
  font-size: 25px;
}

.login-form-outer .login-form-input-fields .password-show {
  position: absolute;
  top: 25px;
  right: 15px;
  cursor: pointer;
}

.login-form-outer .login-form-input-password-field,
.login-form-outer .login-input-fields {
  margin: -21px 0 0 0;
}

.login-form-outer .login-label {
  margin-left: 40px;
  margin-bottom: 5px;
}

.login-form-outer .login-label label {
  font-weight: 500;
  color: var(--color-navy);
}

.login-form-checkbox-forgot {
  padding: 35px 0;
}

.login-form-checkbox-forgot a {
  float: right;
  font-size: 18px;
  text-decoration: none;
}

.login-form-outer .text p {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-navy);
  margin: 30px 0;
}

.login-form-outer .text p a {
  color: var(--color-green);
  text-decoration: underline !important;
  margin: 0 10px;
}

.login-form-outer .text p a:hover {
  color: var(--color-navy);
}

.forgot-form-outer {
}

.hr {
  background-color: #e3e3e3;
  height: 1px;
  border: none;
  margin: 1px 0;
  max-width: 100%;
}

.policy_text p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  line-height: 28px;
}

/* 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-navy);
  font-size: 25px;
}

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

.big-input-container .btn-fullsize {
  display: block;
  border-radius: 5px;
  background-color: var(--color-navy);
  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: var(--color-green);
  border: 1px solid var(--color-green);
  color: var(--color-white);
  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-navy);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(29, 51, 84, 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,
.option-card:hover .text-muted {
  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-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;
}

/* 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: rgba(29, 51, 84, 0.08);
  color: var(--color-navy);
}

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

.tab_outer .nav-tabs li.active a:hover {
  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-navy);
}

.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: var(--color-navy);
  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-navy);
  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-navy);
}

.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-navy);
  transform: scale(1.15);
}

.dropdown-menu .dropdown-item:active {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateX(0);
  box-shadow: none;
}

.dropdown-menu .dropdown-item:active i,
.dropdown-menu .dropdown-item:active span {
  color: inherit;
}

/* 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: var(--color-navy);
  color: var(--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(29, 51, 84, 0.3);
  border: none;
}

.add-market-btn:hover {
  transform: translateY(-2px);
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(54, 224, 160, 0.4);
  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;
}

/* Date filter input sizing - desktop */
.date-filter-input {
  width: 160px;
  min-width: 160px;
}

/* Responsive adjustments for date filter */
@media (max-width: 768px) {
  .date-filter-row {
    padding: 0.75rem;
    background: var(--color-light);
    border-radius: 8px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .date-filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .date-filter-label {
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
  }

  .date-filter-inputs {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem !important;
  }

  .date-filter-input {
    width: 100% !important;
    min-width: 100% !important;
  }

  .date-filter-separator {
    display: none;
  }

  .date-filter-apply {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }
}

@media (max-width: 576px) {
  .date-filter-row {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    border-radius: 0;
  }
}

/* Portfolio Header Row - Mobile Responsive Styles */
@media (max-width: 768px) {
  .portfolio-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .portfolio-header-row .portfolio-total-value-col {
    text-align: center;
    padding-right: 0 !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-grey);
  }

  .portfolio-header-row .portfolio-filters-col {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  .portfolio-header-row .portfolio-filters-col > div {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0.25rem;
  }

  .portfolio-header-row .portfolio-filters-col::-webkit-scrollbar {
    height: 4px;
  }

  .portfolio-header-row .portfolio-filters-col::-webkit-scrollbar-track {
    background: var(--color-grey);
    border-radius: 2px;
  }

  .portfolio-header-row .portfolio-filters-col::-webkit-scrollbar-thumb {
    background: var(--color-navy);
    border-radius: 2px;
  }

  .portfolio-header-row .portfolio-actions-col {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
}

/* Tags Input Component */
.tags-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.375rem 0.75rem;
  min-height: 38px;
  cursor: text;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.tags-input-wrapper.focused {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tags-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tags-input-field {
  border: none;
  outline: none;
  flex-grow: 1;
  padding: 0;
  margin: 0;
  min-width: 100px;
  background: transparent;
  color: inherit;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
  background-color: #e9ecef;
  color: #495057;
  border: 1px solid #ced4da;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.tag-chip i {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.tag-chip i:hover {
  opacity: 0.8;
}

/* Suggestions styling reusing dropdown-menu */
.tags-suggestions.dropdown-menu {
  display: none;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.tags-suggestions.dropdown-menu.show {
  display: block;
}

.suggestion-item {
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  color: var(--color-dark);
  transition: all 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f8f9fa;
  color: #1e2125;
}

.suggestions-title {
  font-weight: 600;
  color: #6c757d;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* User Asset Info Sidebar Styles */
.asset-details-section {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.asset-blockchain-info {
  font-size: 0.875rem;
  color: var(--color-muted, #6c757d);
}

.position-metrics-section .metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .position-metrics-section .metrics-grid {
    grid-template-columns: 1fr;
  }
}
