@import url('https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@100..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --secondaryColor: #f5f7fb;
    --primaryColor: black;
    --containerColor: white;
    --sidebarColor: #191c24;
    --sidebarColorEnd: #20242f;
    --sidebarHoverColor: rgba(255, 255, 255, 0.06);
    --sidebarBorderColor: rgba(255, 255, 255, 0.08);
    --sidebarTextColor: #9aa0b4;
    --menuButtonColor: #9E9E9E;
    --searchColor: rgb(242, 242, 242);
    --topIconColor: rgb(115, 121, 138);
    --topbarColor: white;
    --topIconHoverColor: rgb(242, 244, 248);
    --tableBorderColor: rgb(224, 224, 224);
    --tableHoverColor: rgb(245, 245, 245);
    --tableDataColor: rgba(0, 0, 0, 0.85);

    --textFieldLabelColor: rgba(0, 0, 0, 0.6);

    --switchColor: white;

    --accentColor: #3b82f6;
    --accentColorDark: #2f6fe0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, 'Segoe UI', sans-serif;

    transition: background-color 0.2s, color 0.2s;
}

body {
    background-color: var(--secondaryColor);

}

.sidebar-wrapper {
    position: fixed;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebarColor) 0%, var(--sidebarColorEnd) 100%);
    z-index: 100;

    left: 0px;

    box-shadow: 1px 0px 0px 0px var(--sidebarBorderColor);

    transition: all 0.3s;

    display: flex;
    flex-direction: column;
    padding-top: 78px;
    /* reserves room for the absolutely-positioned .logo above */
}

.content {
    margin-left: 260px;

    background-color: var(--secondaryColor);

    position: relative;
}

.Frame {
    position: absolute;
    top: 64px;
    padding: 40px;
    width: 100%;
}

@media (max-width:1280px) {
    .Frame {
        padding: 20px;
    }
}

.topbar {
    height: 64px;
    display: flex;
    justify-content: space-between;

    background-color: var(--topbarColor);

    position: fixed;
    width: calc(100% - 260px);

    z-index: 50;

    border-bottom: 1px solid var(--tableBorderColor);
    box-shadow: 0px 2px 10px 0px rgba(20, 25, 40, 0.04);

}

.menu-button {
    width: 64px;
    height: 100%;

    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: var(--menuButtonColor);

    display: none;
    cursor: pointer;
}

.menu-button:hover {
    color: var(--accentColor);
}

.search {

    margin: 10px;
    padding: 10px;

    display: flex;
    align-items: center;

    cursor: text;
}

.search:hover {
    background-color: var(--searchColor);
}

.search i {
    margin: 0 10px;
    color: var(--topIconColor);
}

.search input {
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 13px;

    color: var(--primaryColor);
}

