@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

body {
    background-color: #36393f;   
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --marginObj: 2vw;
    --maxWidthObj: 1800px;
}

.home-section {
    color: white;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 78px;
    background: #202225;
    padding: 6px 14px;
    z-index: 99;
    transition: all 0.5s ease;
    box-shadow: 4px 0px 4px #00000040;
    overflow: visible;
}

.sidebar.open {
    width: 250px;
}

.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .logo-details .icon {
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar .logo-details .logo_name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name {
    opacity: 1;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 22px;
    transition: all 0.4s ease;
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details #btn {
    text-align: right;
}

.sidebar i {
    color: #fff;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
}

.sidebar .nav-list {
    margin-top: 20px;
    height: 100%;
}

.sidebar li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 3;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0s;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar.open li .tooltip {
    display: none;
}

.sidebar input {
    font-size: 15px;
    color: #fff;
    font-weight: 400;
    outline: none;
    height: 50px;
    width: 100%;
    width: 50px;
    border: none;
    border-radius: 12px;
    transition: all 0.5s ease;
    background: #1d1b31;
}

.sidebar.open input {
    padding: 0 20px 0 50px;
    width: 100%;
}

.sidebar .bx-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 22px;
    background: #1d1b31;
    color: #fff;
}

.sidebar li a,
.sidebar li button {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    border: none;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    background: #36393f;
    box-shadow: 4px 4px 4px #00000040;
}

.sidebar li select {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    border: none;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    background: #36393f;
}

.sidebar li a:hover,
.sidebar li button:hover,
.sidebar li select:hover {
    background: #fff;
    cursor: pointer;
}

.sidebar li a .links_name,
.sidebar li button .links_name,
.sidebar li select .links_name {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    cursor: pointer;
}

.sidebar.open li a .links_name,
.sidebar.open li button .links_name,
.sidebar.open li select .links_name {
    opacity: 1;
    pointer-events: auto;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i,
.sidebar li button:hover .links_name,
.sidebar li button:hover i,
.sidebar li select:hover .links_name,
.sidebar li select:hover i {
    transition: all 0.5s ease;
    color: #36393f;
    cursor: pointer;
}

/* Language */
.sidebar li button:hover,
.sidebar li button:hover form select {
    background-color: #44474e;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 5px;
    transform: translateY(-0px);
    background: #fff;
}

.sidebar li button:hover,
.sidebar li button:hover form select {
    transition: all 0.5s ease;
    color: #000000;
}

.sidebar li i {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-radius: 12px;
}

.sidebar li.profile {
    position: fixed;
    height: 60px;
    width: 78px;
    left: 0;
    bottom: -8px;
    padding: 10px 14px;
    background: #36393f;
    transition: all 0.5s ease;
    overflow: hidden;
}

.sidebar.open li.profile {
    width: 250px;
}

.sidebar li .profile-details {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.sidebar li img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.sidebar li.profile .name,
.sidebar li.profile .job {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.sidebar li.profile .job {
    font-size: 12px;
}

.sidebar .profile #log_out {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #2f3136;
    width: 100%;
    height: 60px;
    line-height: 60px;
    border-radius: 0px;
    transition: all 0.5s ease;
}

.sidebar.open .profile #log_out {
    width: 50px;
    background: none;
}

.sidebar.open .profile a {
    box-shadow: 0px 0px 0px;
}

.sidebar.open .profile a:hover,
.sidebar.open .profile a:hover span {
    opacity: 1;
    pointer-events: auto;
    background: #fff;
    color: red;
}

.sidebar .profile a:hover i {
    color: red;
}

.home-section {
    position: relative;
    background: #36393f;
    min-height: 100vh;
    top: 0;
    left: 78px;
    width: calc(100% - 78px);
    transition: all 0.5s ease;
    z-index: 2;
    background-image: url("/images/index/background.png");
    
}
/*
.home-bg {
    background: #e43838;
    opacity: 0.3;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -3;
}
*/
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #202225;
}

body::-webkit-scrollbar-thumb {
    background: #141618;
}

body::-webkit-scrollbar-thumb:hover {
    background: #0e1011;
}

.sidebar.open ~ .home-section {
    left: 250px;
    width: calc(100% - 250px);
}

.home-section-blur {
    filter: blur(1.5rem);
}

.home-section .text {
    display: inline-block;
    color: #ffffff;
    font-size: 25px;
    font-weight: 500;
    margin: 18px;
}

