/* =========================================================
   GLOBAL RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    font-family: 'Poppins', sans-serif;

    background: #f5f7fb;
    color: #3b3f5c;

    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
}




.container-fluid {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wrapper {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 70px;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    z-index: 1100;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   HEADER LEFT
========================================================= */

.header-left {
    display: flex;
    align-items: center;

    min-width: 0;
}

.toggle-btn {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border: none;
    outline: none;

    background: #f3f4f7;

    border-radius: 8px;

    margin-right: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #6d28d9;
    color: #fff;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    font-size: 22px;
    font-weight: 700;

    color: #2d2d2d;

    white-space: nowrap;
}

.logo span {
    color: #6d28d9;
}


/* =========================================================
   HEADER CENTER / SEARCH
========================================================= */

.header-center {
    width: 450px;
    max-width: 40%;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    height: 45px;

    border: none;
    outline: none;

    border-radius: 10px;

    background: #f3f4f7;

    padding: 0 15px 0 45px;

    font-size: 14px;
}

.search-box input:focus {
    outline: none;

    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.08);
}

.search-box i {
    position: absolute;

    top: 50%;
    left: 18px;

    transform: translateY(-50%);

    color: #777;

    pointer-events: none;
}


/* =========================================================
   HEADER RIGHT
========================================================= */

.header-right {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.icon-btn {
    width: 42px;
    height: 42px;

    border: none;
    outline: none;

    background: #f3f4f7;

    border-radius: 50%;

    position: relative;

    margin-right: 15px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: #6d28d9;
    color: #fff;
}

.badge-dot {
    position: absolute;

    width: 10px;
    height: 10px;

    background: red;

    border-radius: 50%;

    top: 7px;
    right: 7px;

    border: 2px solid #fff;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-dropdown {
    display: flex;
    align-items: center;
}

.profile-dropdown a {
    display: flex;
    align-items: center;

    color: #333;

    white-space: nowrap;
}

.profile-img {
    width: 42px;
    height: 42px;

    object-fit: cover;

    border-radius: 50%;

    margin-right: 10px;
}

.admin-name {
    font-size: 14px;
    font-weight: 600;
}





/* Sidebar Scrollbar */

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}


/* =========================================================
   SIDEBAR LOGO
========================================================= */

.sidebar-logo {
    min-height: 80px;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #eee;

    white-space: nowrap;
}

