body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-primary {
    background-color: #920047 !important;
}

.bg-primary {
    background-color: #920047 !important;
}


.navbar-nav .nav-link {
    color: white !important;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    transform: scale(1.1);
}

.navbar {
    background-color: #220d17;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-weight: bold;
    color: aliceblue;
}

main {
    flex: 1;
}

footer {
    background-color: #220d17;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.alert-dismissible .btn-close {
    position: relative;
}

.dataTables_length label {
    display: flex;
    align-items: center;
}

.dataTables_length select {
    margin-left: 5px;
    width: auto; /* Adjust width to fit the content */
}

#darkModeToggle {
    margin-top: 20%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: invert(1) brightness(2);
}

#darkModeToggle:hover {
    transform: scale(1.5);
}

#darkModeToggleContainer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 2rem;
}

/* Tooltip styles */
.tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1050;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    transition: visibility 0.2s ease, opacity 0.2s ease;
}

#darkModeToggleContainer:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.status-active {
    color: red;
    font-weight: bold;
}

.status-expired {
    color: gray;
    font-style: italic;
}
