﻿body {
    background: linear-gradient(to bottom, #5d77a1, #000000) fixed;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body fills the full viewport height */
}

.btn-primary {
    background-color: #373b44;
    border: none;
    border-radius: 5px;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: #4286f4;
    }
/* Radio Button Theme */
.btn-outline-primary {
    color: #5d77a1;
    border-color: #5d77a1;
}

    .btn-outline-primary:hover {
        background-color: #5d77a1;
        color: #fff;
    }

.btn-check:checked + .btn-outline-primary {
    background-color: #5d77a1;
    color: #fff;
    border-color: #5d77a1;
}

.page-link {
    color: #5d77a1;
}

    .page-link:hover {
        background-color: #5d77a1;
        color: #fff;
    }

.content-container {
    max-width: 900px;
    margin: auto;
}

.content-padding-top {
    padding-top: 65px;
}

.card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

.dropdown-item.active {
    background-color: #5d77a1;
    transition: background-color 0.3s ease;
}

    .dropdown-item.active:hover {
        color: #fff;
        background-color: #4286f4;
    }

.dropdown-item {
    transition: color 0.3s ease;
}

    .dropdown-item:hover {
        color: #4286f4;
    }

.primary-logo img {
    width: 250px;
    margin-bottom: 20px;
}

.login-form-group {
    position: relative;
}

    .login-form-group i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
    }

    .login-form-group input {
        padding-left: 40px;
    }

.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 380px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.register-container {
    background-color: #fff;
    padding: 40px;
    margin-top: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 380px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.reset-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.report-container {
    max-width: 1200px;
    margin: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-pills .nav-link.active {
    color: #fff;
    background-color: #5d77a1;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#navbarNav {
    margin-top: 10px; /* Shift the entire dropdown menu down slightly */
}

.navbar-nav .nav-link {
    color: #373b44;
    transition: background-color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #4286f4;
    }

.navbar-nav .navlink.active {
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link.active:hover {
        color: #fff;
        background-color: #4286f4;
    }

main {
    flex: 1; /* Push the footer to the bottom by taking up all available space */
}

footer {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    width: 100%;
    padding: 10px 0;
}

/* Radzen Overrides */
.rz-message-error {
    display: block;
}

.rz-grid-filter-active {
    color: #86b7fe !important;
}

.rz-dropdown:focus {
    border-color: #86b7fe !important;
}

li.rz-state-highlight {
    background-color: rgba(93, 119, 161, 0.12) !important;
    color: #5d77a1 !important;
}

.rz-apply-filter {
    color: #5d77a1 !important;
}

.rz-textbox:not(:disabled):not(.rz-state-disabled):focus {
    border-color: #86b7fe !important;
}

.rz-chkbox-box.rz-state-active {
    background-color: #5d77a1 !important;
}

.rz-button.rz-primary {
    background-color: #5d77a1 !important;
}

.rz-dropdown-trigger-icon {
    display: none;
}

@media (max-width: 767px) {
    .full-height-dropdown {
        position: fixed;
        top: 47px; /* Set this to the height of the navbar */
        right: 0;
        height: calc(100vh - 47px); /* Full viewport height minus navbar height */
        width: 100vw;
        background-color: #fff;
        overflow-y: auto;
        transform: translateX(100vw); /* Start off-screen to the right */
        transition: transform 0.2s ease;
        z-index: 1040; /* Lower than the navbar to keep the hamburger visible */
    }

    .navbar-collapse.show.full-height-dropdown {
        transform: translateX(0); /* Slide in to view from right to left */
    }
    /* Navbar items styling */
    .navbar-nav .nav-link {
        padding: 20px;
        font-size: 1.25rem; /* Increased font size */
        color: #333;
        border-bottom: 1px solid #e9ecef;
        opacity: 0; /* Start hidden */
        transform: translateX(-10px); /* Slight slide effect from left */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Fade and slide in */
    }
        /* Icon styling */
        .navbar-nav .nav-link i {
            font-size: 1.3rem;
            color: #4286f4;
        }
        /* Active link styling */
        .navbar-nav .nav-link.active {
            background-color: #373b44;
            color: #fff;
            border-radius: 0;
            width: 100vw;
            margin: 0;
            display: block;
            box-sizing: border-box;
        }
            /* Active Icon styling */
            .navbar-nav .nav-link.active i {
                font-size: 1.3rem;
                color: #fff;
            }

    .login-container {
        background-color: #fff;
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        /*max-width: calc(100vw - 25vw);*/
        width: 100%;
        text-align: center;
        animation: fadeIn 1s ease-in-out;
    }

    .reset-container {
        background-color: #fff;
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        /*max-width: calc(100vw - 25vw);*/
        width: 100%;
        text-align: center;
        animation: fadeIn 1s ease-in-out;
    }
}
