@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

@font-face {
    font-family: 'pancar-font';
    src: url("../fonts/conthrax-sb.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'body-font';
    src: url("../fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}


:root {
    --pancar-font: "pancar-font";
    --header-height: 3rem;
    --nav-width: 68px;
    --first-color: #4723D9;
    --first-color-light: #AFA5D9;
    --white-color: #F7F6FB;
    /* --body-font: 'Nunito', sans-serif; */
    --body-font: "body-font";
    --normal-font-size: 1rem;
    --z-fixed: 100
}

*,
::before,
::after {
    box-sizing: border-box
}

body {
    position: relative;
    margin: var(--header-height) 0 0 0;
    padding: 0 1rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: .5s
}

.pancar-font {
    font-family: var(--pancar-font);
}

a {
    text-decoration: none
}

.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: var(--white-color);
    z-index: var(--z-fixed);
    transition: .5s
}

.header_toggle {
    color: var(--first-color);
    font-size: 1.5rem;
    cursor: pointer
}

.header_img {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden
}

.header_img img {
    width: 40px
}

.l-navbar {
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background: linear-gradient(177deg, rgba(13, 0, 54, 1) 2%, rgba(45, 22, 113, 1) 58%, rgba(67, 37, 152, 1) 100%);
    padding: .5rem 1rem 0 0;
    transition: .3s ease-in-out;
    z-index: var(--z-fixed);
}

.nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden
}

.nav_logo,
.nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem
}

.nav_logo {
    margin-bottom: 2rem
}

.nav_logo-icon {
    font-size: 1.25rem;
    color: var(--white-color)
}

.nav_logo-name {
    color: var(--white-color);
    font-weight: 700;
    font-size: 12px;
}

.nav_link {
    position: relative;
    color: var(--first-color-light);
    margin-bottom: 1.5rem;
    transition: .3s
}

.nav_link:hover {
    color: var(--white-color)
}

.nav_icon {
    font-size: 1.25rem;
}

.showNav {
    left: 0;
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem)
}

.active {
    color: var(--white-color)
}

.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--white-color)
}

.height-100 {
    height: 100vh
}



@media screen and (min-width: 768px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem)
    }

    .header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }

    .header_img {
        width: 40px;
        height: 40px
    }

    .header_img img {
        width: 45px
    }

    .l-navbar {
        left: 0;
        padding: 1rem 1rem 0 0
    }

    .showNav {
        width: calc(var(--nav-width) + 156px);
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 188px)
    }
}




/* Title Styling -----------------------------*/
.table-title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 1rem;
}

/* Table */
.table {
    background: #fff;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table thead {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: white;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

/* Product Info */
.product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        overflow: hidden;
        padding: 10px;
    }

    .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 5px;
    }

    .table td:nth-child(1)::before {
        content: "#";
        font-weight: bold;
    }
}

/* ======================= Style global button dan icon =======================*/
/* ========================================================================== */

button,
a.btn-back-detail {
    border-radius: 6px;
    padding: 8px 20px;
    border: none;
    box-shadow: 2px 3px 1px rgba(0, 0, 0, 0.7) !important;
    font-size: 12px;
}

.btn-close,
.btn-status-banner,
.note-btn,
.btn-none {
    box-shadow: none !important
}

i.icon {
    font-size: 11px !important;
    padding-right: 8px;
}

i.icon-header {
    font-size: 24px !important;
    padding-right: 10px;
}

/* i.icon-datatable {
    font-size: 11px !important;
} */

textarea.contact {
    padding: 10px 0 0 10px;
    border-color: #cacaca;
    color: #555c62;
}

.nav_logo-icon {
    width: 25px;
}