* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Varela Round";
}

:root {
    /* ===== Colors ===== */
    --body-color: #e4e9f7;
    --sidebar-color: #fff;
    --primary-color: #695cfe;
    --primary-color-light: #f6f5ff;
    --toggle-color: #ddd;
    --text-color: #707070;

    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;
}

body {
    min-height: 100vh;
    background-color: var(--body-color);
    transition: var(--tran-05);
}

::selection {
    background-color: var(--primary-color);
    color: #fff;
}

body.dark {
    --body-color: #18191a;
    --sidebar-color: #242526;
    --primary-color: #3a3b3c;
    --primary-color-light: #3a3b3c;
    --toggle-color: #fff;
    --text-color: #ccc;
}

.abah-title {
    margin-bottom: 40px;
}

.abah-title span {
    color: #fff;
    background-color: #1e3fb1;
    font-size: 23px;
    font-weight: 500;
    padding: 0px 5px;
    margin-left: 20px;
}

.container-main {
    padding: 30px;
}

.container-fluid {
    font-family: "Varela Round";
}

.verifyotp-form,
.verifypassword-form,
.resetpwd-form,
.congrats-form {
    display: none;
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;
}

.sidebar.close {
    width: 88px;
}

/* ===== Reusable code - Here ===== */
.sidebar ul {
    padding-left: 0rem;
}

.sidebar li {
    height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.sidebar header .image,
.sidebar .icon {
    min-width: 60px;
    border-radius: 6px;
}

.sidebar .icon {
    min-width: 60px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar .text,
.sidebar .icon {
    color: var(--text-color);
    transition: var(--tran-03);
}

.sidebar .text {
    font-size: 17px;
    font-weight: 500;
    /* white-space: nowrap; */
    display: block;
}

.sidebar.close .text {
    display: none;
}

/* =========================== */

.sidebar header {
    position: relative;
}

/* .sidebar header .image-text {
    display: flex;
    align-items: center;
} */

.sidebar header .logo-text {
    display: flex;
    text-align: center;
    flex-direction: column;
}

header .image-text .name {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 600;
    word-break: break-all;
}

header .image-text .profession {
    font-size: 16px;
    margin-top: -2px;
    display: block;
}

.sidebar header .image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar header .image img {
    /* width: 40px; */
    border-radius: 6px;
}

.sidebar header .toggle {
    position: absolute;
    top: 130%;
    right: -40px;
    transform: translateY(-50%) rotate(180deg);
    height: 50px;
    width: 50px;
    background-color: var(--primary-color);
    color: var(--sidebar-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--tran-05);
}

body.dark .sidebar header .toggle {
    color: var(--text-color);
}

.sidebar.close .toggle {
    transform: translateY(-50%) rotate(0deg);
}

/* .sidebar .menu {
    margin-top: 40px;
} */

.sidebar li.search-box {
    border-radius: 6px;
    background-color: var(--primary-color-light);
    cursor: pointer;
    transition: var(--tran-05);
}

.sidebar li.search-box input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    background-color: var(--primary-color-light);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 17px;
    font-weight: 500;
    transition: var(--tran-05);
}

.sidebar li a {
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--tran-03);
}

.sidebar li a:hover {
    background-color: var(--primary-color);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
    color: var(--sidebar-color);
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
    color: var(--text-color);
}

.sidebar .menu-bar {
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
}

.menu-bar::-webkit-scrollbar {
    display: none;
}

.sidebar .menu-bar .mode {
    border-radius: 6px;
    background-color: var(--primary-color-light);
    position: relative;
    transition: var(--tran-05);
}

.sidebar.dark-mode .menu-bar .mode {
    background-color: #3a3b3c;
}
.sidebar.dark-mode .menu-bar .mode span.mode-text {
    color: #ccc;
}
.sidebar.dark-mode .menu-bar .mode .sun-moon i.sun {
    opacity: 1;
    color: #ccc;
}

.sidebar.light-mode .menu-bar .mode {
    background-color: transparent;
}
.sidebar.light-mode .menu-bar .mode span.mode-text {
    color: #777777;
}
.sidebar.light-mode .mode .sun-moon i.sun {
    color: #777777;
}

.menu-bar .mode .sun-moon {
    height: 50px;
    width: 60px;
}

.mode .sun-moon i {
    position: absolute;
}

.mode .sun-moon i.sun {
    opacity: 0;
}

body.dark .mode .sun-moon i.sun {
    opacity: 1;
}

body.dark .mode .sun-moon i.moon {
    opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
    position: absolute;
    right: 0;
    height: 100%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}

.toggle-switch .switch {
    position: relative;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
    transition: var(--tran-05);
}

.switch::before {
    content: "";
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background-color: var(--sidebar-color);
    transition: var(--tran-04);
}

body.dark .switch::before {
    left: 20px;
}

.main-content-body {
    position: absolute;
    top: 0;
    top: 0;
    left: 250px;
    height: 100vh;
    width: calc(100% - 250px);
    transition: var(--tran-05);
}

.main-content-body .text {
    font-size: 30px;
    font-weight: 500;
    color: var(--text-color);
    padding: 12px 60px;
}

.sidebar.close ~ .main-content-body {
    left: 78px;
    height: 100vh;
    width: calc(100% - 78px);
}

body.dark .main-content-body .text {
    color: var(--text-color);
}

.sidebar.light-mode {
    background-color: white;
    color: black;
}

.sidebar.dark-mode {
    background-color: black;
    color: white;
}

/* .sidebar.dark-mode .sun-moon .sun {
    display: none;
} */

.sidebar.light-mode .image-text .logo-text span,
.sidebar.light-mode .menu-bar li a,
.sidebar.light-mode .menu-bar li a i,
.sidebar.light-mode .menu-bar li a span {
    color: #707070;
}
.sidebar.light-mode .menu-bar li a:hover {
    background: #695cfe;
    color: #fff !important;
}
.sidebar.light-mode .menu-bar li a:hover span,
.sidebar.light-mode .menu-bar li a:hover i {
    color: #fff !important;
}

.sidebar.dark-mode .image-text .logo-text span,
.sidebar.dark-mode .menu-bar li a,
.sidebar.dark-mode .menu-bar li a i,
.sidebar.dark-mode .menu-bar li a span {
    color: #ccc;
}
.sidebar.dark-mode .menu-bar li a:hover {
    background: #3a3b3c;
    color: #ccc;
}

.sidebar.light-mode header .image img {
    /* width: 80px; */
    height: 90px;
    padding-bottom: 20px;
    /* margin-top: 30px; */
}

.sidebar.dark-mode header .image img {
    width: 80px;
    margin-right: 10px;
    /* margin-top: 30px; */
}

.moon .sun {
    display: flex;
}
/* .toggle-switch {
    cursor: pointer;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    position: relative;
} */

/* .toggle-switch .switch {
    width: 23px;
    height: 23px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: all 0.3s;
} */

/* .sidebar.dark-mode .toggle-switch .switch {
    left: 26px;
} */

/* styles.css */

/* Custom Notification Message CSS */

.custom-col {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
}

.custom-alert-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.custom-alert {
    position: relative;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    width: 100%;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.alert-title {
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.close-btn {
    font-size: 20px;
    color: inherit;
    background: none;
    border: none;
}

/* Custom Notification Message CSS End*/

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-container .tooltip-text {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
    z-index: 1;
}

.tooltip-container:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
}

.no-text-decoration {
    text-decoration: none;
}
