@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic&display=swap');

* {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #060c3b;

}

body {
    min-height: 100vh;
    overflow: hidden;
    overflow-y: scroll;

}

.container {
    position: relative;
    width: 100%;
}

.nav {
    position: fixed;
    width: 250px;
    height: 100%;
    background: #060c3b;
    border-right: 10px solid #060c3b;
    transition: 0.5s;
    overflow: hidden;
}

.nav.active {
    width: 80px;

}

.nav ul {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 0;

}

.nav ul li {
    position: relative;
    width: 100%;
    list-style: none;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

.nav ul li:hover,
.nav ul li.hovered {
    background-color: aliceblue;
}

.nav ul li:nth-child(1) {
    margin-bottom: 40px;
    pointer-events: none;
}

.nav ul li a {
    position: relative;
    display: block;
    width: 100%;
    display: flex;
    text-decoration: none;
    color: aliceblue;
}

.nav ul li:hover a,
.nav ul li.hovered a {
    color: #060c3b;
}

.nav ul li a .icon {
    position: relative;
    display: block;
    min-width: 60px;
    height: 60px;
    line-height: 55px;
    text-align: center;
}

.nav ul li a .icon .bi {
    font-size: 1.25rem;
}

.nav ul li a .title {
    position: relative;
    display: block;
    padding: 0 10px;
    height: 60px;
    line-height: 60px;
    text-align: end;
}

/* curve outside */
.nav ul li:hover a::before,
.nav ul li.hovered a::before {
    content: '';
    position: absolute;
    left: 0;
    top: -50px;
    width: 50px;
    height: 50px;
    background-color: none;
    border-radius: 50%;
    box-shadow: -35px 35px 0 10px white;
    pointer-events: none;

}

.nav ul li:hover a::after,
.nav ul li.hovered a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -50px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: -35px -35px 0 10px white;
    pointer-events: none;

}

/* main*/
.main {
    position: absolute;
    width: calc(100vw - 250px);
    margin: 0%;
    right: 250px;
    min-height: 100vh;
    background: white;
    transition: 0.5s;
}

.main.active {
    width: calc(100vw - 80px);
    right: 80px;
}

.topbar {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.toggle {
    position: relative;

    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    cursor: pointer;
}

.user {
    position: relative;
    margin: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.user img {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*cards*/
.cardbox {
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
}

.cardbox .card {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;

    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.4);
}

.cardbox .card:hover {
    background: #060c3b;
}

.cardbox .card .numbers {
    position: relative;
    font-weight: 500;
    font-size: 2rem;
    color: #060c3b;
}

.cardbox .card .numbers a {
    text-decoration: none;
    color: #060c3b;
}

.cardbox .card .cardname {
    color: rgb(150, 146, 146);
    font-size: 1rem;
    margin-top: 5px;

}

.cardbox .card .iconbox {
    font-size: 2.5rem;
    color: rgb(110, 102, 102);
}

.cardbox .card:hover .numbers,
.cardbox .card:hover .numbers a,
.cardbox .card:hover .cardname,
.cardbox .card:hover .iconbox {
    color: #fff;
}

/*detiles*/
.detiles {
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    box-sizing: border-box;
    /*margin-top: 10px;*/

}

.detiles .recentorder {
    position: relative;
    display: grid;
    min-height: 500px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    box-sizing: border-box;
}

.detiles .cardheader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.cardheader h2 {
    font-weight: 600;
    color: #060c3b;
}

.cardheader .btn {
    position: relative;
    padding: 5px 10px;
    background: #060c3b;
    text-decoration: none;
    color: #fff;
    border-radius: 6px;

}

.detiles .recentorder table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
}

.detiles .recentorder table thead td {
    font-weight: 600;

}

.detiles .recentorder table tr {
    color: black;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detiles .recentorder table tr:last-child {
    border-bottom: none;
}

.detiles .recentorder table tbody tr:hover {
    background: #060c3b;
    color: #fff
}

.detiles .recentorder table tr td {
    padding: 10px;
}

.detiles .recentorder table tr td:last-child {
    text-align: start;
}

.detiles .recentorder table tr td:nth-child(2) {
    text-align: start;
}

.detiles .recentorder table tr td:nth-child(3) {
    text-align: start;
}

.ok {
    padding: 5px 10px;
    background: rgb(179, 252, 71);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.del {
    padding: 5px 10px;
    background: red;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.update {
    padding: 5px 10px;
    background: green;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.wait {
    padding: 5px 10px;
    background: rgb(226, 226, 8);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

/*responcive */
@media screen and (max-width:991px) {
    .nav {
        right: -250px;
    }

    .nav.active {
        width: 250px;
        right: 0;

    }

    .main {
        width: 100vw;
        right: 0;
    }

    .main.active {
        width: calc(100vw - 250px);
        right: 250px;

    }

    .cardbox {
        grid-template-columns: repeat(2, 1fr);
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .detiles .recentorder {

        box-sizing: border-box;
    }
}

@media (max-width: 575px) {
    .cardbox {
        grid-template-columns: repeat(1, 1fr);
    }

    .nav {
        width: 100vw;
        right: -100%;
        z-index: 1000;
    }

    .nav.active {
        width: 100vw;
        right: 0;
    }

    .toggle {
        z-index: 10001;
    }

    .main.active .toggle {
        color: #fff;
        position: fixed;
        left: 0;
        right: 50%;
    }

    .detiles .recentorder table {
        overflow-x: auto;
    }

    .main.active {
        width: 100%;
    }

    .main {
        width: 100%;
    }

    .col-12 {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}
.custom-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 8%;
    text-align: center;
    text-decoration: none;
    background-color: #060C3B;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.custom-button2 {

 width: 150px;
 margin-bottom: 5px;
 
}

.btn-primary {

    background: #060c3b;
    color: #fff;
}

.btn-primary:hover,
.btn:hover {
    background: #fff;
    border: 1px solid #060c3b;
    color: #060c3b;
}