@media (max-width: 420px) {
    .sidebar li .tooltip {
        display: none;
    }
}

.iconUrl {
    border-radius: 50%;
    max-width: 20%;
}

.logo_name {
    padding: 2%;
}

.space-line {
    min-height: 2px;
    background-color: #1c1e20;
    border: 5px;
}

.light-effect1 {
    left: 99vw;
    position: fixed;
    background-color: transparent;
    object-fit: cover;
    box-shadow: 0px 0px 90px 90px #48abe0;
}

.light-effect2 {
    right: 99vw;
    top: 99vh;
    position: fixed;
    background-color: transparent;
    object-fit: cover;
    box-shadow: 0px 0px 100px 100px #a348e0;
}

.select-language {
    border: none;
    border-radius: 0px none;
    box-sizing: border-box;
    width: 100%;
    padding-right: 5px;
}

.h1-modules-name {
    margin-left: var(--marginObj);
    margin-right: var(--marginObj);
}

.left-side {
    margin-left: 5vw;
}

/* loader */
.loader-wrapper {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 5px;
    left: 0;
    background-color: #36393f;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
}

.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    top: 10px;
    border: 4px solid #fff;
    animation: loader 2s infinite ease;
}

.loader-inner {
    vertical-align: top;
    display: inline-block;
    width: 100%;
    background-color: #fff;
    animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(180deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-inner {
    0% {
        height: 0%;
    }
    25% {
        height: 0%;
    }
    50% {
        height: 100%;
    }
    75% {
        height: 100%;
    }
    100% {
        height: 0%;
    }
}

.loadcomplete {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 300ms, opacity 300ms;
}

.alert-box {
    position: fixed;
    z-index: 10;
    bottom: 0;
    right: 0;
    object-fit: cover;
    border-radius: 12px;
    background-color: #202225;
    padding: 20px 20px 20px 20px;
    box-shadow: 4px 4px 4px #00000040;
    overflow: hidden;
    max-width: 20vw;
    display: none;
}

.alert-title {
    display: flex;
    justify-content: space-between;
}

.alert-title-content {
    color: white;
    font-size: 20px;
    padding-bottom: 5px;
    overflow-wrap: break-word;
    font-weight: bold;
}

.alert-message {
    color: white;
    font-size: 16px;
    overflow-wrap: break-word;
}

.alert-button {
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

/* Header */
.header-dashboard {
    background: #202225;
    padding: 6px 14px;
    box-shadow: 4px 4px 4px #00000040;
    overflow: hidden;
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.div-header-page {
    align-items: center;
    position: relative;
    display: none;
}

.div-header-page p {
    font-size: 28px;
    font-weight: bold;
}

.div-header-bot {
    align-items: center;
    position: relative;
    justify-content: center;
    width: 100%;
    display: none;
}

.div-header-bot p {
    font-size: 20px;
    font-weight: bold;
    background: -webkit-linear-gradient(
        rgba(238, 174, 202, 1) 15%,
        rgba(148, 187, 233, 1)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.div-header-bot img {
    border-radius: 50%;
    max-width: 50px;
    height: auto;
}

.div-header-user {
    display: flex;
    gap: 7px;
    float: right;
    align-items: center;
    position: relative;
}

.div-header-user-tag {
    width: fit-content;
    font-weight: bold;
}

.div-header-user-avatar img {
    border-radius: 50%;
    max-width: 50px;
    height: auto;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #202225;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    position: absolute;
    object-fit: cover;
}

.me-subtitle-flex {
    display: flex;
    gap: 2px;
}

/* Message Editor */
.msg-editor-hover-icon:hover {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    color: #000000;
    cursor: pointer;
}

.msg-editor-hover-icon-remove:hover {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    color: red;
    cursor: pointer;
}

.msg-editor {
    background-color: rgb(47, 49, 54, 0.75);
    padding: 10px;
    max-height: 800px;
    overflow-y: scroll;
    overflow-x: hidden;
    margin-right: var(--marginObj);
    margin-left: var(--marginObj);
    border-radius: 15px;
}

.msg-editor::-webkit-scrollbar {
    width: 10px;
}

.msg-editor::-webkit-scrollbar-track {
    background: #202225;
}

.msg-editor::-webkit-scrollbar-thumb {
    background: #48abe0;
}

.msg-editor::-webkit-scrollbar-thumb:hover {
    background: #48abe0;
}

.msg-editor-page {
    box-shadow: 4px 4px 4px #00000040;
    overflow: hidden;
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
    background-color: #292c30;
    padding: 10px;
    border-radius: 5px;
}

.msg-editor-pages {
    display: flex;
    justify-content: center;
    background: rgb(88, 101, 242);
    border-color: rgb(88, 101, 242);
    color: rgb(255, 255, 255);
    padding: 0px 14px;
    border-radius: 3px;
    transition: background-color 167ms ease 0s, border-color, color;
    min-width: 60px;
    min-height: 36px;
    max-height: 36px;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.msg-editor-pages P {
    margin-top: 5px;
}

.msg-editor-editor {
    padding: 2px;
}

.msg-editor-textarea1 {
    background-color: #202225;
    border: 0px;
    outline: none;
    border-radius: 2px;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    color: white;
    align-self: start;
    min-height: 26px;
    height: 26px;
    border-radius: 3px;
    padding: 3px;
}

.msg-editor-textarea1::-webkit-scrollbar {
    width: 10px;
}

.msg-editor-textarea1::-webkit-scrollbar-track {
    background: #202225;
}

.msg-editor-textarea1::-webkit-scrollbar-thumb {
    background: #48abe0;
}

.msg-editor-textarea1::-webkit-scrollbar-thumb:hover {
    background: #48abe0;
}

.msg-editor-embed {
    display: flex;
    border-radius: 5px;
    background-color: #292c30;
    gap: 5px;
    margin-bottom: 5px;
}

.msg-editor-embed-icons {
    justify-content: right;
    width: 100%;
    display: flex;
    gap: 5px;
}

.msg-editor-embed-icons i {
    cursor: pointer;
    justify-content: center;
}

.msg-editor-embed-color {
    flex-basis: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    background-color: #000000;
    gap: 5px;
}

.msg-editor-embed-body {
    width: 100%;
    padding: 5px;
    overflow: hidden;
}

.msg-editor-embed-options {
    overflow: hidden;
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 10px;
}

.msg-editor-editor-title {
    display: flex;
}

.msg-editor-editor-title-line {
    display: flex;
    height: 3px;
    background-color: #242629;
    width: 100%;
    margin-top: 16px;
}

.msg-editor-editor-title-p {
    color: #242629;
    padding: 5px;
}

.msg-editor-editor-title-sub-p {
    font-size: 14px;
    color: white;
}

.msg-editor-embed-color-hex {
    top: 0px;
    background-color: #202225;
    border: 0px;
    outline: none;
    border-radius: 2px;
    max-width: 100%;
    color: white;
    align-self: start;
    min-height: 26px;
    height: 26px;
    border-radius: 3px;
    padding: 3px;
}

.msg-editor-embed-color-select {
    background-color: transparent;
    border: 0;
    outline: 0;
    height: 26px;
    width: 100%;
    padding: 0px;
}

.msg-editor-embed-num-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.msg-editor-embed-num-icon {
    margin-top: 5px;
}

.msg-editor-embed-num-h1 {
    font-size: 17px;
    cursor: pointer;
}

.msg-editor-editor-fields-add {
    background: rgb(88, 101, 242);
    border-color: rgb(88, 101, 242);
    color: rgb(255, 255, 255);
    padding: 0px 14px;
    border-radius: 3px;
    transition: background-color 167ms ease 0s, border-color, color;
    max-width: fit-content;
    min-width: 60px;
    min-height: 36px;
    max-height: 36px;
    display: inline-block;
    cursor: pointer;
    
}

.msg-editor-editor-fields-add p {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 5px;
}

.msg-editor-add-embed {
    text-align: center;
    width: 100%;
    cursor: pointer;
    bottom: 0;
    box-sizing: border-box;
}

.msg-json-view {
    background-color: #202225;
    color: #ffffff;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    padding: 10px;
    white-space: pre-wrap;
    border-radius: 4px;
    width: 100%;
    border: 0;
    height: 400px;
}

@media (min-width: 481px) {
    .msg-editor-page {
        grid-template-columns: repeat(2, 1fr);
    }

    .msg-editor-embed-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 741px) {
    .header-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .div-header-page {
        display: flex;
    }

    .msg-editor-page {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 961px) {
    .home-section-blur {
        filter: blur(0);
    }

    .div-header-bot {
        display: flex;
    }

    .header-dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*
@media (min-width: 320px) {
}

@media (min-width: 481px) {
}

@media (min-width: 741px) {
}

@media (min-width: 961px) {
}

@media (min-width: 1025px) {
}

@media (min-width: 1281px) {
}
*/