body {
    margin: 0;
    background-color: #f4f4f4;
    font-family: 'Arial', sans-serif;
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 300px;
    height: 150px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.profile-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar {
    width: 102px;  
    height: 102px; 
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: 2px solid #4a90e2;
    vertical-align: middle;  
}

.profile-avatar:hover {
    transform: scale(1.1);
}

.notifications-container {
    width: 100%;
    background-color: #f9f9f9;
    padding: 15px 0;
    overflow: hidden;
    border-top: 1px solid #e0e0e0;
}

.notifications-wrapper {
    display: flex;
    animation: notifications-scroll 45s linear infinite;
    white-space: nowrap;
}

.notification-item {
    flex-shrink: 0;
    display: inline-block;
    margin-right: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.notification-item:hover {
    transform: scale(1.03);
}

.notification-contract {
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.notification-details {
    color: #333;
    font-size: 14px;
}

.notification-amount {
    color: #50c878;
    font-weight: bold;
}

.notification-return {
    color: #ff4500;
    margin-left: 10px;
}

@keyframes notifications-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.market-sections-container {
    width: 100%;
    padding: 0;
    background-color: #f4f4f4;
}

.market-sections-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.market-section {
    flex: 1;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.market-section h2 {
    color: #4a90e2;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 20px;
}

.left-column, .right-column {
    min-height: 300px; 
}

@media (max-width: 768px) {
    .market-sections-row {
        flex-direction: column;
    }
}

.available-asset {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  position: relative;
}

.asset-details {
  flex-grow: 1;
  margin-right: 15px;
}

.asset-name {
  font-weight: bold;
  color: #4a90e2;
  margin-bottom: 5px;
}

.asset-description {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.asset-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

.funding-progress {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.funding-progress-bar {
  height: 100%;
  background-color: #50c878;
  transition: width 0.5s ease;
}

.financial-indicators-icon {
  cursor: pointer;
  width: 30px;
  height: 30px;
  fill: #4a90e2;
  transition: transform 0.3s ease;
}

.financial-indicators-icon:hover {
  transform: scale(1.1);
}

.financial-indicators-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
  max-width: 500px;
  width: 90%;
}

.financial-indicators-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.5em;
  color: #4a90e2;
}

.financial-indicators-list {
  list-style-type: none;
  padding: 0;
}

.financial-indicators-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.financial-indicators-list li strong {
  color: #4a90e2;
}

.swap-offers-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.swap-offer {
  position: relative;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

.swap-offer:hover {
  transform: scale(1.02);
}

.swap-offer-header {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.swap-offer-details {
  margin-right: 60px; 
}

.swap-offer-name {
  font-weight: bold;
  color: #4a90e2;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.swap-offer-company {
  color: #666;
  margin-bottom: 5px;
}

.swap-offer-sector {
  color: #50c878;
  margin-bottom: 10px;
}

.swap-offer-description {
  color: #333;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.swap-offer-financials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  font-size: 0.9em;
}

.swap-offer-cost {
  color: #4a90e2;
  font-weight: bold;
}

.swap-offer-return {
  color: #50c878;
}

.swap-financial-indicators-icon {
  position: static;
  top: auto;
  right: auto;
}

.swap-button {
  position: static;
  bottom: auto;
  right: auto;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.swap-button:hover {
  background-color: #3a80d2;
}

.swap-financial-indicators-overlay {
  max-height: 70vh;
  overflow-y: auto;
  width: 400px;
  padding: 20px;
}

.swap-financial-indicators-list {
  max-height: 60vh;
  overflow-y: auto;
}

.swap-financial-indicators-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.portfolio-container {
    width: 100%;
    background-color: #f4f4f4;
    padding: 0;
    margin-bottom: 20px;
}

.portfolio-container h2 {
    color: #4a90e2;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 20px;
}

.portfolio-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.portfolio-total-value {
    display: flex;
    flex-direction: column;
}

.portfolio-label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.portfolio-amount {
    color: #4a90e2;
    font-size: 1.5em;
    font-weight: bold;
}

.portfolio-metrics {
    display: flex;
    gap: 30px;
}

.portfolio-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-label {
    color: #666;
    font-size: 0.8em;
    margin-bottom: 5px;
}

.metric-value {
    color: #50c878;
    font-weight: bold;
}

.portfolio-investments {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.portfolio-investment {
    min-width: 250px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.portfolio-investment-name {
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 10px;
}

.portfolio-investment-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.portfolio-investment-return {
    color: #50c878;
}

.portfolio-investment-progress {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.portfolio-investment-progress-bar {
    height: 100%;
    background-color: #4a90e2;
}

.site-footer {
    background-color: #4a90e2;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
}