.btn-fixed {
    width: 60px;
}

/* To type automatic uppercase */
.uppercase-input {
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
select {
    text-transform: uppercase;
}

table thead th {
    color: white !important;
}

table thead th a {
    color: white !important;
    text-decoration: none;
}

table thead th a:hover {
    color: #7aeb1e !important;
    /* optional: subtle hover effect */
}

body {
    margin: 0;
    padding-top: 40px;
}

#toast-container.toast-top-right {
    top: 70px !important;
    right: 12px;
}

#toast-container>.toast {
    width: 450px;
    box-sizing: border-box;
}

.card {
    border-radius: 1rem;
}

.card-header {
    border-bottom: none;
}

.form-control-plaintext {
    font-weight: 500;
    font-size: 1rem;
}



body {
    margin: 0;
    padding-top: 40px;
}

.navbar {
    background-color: #212529 !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #fff !important;
}

.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    width: 220px;
    background-color: #343a40;
    padding-top: 1rem;
    transition: width 0.3s ease;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar a {
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    height: 30px;
    padding: 0 1rem;
}

.sidebar a:hover {
    background-color: #495057;
}

.sidebar a .icon {
    font-size: 1rem;
    min-width: 20px;
    margin-right: 8px;
}

.sidebar a .text {
    font-size: 0.8rem;
}

#librarySubmenu a .icon {
    font-size: 1rem;
    min-width: 20px;
    margin-right: 8px;
}

#librarySubmenu a .text {
    font-size: 0.8rem;
}

.sidebar.collapsed .text,
.sidebar.collapsed a span.text {
    display: none;
}

.sidebar.collapsed .chevron-toggle {
    display: none;
}

.sidebar.collapsed a#libraryToggle > span.d-flex {
    justify-content: center;
    width: 100%;
    padding-left: 0 !important;
}

.sidebar.collapsed a#libraryToggle .icon {
    margin-right: 0 !important;
}

.main-content {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content.authenticated {
    margin-left: 220px;
}

.main-content.collapsed {
    margin-left: 60px !important;
}

#sidebarToggleBtn {
    position: fixed;
    top: 50%;
    left: 220px;
    transform: translateY(-50%);
    width: 25px;
    height: 30px;
    background-color: #343a40;
    border: 1px solid #495057;
    border-left: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    z-index: 1031;
    border-radius: 0 4px 4px 0;
    user-select: none;
}

.sidebar.collapsed + #sidebarToggleBtn {
    left: 60px;
}

.chevron-toggle {
    transition: transform 0.3s ease;
}

.chevron-toggle.rotate {
    transform: rotate(180deg);
}