/* Custom overrides for the portal */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    /* Changed to column to allow normal document flow for dashboard */
    background-color: var(--bs-tertiary-bg);
}

/* Login specific */
.form-signin {
    max-width: 400px;
    padding: 15px;
    margin: auto;
}

 /* Customize the WordPress login form outputs */
.login-submit {
    margin-top: 20px;
}

.login-submit input {
    width: 100%;
}

/* Dashboard Layout Elements */
#sidebar {
    width: 250px;
    transition: width 0.3s ease;
    flex-shrink: 0;
    /* Prevents sidebar from being crushed by main content */
    z-index: 100;
}

.sidebar .nav-link {
    transition: all 0.2s ease-in-out;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    /* Prevents text wrapping during animation */
}

.sidebar .nav-link:hover:not(.active) {
    background-color: var(--bs-secondary-bg);
}

/* Collapsed State Styles */
#sidebar.collapsed {
    width: 76px;
    /* Just wide enough for icons and padding */
}

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

#sidebar.collapsed .nav-link {
    justify-content: center;
    /* Center the icons */
    padding-left: 0;
    padding-right: 0;
}

#sidebar.collapsed .nav-link i {
    margin-right: 0 !important;
    /* Remove the right margin from icons */
    font-size: 1.25rem;
}

#sidebar.collapsed .sidebar-brand {
    justify-content: center !important;
}

/* Perfect Circle Button Utility */
.btn-circle {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}