@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevent any scrollbar on the body */
}

body{
    padding-left: 0px;
    padding-right: 0px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.buttonCenter {
    text-align: center;
}

.buttonRight {
    text-align: end;
}

#custom-content {
    position: fixed;
    top: 90px;
    padding-bottom: 90px;
    left: 0;
    right: 0;
}

a.disabled {
    pointer-events: none;
    cursor: default;
}

.errorlist {
    color: red;
}

.event-1 {
    border: 5px solid #5e5c5c;
}

.event-2 {
    border: 5px solid #058005;
}

.event-3 {
    border: 5px solid #1364e8;
}

.event-4 {
    border: 5px solid #e5f502;
}

.event-5 {
    border: 5px solid #6b0303;
}

.event-6 {
    border: 5px solid #ff8400;
}

.event-7 {
    border: 5px solid #ff03f7;
}

.event-8 {
    border: 5px solid #9000c9;
}

.event-10 {
    border: 5px solid #00ff04;
}

.event-11 {
    border: 5px solid #00ddff;
}

.event-12 {
    border: 5px solid #f4a582;
}

.event-13 {
    border: 5px solid #9e7b11;
}

.event-14 {
    border: 5px solid #074701;
}

/* Sidebare style */
li{
    list-style: none;
}

a{
    text-decoration: none;
}

.main{
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
}

#sidebar{
    max-width: 264px;
    min-width: 264px;
    transition: all 0.35s ease-in-out;
    background-color: #396880;
    display: flex;
    flex-direction: column;
}

#sidebar.collapsed{
    margin-left: -264px;
}

.toggler-btn{
    background-color: transparent;
    cursor: pointer;
    border: 0;
}

.toggler-btn i {
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
}

.navbar{
    padding: 1.15rem 1.5rem;
}

.sidebar-nav {
    flex: 1 1 auto;
}

.sidebar-logo {
    padding: 1.15rem 1.5rem;
    text-align: center;
}

.sidebar-logo a {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
}

.sidebar-header {
    color: #fff;
    font-size: .75rem;
    padding: 1.5rem 1.5rem .375rem;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #fff;
    position: relative;
    transition: all 0.35s;
    display: block;
}

a.sidebar-link:hover {
    background-color: #f6f6f630;
}

/* Mini Sidebar Styles */
#sidebar.mini {
    max-width: 80px;
    min-width: 80px;
    transition: all 0.35s ease-in-out;
}

#sidebar.mini .sidebar-logo a {
    font-size: 0.9rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#sidebar.mini .sidebar-item span {
    display: none; /* Hide text labels */
}

a.sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

a.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

#sidebar.mini a.sidebar-link[data-bs-toggle="collapse"]::after {
    display: none; /* Hide collapse indicators */
}

/* Keep the dropdown arrow visible in mini sidebar */
#sidebar.mini a.sidebar-link[data-bs-toggle="collapse"]::after {
    display: inline-block; /* Ensure the arrow is visible */
    position: absolute;
    right: 0.5rem; /* Adjust position for the smaller sidebar */
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.mini a.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg); /* Adjust for collapsed state */
    transition: all .2s ease-out;
}

/* Icon Alignment in Mini Sidebar */
#sidebar.mini i {
    font-size: 1.5rem;
    text-align: center;
    margin-right: 0;
    width: 100%; /* Center the icons */
}

#sidebar.mini .sidebar-header {
    display: none; /* Hide headers in mini mode */
}

#sidebar.mini .sidebar-footer span {
    display: none; /* Hide the logout text */
}

#sidebar.mini .sidebar-footer i {
    text-align: center; /* Center the icon */
    margin-right: 0;
    width: 100%;
}

#sidebar.mini .sidebar-logo a {
    font-size: 1.5rem; /* Make the letter prominent */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

#sidebar.mini .sidebar-logo a::after {
    content: "K"; /* Display only the letter C */
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
    display: block;
}

#sidebar.mini .sidebar-logo a span {
    display: none; /* Hide the full logo text */
}

/* Inner Dropdown Styles */
.sidebar-dropdown {
    padding-left: 1.2rem; /* Indent the inner dropdown */
}

.sidebar-dropdown .sidebar-item {
    font-size: 0.85rem; /* Smaller font size */
}

.sidebar-dropdown .sidebar-item .sidebar-link {
    padding: 0.4rem 1rem; /* Smaller padding for dropdown links */
    font-size: 0.85rem; /* Reduce font size */
}

.sidebar-dropdown .sidebar-item .sidebar-link i {
    font-size: 1.2rem; /* Adjust icon size */
    margin-right: 0.5rem; /* Adjust spacing with text */
}

#sidebar.mini .sidebar-dropdown .sidebar-item span {
    display: none; /* Hide the text in mini version */
}

#sidebar.mini .sidebar-dropdown .sidebar-item i {
    font-size: 1.2rem; /* Keep the icons smaller and centered */
    text-align: center;
    margin-right: 0;
    width: 100%;
}

/* Screen size less than 768px */

@media (max-width:768px){
    .sidebar-toggle {
        margin-left: -264px;
    }

    #sidebar.collapsed{
        margin-left: 0;
    }

    #sidebar .sidebar-footer {
        display: none; /* Hide the logout text */
    }

    #sidebar.collapsed .sidebar-footer {
        display: flex; /* Hide the logout text */
    }

    .main_data {
        height: calc(72vh);
    }

    .navbar_mobile {
        width: 84%;
    }
    
}
/* tablet portrait */
@media (min-width:768px) {
    .main_data {
        height: calc(85vh);
    }
}
/* tablet landscape */
@media (min-width:1024px) {
    .main_data {
        height: calc(80vh);
    }
}
/* desktop */
@media (min-width:1300px) {
    .main_data {
        height: calc(89vh);
    }
}

.sidebar-footer {
    position: fixed; /* Fix the position relative to the viewport */
    bottom: 0; /* Stick to the bottom */
    width: 264px; /* Ensure the width matches the sidebar */
    background-color: #396880; /* Optional: Background color to match the sidebar */
    z-index: 2; /* Ensure it stays above other elements */
}

#sidebar.mini .sidebar-footer {
    width: 80px; /* Adjust the width for the mini sidebar */
}

/* Custom tooltip positioning when sidebar is mini */
#sidebar.mini .sidebar-link {
    position: relative;
}

.tooltip {
    font-size: 0.9rem; /* Adjust font size */
    background-color: #396880; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    border-radius: 0.25rem; /* Rounded corners */
    padding: 5px 10px; /* Optional padding */
}

.tooltip-inner {
    max-width: 200px; /* Limit tooltip width */
    background-color: #396880;
}

#sidebar.mini .sidebar-link:hover .tooltip {
    visibility: visible;
}

.sidebar-toggle {
    top: 0;
    left: 0;
    height: 100vh; /* Full height */
    width: 250px; /* Sidebar width */
    overflow: auto; /* Prevent content spill */
}

.sidebar-content {
    height: 100%; /* Full height of the parent */
    overflow-y: auto; /* Vertical scrollbar */
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.backlog-table {
    table-layout: fixed;  /* Ensures fixed column width */
    width: 100%;  /* Stretches the table to full width */
}

.description-column {
    width: 500px !important;  /* Set specific width */
    max-width: 500px !important;
    word-wrap: break-word;  /* Ensures long words wrap */
    white-space: normal;
}