/* Google Fonts - Kanit */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    min-height: 100%;
    width: 100%;
    background: #e0e4e7;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

nav .logo {
    display: flex;
    align-items: center;
    margin: 0 24px;
}

nav .user {
    display: flex;
    width: 1500%;
    justify-content: end;
}

nav .dropdown {
    position: relative;
    display: inline-block;
}


.logo .nav-link {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    text-decoration: none;
}

.user .role {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    color: #000;
    font-weight: 400;
    padding-left: 10px;
  }

.user .nav-link {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    color: #000;
    font-weight: 400;
    padding-left: 10px;
    border-left: 1px solid #000;
  }

.user .nav-link .icon {
    font-size: 25px;
    color: #000;
}

.bottom-cotent .icon {
    color: #36618D;
    font-size: 24px;
    margin-right: 14px;
    cursor: pointer;
}

.bottom-cotent .menu-icon {
    margin: 14px;
    font-size: 20px;
    color: #000;
}

.logo .menu-icon {
    color: #333;
    font-size: 24px;
    margin-right: 14px;
    cursor: pointer;
}

.logo .logo-name {
    color: #333;
    font-size: 22px;
    font-weight: 500;
}

nav .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 320px;
    padding: 10px 0;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

nav.open .sidebar {
    left: 0;
}

.sidebar .sidebar-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 16px;
}

.sidebar-content .list {
    list-style: none;
}

.list .nav-link {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 5px 12px;
    border-radius: 8px;
    background-color: #ffffff;
    text-decoration: none;
}

.list .nav-link:hover {
    background-color: #36618D;
    /*  */
}

.nav-link .icon {
    margin: 14px;
    font-size: 20px;
    color: #000;
}

.nav-link .link {
    font-size: 16px;
    color: #000;
    font-weight: 400;
}

.overlay {
    position: fixed;
    top: 0;
    left: -100%;
    height: 1000vh;
    width: 200%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    background: rgba(0, 0, 0, 0.3);
}

nav.open~.overlay {
    opacity: 1;
    left: 320px;
    pointer-events: auto;
}

/* user */
.dropbtn {
    background-color: #ffffff;
    color: #000;
    padding: 18px;
    font-size: 23px;
    border: none;
    cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    top: 100%;
    right: 0;
    z-index: 1;
    min-width: 200px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #36618D;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 16px;
    display: flex;
}

.dropdown-content a .tt {
    margin-left: 30px; /* เลื่อนไปทางขวามือ 30px */
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.notibtn {
    background-color: #ffffff;
    color: #000;
    padding: 18px;
    font-size: 23px;
    border: none;
    cursor: pointer;
}

.noti {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.noti-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    top: 100%;
    right: 0;
    z-index: 1;
    min-width: 200px;
}

/* Links inside the dropdown */
.noti-content a {
    color: #36618D;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 16px;
    display: flex;
}

.noti-content a .tt {
    margin-left: 30px; /* เลื่อนไปทางขวามือ 30px */
}

/* Change color of dropdown links on hover */
.noti-content a:hover {
    background-color: #f1f1f1
}

/* Show the dropdown menu on hover */
.noti:hover .noti-content {
    display: block;
}