.top-icons {
    font-size: 1.1em;
    color: var(--topIconColor);
    height: 64px;
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.top-icons i {
    padding: 10px;
    border-radius: 10px;
    margin-left: 5px;

    aspect-ratio: 1/1;

    cursor: pointer;

    position: relative;

    transition: all 0.2s;
}

.top-icons i::after {
    content: attr(data-tooltip);
    position: absolute;
    font-family: Inter, 'Segoe UI', sans-serif;
    font-size: 0.5em;
    background-color: rgb(110, 110, 110);
    color: #EEEEEE;
    padding: 8px;

    border-radius: 5px;
    font-weight: bold;

    top: 130%;
    left: 50%;

    transform: translateX(-50%);

    opacity: 0;

    transition: all 0.3s;

    pointer-events: none;
}


.top-icons i:nth-child(5):after {
    transform: translateX(-60%);
}

.top-icons i:hover:after {
    opacity: 1;
}

.top-icons i:last-child {
    margin-left: 10px;
}

.top-icons i:hover {
    background-color: var(--topIconHoverColor);
    color: var(--accentColor);
}

.sidebar {
    margin: 0px 8px;

    overflow-y: auto;

    flex: 1 1 auto;
    min-height: 0;
    /* lets this shrink and scroll inside the flex column instead of
       being forced to a hardcoded height that ignores .user's own margin */
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(116, 121, 119, 0);
    border-radius: 20px;
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgb(116, 121, 119);
}

.logo {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 78px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    border-bottom: 1px solid var(--sidebarBorderColor);
}


.logo img {
    width: 70%;
    height: 60%;
    object-fit: contain;

    filter: brightness(200%);

    cursor: pointer;
}


.user {
    height: 78px;
    flex-shrink: 0;
    display: flex;
    background-color: rgba(255, 255, 255, 0.03);
    align-items: center;

    position: relative;

    margin: 8px;
    border-radius: 12px;
    border: 1px solid var(--sidebarBorderColor);

    cursor: pointer;

    transition: all 0.2s;
}

.user:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

.user .online-bubble {
    position: absolute;
    width: 11px;
    height: 11px;

    border-radius: 50%;
    border: 2px solid var(--sidebarColorEnd);
    background-color: #4caf50;

    top: 50px;
    left: 46px;
}

.user img {
    width: 42px;
    height: 42px;
    margin-left: 14px;
    margin-right: 10px;

    object-fit: cover;
    border-radius: 50%;
}

.user div .name {
    font-size: 0.85em;
    color: #EEEEEE;
    font-weight: 500;
    margin-bottom: 4px;
}

.user div .role {
    font-size: 0.72em;
    color: var(--sidebarTextColor);
    font-weight: 400;
}

.sidebar .title {
    color: #616b82;
    text-transform: uppercase;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 10px 16px;
    margin-top: 12px;
}

.sidebar .item {
    font-size: 0.87em;
    color: var(--sidebarTextColor);

    padding: 11px 16px;
    margin: 2px 0px;

    border-radius: 8px;

    cursor: pointer;

    position: relative;

    transition: background-color 0.15s, color 0.15s;
}

.sidebar .item i {
    color: #727a86;
    font-size: 1.05em;
    margin-right: 12px;

    display: inline-flex;
    width: 18px;
    justify-content: center;

    transition: color 0.15s;
}

.head-item-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    translate: 0% -50%;
    rotate: 0deg;
    font-size: 0.85em;

    transition: rotate 0.25s;
}

.head-item-arrow-rotate {
    rotate: 180deg;
}

.sidebar .item:hover {
    background-color: var(--sidebarHoverColor);
    color: #ffffff;
}

.sidebar .item:hover i {
    color: #ffffff;
}

.sidebar .item-active {
    background-color: var(--accentColor);
    color: #ffffff;

    box-shadow: 0px 4px 12px 0px rgba(59, 130, 246, 0.35);
}

.sidebar .item-active i {
    color: #ffffff;
}

.sidebar .item-active:hover {
    background-color: var(--accentColorDark);
    color: #ffffff;
}

.sidebar .item-active:hover i {
    color: #ffffff;
}

.sub-items {
    height: 0px;
    overflow: hidden;
    transition: all 0.35s;

    position: relative;
}

.sub-items::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 0px;
    bottom: 0px;
    width: 1px;
    background-color: var(--sidebarBorderColor);
}

.sub-items .item {
    padding-left: 46px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 0.82em;
    color: #9aa3b8;
}

.sub-items .item-active {
    color: #ffffff;
}


/* Frame Styles */
.top-area {
    display: flex;
    justify-content: space-between;
}

.top-area .title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primaryColor);
}


.location {
    margin-top: 5px;
    font-size: 0.8em;
    color: #8b8b8b;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--tableBorderColor);
    font-weight: 400;

    margin-bottom: 25px;
}

.location span {
    margin: 0px 5px;
}

.location span:first-child {
    margin-left: 0px;
}

.location a {
    text-decoration: none;
    color: #306ed2;
}

