﻿body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/*#region Session Heartbeat */
.heartbeat {
    position: absolute;
    display: none;
    margin: 5px;
    color: red;
    right: 0;
    top: 0;
}
/*#endregion */

/*#region Loading Spinner */
#loadingSpinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Grey overlay */
    z-index: 99999999999999999999999999999; /* Ensure it's in front of all other content */
    text-align: center; /* Center the spinner */
}

#loadingSpinnerContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the spinner */
    color: white; /* Text color */
}
/*#endregion */

/*#region Side Navbar */
/* Custom styles for sidebar */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    background-color: #343a40;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .sidebar .nav-item.active {
        background: white !important;
    }

    .sidebar .nav-link .nav-icon {
        font-size: 30px;
    }

    .sidebar .nav-link .nav-text {
        font-size: 20px;
        margin-left: 15px;
    }

    /* When the sidebar is collapsed */
    .sidebar.collapsed {
        width: 70px; /* Shrink the sidebar */
    }

        /* Hide text and show icons when collapsed */
        .sidebar.collapsed .nav-text {
            display: none; /* Hide text */
        }

        .sidebar.collapsed .nav-icon {
            display: inline-block; /* Show icons */
            font-size: 24px; /* Icon size */
            width: 100%; /* Center icons */
            text-align: center;
        }

/* For smaller screens, sidebar shrinks */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

        /* Hide text and show icons when collapsed */
        .sidebar .nav-text {
            display: none; /* Hide text */
        }

        .sidebar .nav-icon {
            display: inline-block; /* Show icons */
            font-size: 24px; /* Icon size */
            width: 100%; /* Center icons */
            text-align: center;
        }
}
/*#endregion */

/*#region Main Content */
.headerTitle {
    flex-grow: 1;
    margin-left: 25px;
    margin-bottom: 0px;
}

.flex-grow-1 {
    overflow-y: auto;
}

.content {
    margin-left: 250px;
    transition: all 0.3s ease;
}

    .content.collapsed {
        margin-left: 70px;
    }

/* For smaller screens, content expands */
@media (max-width: 768px) {
    .content {
        margin-left: 70px
    }
}

/*#endregion */
