/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    transition: all 0.4s ease;
}
:root {
    --white-color: #fff;
    --main-color: #f6edec;
    --cece-color: #ecececdb;
    --blue-color: #0ea5e9;
    --black-color: #222;
    --w1: #F7DFF5;
    --grey-color: #707070;
    --grey-color-light: #aaa;
    --solobea-color: rgb(243, 246, 246);
    --solobea-text-color: rgb(6,156,212);
}
body {
    transition: all 0.5s ease;
}
p,h1,h2,h3,h4,a{
    overflow-wrap: anywhere;
    word-break: break-word;
}
body.dark {
    --cece-color: #182428;
    --white-color: #333;
    --w1: #3d2b2b;
    --blue-color: #fff;
    --black-color: #fff;
    --grey-color: #f2f2f2;
    --main-color: #000;
    --grey-color-light: #aaa;
    --solobea-color: rgb(122, 137, 137);
}
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    top: 0; /* Below the header */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    background-color: var(--solobea-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 0 2px var(--grey-color-light);
}
.logo_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    font-size: 22px;
    font-weight: 500;
    color: var(--blue-color);
}
.logo{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.navbar img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
}
.search_bar {
    height: 47px;
    max-width: 430px;
    width: 100%;
}
.search_bar input {
    height: 100%;
    width: 100%;
    border-radius: 25px;
    font-size: 18px;
    outline: none;
    background-color: var(--white-color);
    color: var(--grey-color);
    border: 1px solid var(--grey-color-light);
    padding: 0 20px;
}
.navbar_content {
    display: flex;
    align-items: center;
    column-gap: 25px;
}
.navbar_content i {
    cursor: pointer;
    font-size: 20px;
    color: var(--grey-color);
}

/* sidebar */
.sidebar {
    background-color: var(--solobea-color);
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding: 80px 20px;
    z-index: 100;
    overflow-y: scroll;
    box-shadow: 0 0 1px var(--grey-color-light);
    transition: all 0.5s ease;
}
.sidebar.close {
    padding: 60px 0;
    width: 80px;
}
.sidebar::-webkit-scrollbar {
    display: none;
}
.menu_content {
    position: relative;
}
.menu_title {
    margin: 15px 0;
    padding: 0 20px;
    font-size: 18px;
}
.sidebar.close .menu_title {
    padding: 6px 30px;
}
.menu_title::before {
    color: var(--grey-color);
    white-space: nowrap;
}
.menu_dahsboard::before {
    content: "Dashboard";
}
.menu_editor::before {
    content: "Editor";
}
.menu_setting::before {
    content: "Setting";
}
.sidebar.close .menu_title::before {
    content: "";
    position: absolute;
    height: 2px;
    width: 18px;
    border-radius: 12px;
    background: var(--grey-color-light);
}
.menu_items {
    padding: 0;
    list-style: none;
}
.navlink_icon {
    position: relative;
    font-size: 22px;
    min-width: 50px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    border-radius: 6px;
}
.navlink_icon::before {
    content: "";
    position: absolute;
    height: 100%;
    width: calc(100% + 100px);
    left: -20px;
}
.navlink_icon:hover {
    background: var(--blue-color);
}
.sidebar .nav_link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 4px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--grey-color);
    white-space: nowrap;
}
.sidebar.close .navlink {
    display: none;
}
.nav_link:hover {
    color: var(--white-color);
    background: var(--blue-color);
}
.sidebar.close .nav_link:hover {
    background: var(--white-color);
}
.submenu_item {
    cursor: pointer;
}
.submenu {
    display: none;
}
.submenu_item .arrow-left {
    position: absolute;
    right: 10px;
    display: inline-block;
    margin-right: auto;
}
.sidebar.close .submenu {
    display: none;
}
.show_submenu ~ .submenu {
    display: block;
}
.show_submenu .arrow-left {
    transform: rotate(90deg);
}
.submenu .sublink {
    padding: 15px 15px 15px 52px;
}
.main-content {
    background-color: var(--main-color);
    color: var(--grey-color);
    min-height: 90vH;
    margin-left: 260px; /* same width as sidebar */
    padding: 90px 10px 10px; /* top padding to clear navbar */
    transition: all 0.5s ease;
}

/* Adjust when sidebar is collapsed */
.sidebar.close ~ .main-content {
    margin-left: 80px;
}
@media screen and (max-width: 768px) {
    #sidebarOpen {
        font-size: 25px;
        display: block;
        margin-right: 10px;
        cursor: pointer;
        color: var(--grey-color);
    }
    .sidebar{
        left: -100%;
    }
    .sidebar.mobile-open{
        left: 0;
    }
    .search_bar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding-top: 90px;
    }
    .sidebar.close ~ .main-content {
        margin-left: 0;
    }
}
.cursor-pointer {
    cursor: pointer;
}
.md-hidden{
    display: none;
}

.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    .desktop-only {
        display: flex;
    }
    .md-hidden{
        display: flex;
    }
}