   @font-face {
    font-family: 'PlusJakartaSans';
    src: url('PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  @font-face {
    font-family: 'PlusJakartaSans';
    src: url('PlusJakartaSans-ExtraBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  
  body {
    font-family: 'PlusJakartaSans', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
  }
  
  .box-container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #444;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .sidebar-inner {
    width: 100%;
  }
  .sidebar .nav {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .main-section {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    padding: 8px 10px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .main-section:hover {
    color: #f0a500;
    transform: scale(1.1);
  }
  .main-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #f0a500;
    transition: width 0.3s ease, left 0.3s ease;
  }
  .main-section:hover::after {
    width: 100%;
    left: 0;
  }
  
  .sidebar-subsections {
    margin-left: 25px;
    margin-top: 5px;
  }
  .sidebar-subsection-item .sidebar-subsection-link {
    font-size: 0.95rem;
    color: #ccc;
    padding: 4px 10px;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .sidebar-subsection-item .sidebar-subsection-link:hover {
    background-color: #666;
    transform: translateX(3px);
  }
  
  .main-content {
    margin-left: 260px;
    padding: 20px;
  }
  .content-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .page-header {
    background-color: #fff;
    padding: 20px;
    border-bottom: 2px solid #ddd;
  }
  .page-header .logo {
    max-width: 350px;
    margin-bottom: 20px;
  }
  .page-header h1 {
    margin-top: 10px;
  }
  .page-header .date {
    font-style: italic;
  }
  
  #scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
  }
  
  .asset-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  .asset-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .asset-card {
    margin: 10px auto;
    width: 100%;
    max-width: 1000px;
  }
  
  .trend-alcista {
    color: green;
    transition: transform 0.3s ease;
  }
  .trend-bajista {
    color: red;
    transition: transform 0.3s ease;
  }
  .trend-neutral {
    color: gray;
    transition: transform 0.3s ease;
  }
  .trend-alcista:hover,
  .trend-bajista:hover,
  .trend-neutral:hover {
    transform: scale(1.1);
  }
  
  .graph-container {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;
  }
  .graph-container:hover {
    transform: scale(1.05);
  }
  .graph-title {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
  }
  
  .extra-link {
    color: blue;
    font-size: 0.8rem;
    margin-left: 10px;
    text-decoration: none;
    cursor: pointer;
  }
  .extra-link:hover {
    text-decoration: underline;
  }
  
  .table-custom {
    background-color: #fff;
  }
  .table-custom th {
    background-color: #e0e0e0;
    font-weight: bold;
    text-align: center;
  }
  .table-custom td {
    text-align: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 4px;
  }
  
  .asset-card dl dt {
    font-weight: bold;
  }
  .asset-card dl dd {
    margin-bottom: 0.5rem;
  }
  
  .asset-alerts {
    margin-top: 1rem;
  }
  
  .performance-tables {
    margin-bottom: 1rem;
  }
  .performance-table th,
  .performance-table td {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .historical-trades-table {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  .historical-trades-table th,
  .historical-trades-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .modal-dialog {
    max-width: 90%;
    margin: auto;
  }
  .modal-content {
    border: none;
    border-radius: 0;
  }
  .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-body img {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
  }
  
  

  .sidebar {
    display: none;
  }
  .navbar.d-md-none {
    display: flex !important;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  .box-container {
    max-width: 100%;
    margin: auto;
    padding: 0 10px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  table {
    width: 100%;
    table-layout: auto;
  }
  #scrollTopBtn {
    display: none;
    bottom: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    background: #f0a500;
    color: #fff;
  }
  
  #offcanvasSidebar {
    background-color: #444;
    color: #fff;
  }
  #offcanvasSidebar .offcanvas-header {
    border-bottom: 1px solid #555;
  }
  #offcanvasSidebar .btn-close {
    filter: invert(1);
  }
  #offcanvasSidebar .nav-link {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    padding: 8px 10px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  #offcanvasSidebar .nav-link:hover {
    color: #f0a500;
    transform: scale(1.1);
  }
  #offcanvasSidebar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #f0a500;
    transition: width 0.3s ease, left 0.3s ease;
  }
  #offcanvasSidebar .nav-link:hover::after {
    width: 100%;
    left: 0;
  }
  #offcanvasSidebar .nav-item + .nav-item {
    margin-top: 5px;
  }
  

  #offcanvasSidebar .sidebar-subsections {
    display: block !important;
    margin-left: 20px;
    margin-top: 5px;
  }
  #offcanvasSidebar .sidebar-subsection-item .sidebar-subsection-link {
    display: block !important;
    font-size: 0.95rem;
    color: #ccc;
    padding: 4px 10px;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  #offcanvasSidebar .sidebar-subsection-item .sidebar-subsection-link:hover {
    background-color: #666;
    transform: translateX(3px);
  }
  

  @media (min-width: 1280px) {
    .sidebar {
      display: flex;
      position: fixed;
      top: 0;
      left: 0;
      width: 20%;
      height: 100vh;
      padding: 20px;
      flex-direction: column;
      justify-content: flex-start;
      z-index: 100;
    }
    .navbar.d-md-none {
      display: none !important;
    }
    .main-content {
      margin-left: 20%;
      padding: 30px;
    }
    .box-container {
      max-width: 1200px;
      padding: 0;
    }
  }
  

  @media (min-width: 1920px) {
    .sidebar {
      width: 15%;
    }
    .main-content {
      margin-left: 15%;
      padding: 40px;
    }
    .box-container {
      max-width: 1400px;
    }
  }

.combined-item {
  padding: 2px 0;
}

.combined-item .d-flex {
  width: 100%;
}

.combined-item .nav-link {
  padding: 0.25rem 0.5rem !important;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.combined-item .sidebar-subsection-link:first-child {
  color: #fff;
  flex: 1;
  gap: 5px;
}

.combined-item .sidebar-subsection-link:first-child:hover {
  background-color: #726d5e !important;
  color: #000 !important;
  border-radius: 4px;
}

.combined-item .pivot-link {
  color:  #726d5e !important;
  flex: 0 0 auto;
  margin-left: 5px;
}

.combined-item .pivot-link:hover {
  background-color:  #726d5e !important;
  color: #000 !important;
  border-radius: 4px;
}

.normal-icon, .pivot-icon {
  font-size: 1rem;
  display: inline-block;
}

.asset-ticker {
  font-size: 0.9rem;
}

.offcanvas-body .combined-item .sidebar-subsection-link:first-child {
  color: #000;
}

.offcanvas-body .combined-item .pivot-link {
  color: #726d5e !important;
}

.sidebar {
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-inner {
  width: 100%;
  overflow-x: hidden;
}

.combined-item .d-flex {
  width: 100%;
  flex-wrap: nowrap;
}

.combined-item .sidebar-subsection-link:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.asset-ticker {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}