﻿@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;


:root {
    --color-default: #E7F6F2; /*Sidebar body*/
    --color-second: #00ADB5; /*search and logout*/
    --color-white: white; /*Icon and texts*/
    --color-body: #ffff;
    --color-light: #EEEEEE;
    --color-black: black;
    --blue: #2c3393;
    --blue2: #0a0d7f;
    --blue3: #5b5cac;
}

* {
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
}

.sidebar {
    min-height: 100vh;
    width: 78px;
    padding: 6px 14px;
    z-index: 99;
    background-color: var(--color-white);
    transition: all .5s ease;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add this line */
}

    .sidebar.open {
        width: 250px;
    }

    .sidebar .logo_details {
        height: 60px;
        display: flex;
        align-items: center;
        position: relative;
    }

        .sidebar .logo_details img {
            opacity: 0;
            transition: all 0.5s ease;
            
        }

        .sidebar .logo_details img {
            height: 45px;
            width: 45px;
            object-fit: cover;
            border-radius: 50%;
            margin-right: 10px;
        }

        .sidebar .logo_details .logo_name {
            color: var(--color-black);
            font-size: 18px;
            font-weight: 600;
            opacity: 0;
            transition: all .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: 23px;
        text-align: center;
        cursor: pointer;
        transition: all .5s ease;
    }

    .sidebar.open .logo_details #btn {
        text-align: right;
    }

    .sidebar i {
        color: var(--color-black);
        height: 60px;
        line-height: 60px;
        min-width: 50px;
        font-size: 25px;
        text-align: center;
    }

    .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-color: var(--color-white);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
            padding: 6px 14px;
            font-size: 15px;
            font-weight: 400;
            border-radius: 5px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
        }

        .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: var(--color-white);
        font-weight: 400;
        outline: none;
        height: 35px;
        width: 35px;
        border: none;
        border-radius: 5px;
        background-color: var(--blue);
        transition: all .5s ease;
    }

        .sidebar input::placeholder {
            color: var(--color-light)
        }

    .sidebar.open input {
        width: 100%;
        padding: 0 20px 0 50px;
    }

    .sidebar .bx-search {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        font-size: 22px;
        background-color: var(--blue);
        color: var(--color-white);
    }

    .sidebar li a {
        display: flex;
        height: 100%;
        width: 100%;
        align-items: center;
        text-decoration: none;
        background-color: var(--color-white);
        position: relative;
        transition: all .5s ease;
        z-index: 12;
    }

        .sidebar li a::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            transform: scaleX(0);
            background-color: var(--blue);
            border-radius: 5px;
            transition: transform 0.3s ease-in-out;
            transform-origin: left;
            z-index: -2;
        }

        .sidebar li a:hover::after {
            transform: scaleX(1);
            color: var(--color-default)
        }

        .sidebar li a .link_name {
            color: var(--color-black);
            font-size: 15px;
            font-weight: 400;
            white-space: nowrap;
            pointer-events: auto;
            transition: all 0.4s ease;
            pointer-events: none;
            opacity: 0;
        }

        .sidebar li a:hover .link_name,
        .sidebar li a:hover i {
            transition: all 0.5s ease;
            color: var(--color-default)
        }

    .sidebar.open li a .link_name {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar li i {
        height: 35px;
        line-height: 35px;
        font-size: 18px;
        border-radius: 5px;
    }

    .sidebar li.profile {
        position: fixed;
        height: 60px;
        width: 78px;
        left: 0;
        bottom: -8px;
        padding: 10px 14px;
        overflow: hidden;
        transition: all .5s ease;
    }

    .sidebar.open li.profile {
        width: 250px;
    }

    .sidebar .profile .profile_details {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        color: white;
    }

    .sidebar li img {
        height: 45px;
        width: 45px;
        object-fit: cover;
        border-radius: 50%;
        margin-right: 10px;
    }

    .sidebar li.profile .name,
    .sidebar li.profile .designation {
        font-size: 15px;
        font-weight: 400;
        color: var(--color-white);
        white-space: nowrap;
    }

    .sidebar li.profile .designation {
        font-size: 12px;
    }

    .sidebar .profile #log_out {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        background-color: var(--color-second);
        width: 100%;
        height: 60px;
        line-height: 60px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.5s ease;
    }

    .sidebar.open .profile #log_out {
        width: 50px;
        background: none;
    }

.home-section {
    position: relative;
    background-color: var(--color-body);
    min-height: 100vh;
    top: 0;
    left: 100px;
    width: calc(100% - 78px);
    transition: all .5s ease;
    z-index: 2;
    /*margin: 0 autp;*/
}

    .home-section .text {
        display: inline-block;
        color: var(--color-default);
        font-size: 25px;
        font-weight: 500;
        margin: 18px;
    }

.sidebar.open ~ .home-section {
    left: 260px;
    width: calc(99% - 260px);
}



.container h3 {
    color: white;
}


.container table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    background-color: #ffffff;
}

.container td, th {
    color: black;
    padding: 10px;
    word-wrap: break-word;
    vertical-align: bottom;
    font-size: 12px;
    border: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #ffffff;
    border-radius: 2px;
}

.table-responsive-sm {
    overflow-x: auto;
}

.table {
    table-layout: fixed;
}

    .table th,
    .table td {
        white-space: normal;
        word-wrap: break-word;
        align-content: center;
    }




.th.sorting {
    color: white;
}


.small-col {
    width: 70px;
}

.medium-col {
    width: 100px;
}

.large-col {
    width: 270px;
}

.one-line-message {
    width: 50px; 
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;  
}

tr:hover {
    background-color: gray;

}

div.dataTables_length select {
    height: 28px;
    font-size: 12px;
    padding: 0;
}


div.dataTables_wrapper input[type="search"] {
    height: 28px;
    font-size: 12px;
    padding: 2px 6px;
}


.actionIcon {
    align-items: center;
    justify-content: center;
    color: #00ADB5;
}

.img-avatar, .avatar > img,
.img-circle {
    max-width: 100%;
    height: auto;
    border-radius: 50em;
}

.app-header .nav-item .nav-link > .img-avatar, .app-header .nav-item .avatar.nav-link > img {
    height: 35px;
    margin: 0 10px;
}