.location a:hover {
    text-decoration: underline;
}

.container {
    background-color: var(--containerColor);
    border-radius: 5px;
    padding: 10px;

    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.08);
}


/* Table Styles */
table {
    margin-bottom: 30px;
    width: 100%;
    color: var(--primaryColor);
    border-collapse: collapse;
}

table tr {
    width: 100%;
    justify-content: space-between;

    border-bottom: 1px solid var(--tableBorderColor);
}

table tr:hover {
    background-color: var(--tableHoverColor);
}

table tr:first-child:hover {
    background-color: transparent;
}

table td {
    text-align: left;
    font-weight: 400;
    font-size: 13px;
    line-height: 19px;
    padding: 20px 10px;

    color: var(--tableDataColor);
}

table th {
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    line-height: 22px;
    padding: 20px 10px;

    color: var(--tableDataColor);
}

table td i {
    margin: 0 5px;
    cursor: pointer;
}

.table-scroll {
    width: 100%;
    overflow: auto;
}

/* For Sidebar */
@media (max-width:960px) {
    .content {
        margin-left: 0px;
    }

    .sidebar-wrapper {
        left: -260px;
    }

    .menu-button {
        display: flex;
    }

    .search {
        display: none;
    }

    .topbar {
        width: 100%;
    }
}

.sidebar-view {
    left: 0px;
}

.overlay {
    position: absolute;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    display: none;
}



.notification-panel {
    position: fixed;
    z-index: 100;
    right: 10px;
    top: 64px;
    background-color: var(--containerColor);

    border-radius: 5px;
    width: 300px;
    height: 400px;

    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.08);

    border: 1px solid var(--tableBorderColor);

    display: flex;
    flex-direction: column;


    overflow-y: auto;

    transition: all 0.3s;

    opacity: 0;
    transform-origin: top;
    transform: scaleY(0);

}

.notification-panel-view {
    opacity: 1;
    transform: scaleY(1);
}

.notification-header {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid var(--tableBorderColor);
    font-size: 15px;
}

.notification {
    padding: 10px;
    border-bottom: 1px solid var(--tableBorderColor);
    display: flex;
    align-items: center;

}

.notification .icon {
    flex: 1;

}

.notification .icon i {
    justify-content: center;
    align-items: center;
    background-color: #376fd0;
    color: white;
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;

}

.notification .data {
    flex: 4;
}

.notification .header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.notification .description {
    font-size: 13px;
    color: #454545;
}

.notification .markasread {
    font-size: 12px;
    text-align: right;
    color: #376fd0;
    margin-top: 5px;

    cursor: pointer;
}

#ContactUsDialog p{
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

#ContactUsDialog img {
    width: 100%;
    margin-bottom: 10px;
}

#ContactUsDialog .version{
    font-size: 14px;
    margin-bottom: 40px;
    font-weight: bold;
}

.userDetails{
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

.userDetails img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: -50px;
    margin-bottom: 10px;
}

.userDetails .displayName{
    font-weight: bold;
    font-size: 16px;
}

.userDetails .position{
    font-size: 14px;
}

.userDetails .points{
    font-size: 14px;
    margin-top: 20px;
}

.userDetails .buttons{
    display: flex;
    flex-direction: column;
    gap: 15px;

    margin-top: 30px;
    margin-bottom: 15px;
}

.userDetails .buttons button{
    width: 100%;
    border-radius: 18px;
    font-size: 13px;
}


.settingsTab {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;

}

.settingsTab:hover{
    background-color: rgba(0, 0, 0, 0.05);
}

.settingsTab .icon {
    flex: 1;

}

.settingsTab .icon i {
    justify-content: center;
    align-items: center;
    background-color: #376fd0;
    color: white;
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;

}

.settingsTab .data {
    flex: 4;
}

.settingsTab .header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.settingsTab .description {
    font-size: 13px;
    color: #454545;
}