.sidebar-logo img {
    width: 45px;
    height: 45px;

    object-fit: contain;

    margin-right: 12px;

    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   SIDEBAR MENU
========================================================= */

.sidebar-menu {
    padding: 20px 12px;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    padding: 0 18px;

    border-radius: 10px;

    color: #555;

    white-space: nowrap;

    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #6d28d9;
    color: #fff;
}

.sidebar-menu i {
    width: 35px;
    min-width: 35px;

    font-size: 18px;

    display: inline-flex;
    align-items: center;
}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.sidebar-footer {
    width: 100%;

    padding: 15px;

    border-top: 1px solid #eee;
}

.sidebar-footer a {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;

    padding: 0 18px;

    color: #e53935;

    border-radius: 10px;

    white-space: nowrap;
}

.sidebar-footer a:hover {
    background: #fff1f1;
}

.sidebar-footer i {
    width: 35px;
    min-width: 35px;
}





/* =========================================================
   SIDEBAR COLLAPSED DESKTOP
========================================================= */

.sidebar.collapsed {
    width: 80px;

    min-width: 80px;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;

    padding-left: 10px;
    padding-right: 10px;
}

.sidebar.collapsed .sidebar-logo img {
    margin-right: 0;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;

    padding-left: 10px;
    padding-right: 10px;
}

.sidebar.collapsed .sidebar-menu i {
    width: auto;
    min-width: auto;

    justify-content: center;
}

.sidebar.collapsed .sidebar-menu span {
    display: none;
}

.sidebar.collapsed .sidebar-footer a {
    justify-content: center;

    padding-left: 10px;
    padding-right: 10px;
}

.sidebar.collapsed .sidebar-footer i {
    width: auto;
    min-width: auto;
}

.sidebar.collapsed .sidebar-footer span {
    display: none;
}


/*
   When sidebar is collapsed
   content gets more space
*/

body.sidebar-close .content-wrapper {

    width: calc(100vw - 80px);

    margin-left: 80px;
}


/* =========================================================
   SIDEBAR OVERLAY
========================================================= */

.sidebar-overlay {
    position: fixed;

    top: 70px;
    left: 0;

    width: 100%;
    height: calc(100vh - 70px);

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;

    z-index: 1050;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   TABLE
========================================================= */

th,
td {
    font-size: 14px;
    vertical-align: middle;
}

.table-responsive {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 10px;
}

.login-image {
    width: 100%;
    max-width: 430px;

    height: auto;
}

.login-card {
    width: 100%;
    max-width: 500px;

    background: #fff;

    padding: 45px;

    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.login-card h2 {
    font-weight: 700;

    margin-bottom: 35px;
}

.input-group-text {
    background: #fff;

    border-right: 0;
}

.form-control {
    min-height: 45px;
}

.form-control:focus {
    box-shadow: none;
}

.login-btn {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 8px;

    background: #ff3f7f;

    color: #fff;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #e91e63;

    color: #fff;
}

.forgot {
    text-decoration: none;

    font-size: 14px;
}
/* =========================================================
   BOOTSTRAP MODAL Z-INDEX FIX
========================================================= */

.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1990 !important;
}

/* Header must stay below modal */
.top-header {
    z-index: 1100;
}

/* Sidebar must stay below modal */
.sidebar {
    z-index: 1051;
}

/* Sidebar overlay below modal */
.sidebar-overlay {
    z-index: 1050;
}



.content-header {
    background:#fff;
    border-radius:15px;
    margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

/* =========================================================
   DESKTOP CONTENT
========================================================= */

.content-wrapper {
    
    width: 80%;
    padding: 10px;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    transition:
        width 0.3s ease,
        margin-left 0.3s ease;
        
    position: relative;

   
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    
    position: fixed;
    padding: 10px;
    width: 20%;
    height: calc(100vh - 70px);

    background: #fff;

    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.08);

    overflow-x: hidden;
    overflow-y: auto;

    z-index: 1051;

    transition:
        width 0.3s ease,
        left 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   LAPTOP
========================================================= */

@media (min-width: 1200px)  {

    .sidebar {
        width: 20%;
        left: 0;
    }

    .content-wrapper {
        width: 80%;
        left: 20%;
    }

    .header-center {
        width: 350px;
        max-width: 35%;
    }

    .admin-name {
        display: none;
    }

}


/* =========================================================
   TABLET & MOBILE
========================================================= */

@media (max-width: 1199px) {

    .top-header {
        height: 70px;
        padding: 0 15px;
    }

    .header-center {
        display: none;
    }

    .admin-name {
        display: none;
    }


    /*
       Content full width
    */

    .content-wrapper {

        width: 100% !important;

        left: 0 !important;
    }


    /*
       Sidebar = 30%
       and OVER content
    */

    .sidebar {
        z-index: 1051;
         width: 70% !important;
         left: -70% !important;
        box-shadow: 8px 0 25px rgba(0, 0, 0, 0.12);
    }

    .sidebar.show {
         left: 0% !important;
    }


    /*
       Overlay
    */

    .sidebar-overlay {
        z-index: 1050;
        
    }
    
    
      body.sidebar-open {
        overflow: hidden;
    }

}





/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-menu {

    max-width: calc(100vw - 20px);
}


/* =========================================================
   MODAL RESPONSIVE
========================================================= */

@media (max-width: 575px) {

    .modal-dialog {

        margin: 10px;
    }

    .modal-content {

        border-radius: 12px;
    }

}


/* =========================================================
   PREVENT HORIZONTAL SCROLL
========================================================= */

html,
body {

    max-width: 100%;

    overflow-x: hidden;
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .top-header,
    .sidebar,
    .sidebar-overlay {

        display: none !important;
    }

    .content-wrapper {

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;
    }

}

