html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    background-color: #fff8f0;
}

.sidebar {
    max-width: 200px;
}

.flex-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh; /* Ensures the flex container covers at least the height of the viewport */
}

.flex-sidebar {
    flex-grow: 1;
    flex-shrink: 0;
    min-height: 100vh; /* Ensures the sidebar covers at least the height of the viewport */
}

.flex-main-content {
    flex-grow: 1; /* Allows the main content to grow and fill the available space */
}

.pl-content {
    border: 1px solid #DDD;  /* f4d06f */
}

.sparkline-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
  }
  .sparkline {
    width: 10px;
    height: 20px; /* total height of each sparkline column */
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
  }
  .segment {
    width: 100%;
  }

.negative_sentiment {
    padding:2px;
    background-color:lightcoral;
    color:red;
    font-weight:bold;
}

.neutral_sentiment {
    padding: 2px;
    background-color: lightgrey;
    color:#999;
}

.positive_sentiment {
    padding:2px;
    background-color:lightgreen;
    color:green;
    font-weight:bold;
}

.blank {
    background: transparent;
}

.red {
    background-color: red;
}

.grey {
    background-color: #EEE;
}

.green {
    background-color: green;
}

.white {
    background-color: #FFF;
}

.uk-background-gain {
    background-color: #32d296;
    color: #fff;
}

.uk-background-loss {
    background-color: #f0506e;
    color: #fff;
}

.uk-label-buy {
    border-radius: 25px;
    background-color: #000;
    color: #FFF;
    border: 1px solid #FFF;
    width: 30px;
    text-align: center;
}

.uk-label-sell {
    border-radius: 25px;
    background-color: #FFF;
    color: #000;
    border: 1px solid #000;
    width: 30px;
    text-align: center;
}

.uk-label-gain {
    background-color: #32d296;
    color: #fff;
    border: 1px solid #000;
}
.uk-label-gain a {
    color: #fff;
}

.uk-label-gaining {
    background-color: #86d1b5;
    color: #fff;
    border: 1px solid #d6d6d6;
}
.uk-label-gaining a {
    color: #fff;
}

.uk-label-loss {
    background-color: #f0506e;
    color: #fff;
    border: 1px solid #000;
}
.uk-label-loss a {
    color: #fff;
}

.uk-label-losing {
    background-color: #eba7b3;
    color: #fff;
    border: 1px solid #d6d6d6;
}
.uk-label-losing a {
    color: #fff;
}

.uk-label-muted {
    background-color: #e0e0e0;
    color: #555;
    border: 1px solid #d6d6d6;
}
.uk-label-muted a {
    color: #555;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    height: 5px; /* You can adjust the height as needed */
    background-color: #e0e0e0; /* Light grey background in case the segments don't cover the full width */
}

.progress-segment {
    flex-grow: 1; /* Each segment will take equal space */
    transition: width 0.5s ease; /* Optional: Adds a smooth transition effect */
}

/* KPI Cards */

.kpi-card {
    font-size: 1.2rem;
    padding: 10px;
}

.kpi-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.kpi-card p {
    font-size: 1.5rem;
    font-weight: bold;
}

.green-background {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.red-background {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Slider / Range */
#curve-slider {
    accent-color: #1e87f0; /* UIkit Primary Blue */
    cursor: pointer;
    height: 6px;
    border-radius: 5px;
}

#week-label {
    font-weight: normal;
    color: #555;
    margin-left: 10px;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer-animation 1.5s infinite;
  }

@keyframes shimmer-animation {
    from {
        background-position: -100% 0;
    }
    to {
        background-position: 200% 0;
    }
}

.metric_skeleton {
    height: 20px;
    width: 40px;
    border-radius: 4px;
    display: inline;
}

.basket {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    width: 100%;
    background-color: #f7f7f7;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.day {
    width: 10%;
    background-color: #333;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

.date {
    width: 10%;
    background-color: #e0e0e0;
    color: #555;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    flex-shrink: 0;
}

.securities {
    width: 75%;
    padding-left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex-grow: 1;
}

.securities span {
    white-space: nowrap; /* Prevent labels themselves from wrapping */
    flex-shrink: 0; /* Prevent shrinking of the labels */
}

.tooltip-card {
    width: 450px;
    max-width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


