html {
    min-height: 100%;
}

body {
    overflow: auto;
    min-width: 100%;
    min-height: 100%;
    background-color: #eee;
}

.container-fluid {
    margin-top: 30px;
}

.mt-8 {
    margin-top: 80px !important;
}

.navbar-red {
    background: rgba(255, 255, 255, 0.4); /* Glassmorphism background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #2c3e50;
}

.navbar-nav > li > a {
    text-transform: uppercase;
    font-size: 12px;
    margin-right: 20px;
    color: #2c3e50; /* Darker text for readability on light background */
    position: relative;
    padding-bottom: 5px; /* Space for the underline */
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-nav > li > a:hover {
    color: #2c3e50;
    background-color: transparent; /* No background on hover */
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #173db6,#27acda); /* Reverted to user's gradient */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.navbar-nav > li > a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar-toggler {
    padding: .20rem .50rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid #2c3e50; /* Darker border for visibility */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 62, 80, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
    color: #2c3e50 !important; /* Darker text for readability */
}

.wrapper {
    width: 100%;
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #173db6 60%, #1f54c8 75%, #27acda 100%); /* Reverted to user's gradient */
    clip-path: polygon(81% 0, 100% 0, 100% 50%, 100% 100%, 71% 100%);
    transition: 1s all;
}

.navbar-brand {
    color: #fff;
    font-family: 'Allerta Stencil', sans-serif;
    margin-bottom: 4px;
    font-size: 27px
}

.navbar-brand:hover {
    color: #fff
}

.navbar-red:hover .wrapper {
    clip-path: polygon(81% 0, 100% 0, 100% 50%, 100% 100%, 65% 100%)
}

li a:hover {
    color: #fff;
}

.all-show {
    z-index: 10
}


.UserName {
    color: white !important;
    font-family: Corbel; /* Reverted to original font */
    font-size: 16px;
    font-weight: 600;
    margin-right: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Add shadow for readability */
}

.app-title {
    font-family: 'Segoe Script';
}

.second-title {
    color: #DC143C !important;
}

#tbxGlobalSearch,
#tbxGlobalSearch2 {
    color: black !important; /* Black text in search field */
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 5px !important;
}

#tbxGlobalSearch + .mdform-control-placeholder,
#tbxGlobalSearch2 + .mdform-control-placeholder {
    color: #333 !important; /* Darker placeholder text for search only */
}

@media only screen and (max-width: 800px) {
    .app-title {
        color: #DC143C !important;
    }

    .second-title {
        color: #fff !important;
    }
}
