.preview {
    overflow: hidden;
    width: 160px;
    height: 160px;
    margin: 10px;
    border: 1px solid red;
}

.img-container {
    margin-bottom: 1rem;
    max-height: 497px;
    min-height: 200px;
}

@media (min-width: 768px) {
    .img-container {
        min-height: 497px;
    }
}

.img-container>img {
    max-width: 100%;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(14px);
}

/**DASHBOARD CSS**/
.filter-card {
        border-radius: .75rem;
    }
 
    .stat-card {
        border-radius: .75rem;
        border-left: 4px solid var(--accent);
        transition: transform .15s ease, box-shadow .15s ease;
    }
 
    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08) !important;
    }
 
    .stat-card--total {
        background: linear-gradient(135deg, rgba(230,57,70,.06), transparent 60%);
    }
 
    .stat-label {
        font-size: .8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #6c757d;
    }
 
    .stat-value {
        font-size: 2.1rem;
        font-weight: 700;
        color: #212529;
    }
 
    .stat-icon {
        width: 44px;
        height: 44px;
        border-radius: .6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--accent) 15%, white);
        color: var(--accent);
        flex-shrink: 0;
    }
 
    .stat-icon i {
        width: 22px;
        height: 22px;
    }
    .stat-card {
        border-radius: .75rem;
        border-left: 4px solid var(--accent);
        transition: transform .15s ease, box-shadow .15s ease;
    }
 
    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08) !important;
    }
 
    .stat-card--total {
        background: linear-gradient(135deg, rgba(230,57,70,.06), transparent 60%);
    }
 
    .stat-label {
        font-size: .8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #6c757d;
    }
 
    .stat-value {
        font-size: 2.1rem;
        font-weight: 700;
        color: #212529;
    }
 
    .stat-icon {
        width: 44px;
        height: 44px;
        border-radius: .6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--accent) 15%, white);
        color: var(--accent);
        flex-shrink: 0;
    }
 
    .stat-icon i {
        width: 22px;
        height: 22px;
    }
 
    .breakdown-card {
        border-radius: .75rem;
        transition: box-shadow .15s ease;
    }
 
    .breakdown-card:hover {
        box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08) !important;
    }
 
    .breakdown-card .card-title {
        font-weight: 700;
        font-size: 1rem;
    }
 
    .chart-xs {
        max-height: 160px;
        display: flex;
        justify-content: center;
    }
 
    .legend-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .4rem 0;
        font-size: .9rem;
        border-bottom: 1px solid rgba(0,0,0,.05);
    }
 
    .legend-list li:last-child {
        border-bottom: none;
    }
 
    .legend-list li.legend-total {
        font-weight: 700;
        padding-top: .6rem;
        margin-top: .2rem;
        border-top: 1px dashed rgba(0,0,0,.1);
    }
 
    .legend-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--dot);
        margin-right: .5rem;
    }
 
    .legend-value {
        margin-left: auto;
        padding: .15rem .55rem;
        border-radius: 999px;
        font-weight: 600;
        font-size: .8rem;
    }

    .section-heading h4 {
    display: inline-block;
    font-weight: 500;
    padding-bottom: .5rem;
    border-bottom: 3px solid #3B7DDD;
}
 