html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    color: #232323;
}



.errorlabel {
    color: red;
    font-style: italic;
    font-size: 0.8rem;
}

.loginform-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
}

.loginform-card {
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.loginform-logo {
    width: 80px;
    height: 80px;
    background-color: #6e8efb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}


.theme-bg {
    background-color:#0aad87;
}

.theme {
    color: #0aad87;
}

.maincontainer::-webkit-scrollbar {
    width: 6px;
}

.maincontainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.maincontainer::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.hidden {
    display: none;
}


/* Sidebar Styles */
.sidebar {
    width: 270px !important;
    min-width: 270px !important;
    flex-shrink: 0 !important;
    flex-basis: 270px !important;
    height: 100vh;
    color: #bdbdbd;
    background-color: #112633;
    /*background-color: #584475;*/
    transition: margin-left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 1050;
}

/*.sidebar-content {
    flex: 1;
    overflow-y: auto;
}
*/

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo-container {
    position: sticky;
    top: 0;
    background-color: #143040;
    z-index: 2;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}


.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        /*background: #6c757d;*/
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background-color: #3b2260;
        /*background-color: rgba(255, 255, 255, 0.2);*/
        border-radius: 3px;
    }


#div_maincontainer::-webkit-scrollbar {
    width: 6px;
}

#div_maincontainer::-webkit-scrollbar-track {
    /*background: rgba(255, 255, 255, 0.1);*/
    /*background: #6c757d;*/
}

#div_maincontainer::-webkit-scrollbar-thumb {
    /*background-color: rgba(255, 255, 255, 0.2);*/
    background-color: #3b2260;
    border-radius: 3px;
}


.sidebar.collapsed {
    margin-left: -270px;
    /*background-image: url(../images/hero-1.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;*/

}

    .sidebar.collapsed ~ .main-content .navbar {
        left: 0;
    }
/* Sidebar Links */
.sidebar-link-icon-color {
    color: #bdbdbd;
}

.sidebar-link {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s;
    color: #d3d3d3;
}

    .sidebar-link:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }

.sidebar-active-link {
    color: #ffffff;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}
/* Submenu Styles */
.sidebar-submenu .submenu-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.collapse.show + .sidebar-link .submenu-icon,
.collapsing + .sidebar-link .submenu-icon {
    transform: rotate(45deg);
}

.sidebar-submenu .collapse {
    transition: all 0.3s ease;
}

.sidebar-link[data-bs-toggle="collapse"] {
    cursor: pointer;
}

.subheader {
    padding: 10px 15px;
    color: #303030;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Main Content Styles */
.main-content {
    min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
    background-color: #f4f4f9;
    /*background-color: #0b161d;*/
    flex: 1;
    position: relative;
    /*z-index: 1000;*/
}

@media (min-width: 769px) {
    .main-content {
        /*margin-left: 250px;*/
    }

    .sidebar.collapsed + .main-content {
        margin-left: 0;
        /*background-image: url(../images/hero-1.jpg);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        background-attachment: fixed;*/
    }
}


/* Navbar Styles */
.navbar {
    background: #e6e6e6;
    position: fixed;
    top: 0;
    right: 0;
    left: 270px;
    z-index: 999;
    transition: left 0.3s ease-in-out;
    /*    padding: 0.5rem 1rem;*/
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        margin-left: -270px;
        /*background-image: url(../images/hero-1.jpg) !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: fixed !important;*/
        /* existing styles */
    
    }

        .sidebar.show {
            margin-left: 0;
        }

    .main-content {
        margin-left: 0 !important;
    }

    .navbar {
        left: 0 !important;
    }
}


.toggle-sidebar {
    color: #cacaca !important;
    padding: 0.5rem;
}

    .toggle-sidebar:hover {
        color: #ffffff !important;
    }

    .toggle-sidebar:active {
        color: #2e2e2f !important;
    }


    .maincontainer{

        margin-top: 4rem;
    }




/* CSS to properly contain the table */
.table-container {
    width: 100%;
    overflow: hidden; /* Hide overflow from container */
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure the table doesn't force the container to be wider */
.table {
    width: 100%;
    margin-bottom: 0;
}

/* Override any Bootstrap padding that might cause issues */
@media (max-width: 767.98px) {
    .table-container,
    .table-responsive {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}



.textgreen{
    color: #13f1bd;
}

.statuslabel {
    font-size: 0.8rem;
    color: red;
}

.font-14 {
    font-size: 0.9rem;
}

.textdanger1 {
    color:#ff9595;
}

.textgreen1 {
    color: #70d585;
}
.textlight {
    color: #878787;
}

.mytable th {
    padding: 10px;
}

.mytable td {
    padding: 5px;
}