/*Dashboard Layout*/

.second_content,
.third_content,
.fourth_content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 25px auto;
    max-width: 1750px;
}


/*Dashboard Cards*/

.items{
    flex: 1;
    height: 190px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px #7f7fb2ff;
    transition: 1s;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.items2{
    flex: 1;
    height: 190px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px #7f7fb2ff;
    transition: 1s;
    position: relative;
    display: flex;
    justify-content: right;
    flex-direction: row;
    .items2-product{
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        .product-title{
            align-items: center;
            font-weight: bold;
            font-family: "Arial Black";
            padding: 10px;
        }
        .product-price{
            font-family: "MyFont";
            position: absolute;
            color: #6236d9;
            font-size: 30px;
            bottom: 5px;
            left: 15px;
        }
    }
}
h2{
    margin: 15px 25px 0px 15px;
    font-size: 35px;
    color: #6236d9;
    border-bottom: 2px solid #000000;
}
.no_border_title{
    margin: 15px 25px 5px 15px;
    font-size: 30px;
    color: #000000;
    border-bottom: unset;
}
.numbers{
    font-weight: bolder;
    font-size: 39px;
    align-self: center;
    align-self: flex-end;
    margin: 0px 0px 0px 35px;
}
.percent-div{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
}
.percent{
    color: green;
}
.percent-discription{
    margin: 0;
}
.orders-dashboard{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin: 0px 15px 0px 15px;
    justify-content: space-between;
    border-top: #6236d9 solid 1px;


}
.order-id{

}
.order-status{
    background-color: rgb(255 255 0 / 0.36);
    color: #abab3d;
    border-radius: 15px;
    padding: 10px;
    margin: 5px 10px 5px 10px;
    width: 120PX;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-status-red{
    background-color: rgb(255 0 0 / 0.36);
    color: #602222;
    border-radius: 15px;
    padding: 10px;
    margin: 5px 10px 5px 10px;
    width: 120PX;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-status-green{
    background-color: rgb(34 255 0 / 0.36);
    color: #2f853f;
    border-radius: 15px;
    padding: 10px;
    margin: 5px 10px 5px 10px;
    width: 120PX;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.items:hover,
.items2:hover {
    transform: scale(1.05);
    background-color: rgb(127 127 178 / 0.15);
    box-shadow: 0 5px 25px #7f7fb2;
    cursor: pointer;

}
.items2:hover {
    transform: scale(1.05);
    background-color: rgb(255 255 255);
    box-shadow: 0 5px 25px #7f7fb2;
    cursor: pointer;

}


/*Dashboard Large Cards*/

.second_items {
    flex: 2;
    height: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px #7f7fb2ff;
    transition: 1s;
    overflow: auto;
}

.second_items2 {
    flex: 3;
    height: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px #7f7fb2ff;
    transition: 1s;
}

.second_items:hover,
.second_items2:hover {
    transform: scale(1.02);
    background-color: rgb(127 127 178 / 0.15);
    box-shadow: 0 5px 25px #7f7fb2;
    cursor: pointer;
}



.sales-chart {
    height: 215px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 12px;
    padding: 10px 25px;
}

.chart-column {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    max-width: 42px;
    background-color: #dcd2ff;
    border-radius: 8px 8px 0 0;
    transition: 0.3s;
}

.chart-bar.active,
.chart-bar:hover {
    background-color: #6236d9;
}

.chart-column small {
    color: #77778a;
    font-size: 12px;
}

/*Dashboard Responsive*/

@media (max-width: 1000px) {

    .second_content,
    .fourth_content {
        flex-wrap: wrap;
    }

    .items,
    .items2 {
        flex: 0 0 calc(50% - 15px);
    }

}


@media (max-width: 700px) {

    .second_content,
    .fourth_content {
        flex-direction: column;
    }

    .items,
    .items2 {
        width: 100%;
        flex: none;
    }

    .third_content {
        flex-direction: column;
    }

    .second_items,
    .second_items2 {
        width: 100%;
        flex: none;
    }
}



@keyframes fadeUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.main_content h1 {
    animation: fadeUp 0.55s ease-out both;
}
.items,
.second_items,
.second_items2,
.items2 {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}
.second_content .items:nth-child(1) { animation-delay: 0.15s; }
.second_content .items:nth-child(2) { animation-delay: 0.25s; }
.second_content .items:nth-child(3) { animation-delay: 0.35s; }
.second_content .items:nth-child(4) { animation-delay: 0.45s; }

.third_content .second_items { animation-delay: 0.55s; }
.third_content .second_items2 { animation-delay: 0.65s; }

.fourth_content .items2:nth-child(1) { animation-delay: 0.75s; }
.fourth_content .items2:nth-child(2) { animation-delay: 0.75s; }
.fourth_content .items2:nth-child(3) { animation-delay: 0.75s; }
.fourth_content .items2:nth-child(4) { animation-delay: 0.75s; }

@media (max-width: 700px) {
    h2 {
        font-size: 27px;
    }

    .numbers {
        font-size: 32px;
    }

    .percent-div {
        flex-wrap: wrap;
        gap: 5px;
    }

    .orders-dashboard {
        gap: 7px;
        margin: 0 8px;
        font-size: 13px;
    }

    .order-status,
    .order-status-red,
    .order-status-green {
        flex-basis: 105px;
        width: 105px;
        height: 38px;
        margin: 4px;
        padding: 6px;
    }

    .sales-chart {
        gap: 6px;
        padding-inline: 10px;
    }

    .chart-column small {
        font-size: 10px;
    }
}

/* Responsive refinement - dashboard */
@media (max-width: 1200px) {
    .second_content,
    .third_content,
    .fourth_content {
        gap: 18px;
        margin-block: 18px;
    }

    .items,
    .items2 {
        flex: 1 1 calc(50% - 18px);
        min-width: 280px;
    }
}

@media (max-width: 900px) {
    .third_content {
        flex-direction: column;
        align-items: stretch;
    }

    .second_items,
    .second_items2 {
        width: 100%;
        flex: none;
    }

    .second_items {
        height: 360px;
    }

    .second_items2 {
        height: 320px;
    }
}

@media (max-width: 600px) {
    .second_content,
    .third_content,
    .fourth_content {
        gap: 12px;
        margin-block: 12px;
    }

    .items,
    .items2 {
        width: 100%;
        min-width: 0;
        min-height: 150px;
        height: auto;
        flex-basis: 100%;
    }

    .items {
        padding-block: 12px;
    }

    .items2 {
        min-height: 135px;
    }

    h2,
    .no_border_title {
        margin: 12px 14px 5px;
        font-size: 25px;
    }

    .numbers {
        margin-left: 20px;
        font-size: 30px;
    }

    .percent-div {
        margin-inline: 14px;
    }

    .second_items {
        height: 340px;
        overflow: auto;
    }

    .orders-dashboard {
        display: grid;
        grid-template-columns: minmax(115px, 1.4fr) repeat(2, minmax(90px, 1fr)) 110px;
        min-width: 540px;
        margin-inline: 10px;
    }

    .order-status,
    .order-status-red,
    .order-status-green {
        width: 100px;
        height: 36px;
        flex-basis: 100px;
    }

    .second_items2 {
        height: 290px;
        overflow-x: auto;
    }

    .sales-chart {
        min-width: 500px;
        height: 205px;
        padding-inline: 12px;
    }

    .items2 img {
        flex: 0 0 auto;
    }

    .items2 .product-price {
        font-size: 24px;
    }
}

@media (hover: none) {
    .items:hover,
    .items2:hover,
    .second_items:hover,
    .second_items2:hover {
        transform: none;
    }
}





