.dashboard {
    display: flex;
    height: calc(100vh - 52px);
}

.sidebar {
    width: 244px;
    height: 100%;
    padding: 30px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 15px;
    background-color: #f7f7f7;
    border: 1px solid #E3E2E2;
    margin-left: -30px;
}

.sidebar.collapsed {
    width: 82px;
    padding: 30px 20px;
}

.sidebar .top-section {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.sidebar.collapsed .top-section {
    justify-content: center;
}

.sidebar.collapsed .top-section h3 {
    display: none;
}

.sidebar .top-section button {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

.sidebar.collapsed .top-section button {
    transform: rotate(180deg);
}

.sidebar .top-section svg {
    width: 12px;
    fill: var(--primary);
}

.sidebar .button {
    width: 100%;
    text-align: left;
}

.sidebar.collapsed .button {
    padding: 8px 10px !important;
}

.sidebar.collapsed .button span {
    display: none;
}

.dashboard-tab {
    display: none; /* Hide by default if not selected */
}

.dashboard-tab.selected {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto;
    padding: 30px;
    margin-right: -30px;
    align-content: baseline;
    align-items: flex-start;
}

/* Dashboard widget styling*/
.dashboardWidget {
    background-color: #f7f7f7;
    border: 1px solid #E3E2E2;
    border-radius: 12px;
    max-width: 100%;
    overflow-x: auto;
    padding: 10px;
}

.conversionSidebar {
    width: 274px;
    height: 100%;
    border-left: 2px solid #b3b3b3;
    margin-left: 30px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Progress bar widget styling */
.barSection {
    margin-bottom: 15px;
}

.barSection .info {
    margin-bottom: 5px;
    padding-right: 5px;
}

.barSection .info span:last-child {
    font-weight: 600;
}

.barSection .progressBar {
    width: 100%;
    height: 15px;
    background-color: #dddddd;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.barSection .progressBar div {
    position: absolute;
    height: 100%;
    background-color: rgba(0,0,0,0);
}

.barSection .progressBar span {
    position: absolute;
    height: 100%;
    border-radius: 12px;
    background-color:  var(--primary);
    width: 0;
    animation: progressBarAnim 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

@keyframes progressBarAnim {
    100% {
        width: 100%;
    }
}

.figureCard {
    background-color: #dddddd;
    border-radius: 12px;
    margin-bottom: 15px;
}

.figureCard:last-child {
    margin-bottom: 0px;
}

.figureCard > p {
    font-size: 50px;
    font-weight: bold;
    margin: 0 20px;
}

.figureCard > h5 {
    margin: 0 20px;
    padding-bottom: 20px;
    font-size: 16px;
}

.legend {
    display: flex;
    flex-direction: row;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 30px 0 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 5px;
}