﻿/*--------------------------------------------------------------
        Global Styles
--------------------------------------------------------------*/

html,
body {
    font-family: "Roboto", sans-serif;
    color: #444444;
    background-image: url('../../Images/bck2.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}


h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
}

/* Remove Bootstrap's focus/active state glow */
.btn:focus,
.btn:active,
.form-control:focus,
.form-control:active {
    outline: none;
    box-shadow: none;
}

/* Optional: Add a custom focus/active state style */
.btn:focus,
.btn:active,
.form-control:focus,
.form-control:active {
    border-color: #000;
}

/* Remove focus/active state glow */
select.form-select:focus,
select.form-select:active {
    outline: none;
    box-shadow: none;
}


/*--------------------------------------------------------------
        Navbar Styles
--------------------------------------------------------------*/

.navbar {
    background-color: #e6e6e6;
}

.navbar-nav {
    display: flex;
}

.navbar .navbar-nav .nav-link {
    color: #1F487E;
    font-size: 1.1em;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    white-space: nowrap; /*Prevents menu names from going to another line*/
}

.navbar-nav .nav-link i {
    margin-right: 0.2rem;
}

.navbar-nav .nav-link:hover, /*makes nav links light blue to match the underline effect on hover*/
.navbar-nav .nav-link:focus {
    color: #106eea !important;
}


.navbar-nav .dropdown-menu { /*Keeps the dropdown menu items in the viewport*/
    position: absolute;
    right: 0;
    left: auto;
    transform: translateX(0%);
}

@media (min-width: 992px) { /* Media Query to Revert the changes made above for mobile view*/
    .navbar-nav .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
        transform: translateX(0%);
    }
}

@media (max-width: 991.98px) { /* Media Query Reverts the changes made above for mobile view*/
    .navbar-nav .dropdown-menu {
        position: static;
        right: auto;
        left: auto;
        transform: none;
    }
}

/* Adds Blue Underline for Nav Links */
.navbar-nav .nav-link::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: transparent;
    color: transparent;
    width: 0%;
    content: '.';
    height: 3px;
    transition: width 0.3s ease;
}

/* Width for Blue Underline for Nav Links */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
    width: 100%;
    background-color: #106eea;
    color: transparent;
}



/* ====== UserName Dropdown Styles ======  */

/* Removes Blue Underline for Dropdown Menu Link */
.dropdown-toggle::after {
    display: none;
}

/* Adds Down Arrow for Dropdown Menu */
.dropdown-toggle::before {
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    margin-right: 0.5rem;
}

/* Show dropdown menu on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
}

/* Hide dropdown menu by default */
.navbar-nav .dropdown .dropdown-menu {
    display: none;
}


/* Remove the "data-bs-toggle" attribute from the dropdown link */
.nav-link.dropdown-toggle {
    pointer-events: none; /* Makes it so the user only has to hover over the link so I disabled the click event*/
}

    /* Show the dropdown menu on hover */
    .nav-link.dropdown-toggle:hover + .dropdown-menu {
        display: block;
    }



/* Set the cursor to pointer for the nav-dropdown (user name dropdown)*/
.dropdown btn {
    cursor: pointer;
}

/*makes the Dropdown menu glow light blue when hovering over the item to evoke the dropdown menu*/
.navbar-nav .dropdown:hover .nav-link.dropdown-toggle,
.navbar-nav .dropdown:hover .nav-link.dropdown-toggle .fa-user {
    color: #106eea !important;
}

.dropdown-item {
    color: #1F487E;
}

    .dropdown-item i {
        margin-right: 0.5rem;
    }

/* styles the dropdown menu items on hover */
.navbar-nav .dropdown .dropdown-menu .dropdown-item:hover {
    color: white;
    background-color: #106eea;
}

.dropdown-menu {
    z-index: 9999; /* Set a higher z-index value */
    background-color: #e9e9e9;
    box-shadow: 0px 2px 4px rgba(73, 73, 73, 0.3);
}

.drop-shadow {
    box-shadow: 0px 2px 4px rgba(73, 73, 73, 0.3); /* Adjust the color and intensity as desired */
}

.frosted {
    background-color: rgba(185, 185, 185, 0.30); /* Adjust the transparency with the last value */
    backdrop-filter: blur(6px); /* Adjust the blur intensity as desired */
}


/*--------------------------------------------------------------
        Card Styles
--------------------------------------------------------------*/

.cardcontents {
    margin-bottom: 1rem;
}

    .cardcontents i {
        margin-right: 0.5rem;
    }

.card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background-color: #fff;
}

.card-header {
    color: #5b5b5b;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.card h5 {
    color: #1F487E;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.card h6, h7, h8, h9 {
    color: #797979;
    /*font-weight: bold;*/
    /*text-transform: uppercase;*/
    font-size: 0.7rem;
}



.card, .card-link {
    cursor: pointer; /* Changes the mouse to the finger pointer to show the entire card is clickable */
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}




/*Card Hover Animation*/
.subcard:hover {
    /*transform: scale(1.02);*/
    -webkit-box-shadow: 0px 0px 12px 4px rgba(0,0,0,0.47);
    box-shadow: 0px 0px 12px 4px rgba(16,110,234,0.47);
    z-index: 1000;
}

.subcard {
    background-color: #f8f8f8;
    margin-bottom: 0.3rem;
    margin-top: 0.3rem;
    transition: ease-in-out 0.3s;
}

.recentCard {
    border-left: 5px solid #106eea;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.30); /* Adjust the transparency with the last value */
    backdrop-filter: blur(6px); /* Adjust the blur intensity as desired */
}

.submissionsCard {
    border-left: 5px solid #8A2BE2;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.30); /* Adjust the transparency with the last value */
    backdrop-filter: blur(6px); /* Adjust the blur intensity as desired */
}

.pendingCard {
    border-left: 5px solid #ffbb00;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.30); /* Adjust the transparency with the last value */
    backdrop-filter: blur(6px); /* Adjust the blur intensity as desired */
}

.completedCard {
    border-left: 5px solid #1ddc2c;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.30); /* Adjust the transparency with the last value */
    backdrop-filter: blur(6px); /* Adjust the blur intensity as desired */
}


/*--------------------------------------------------------------
        Select Box Styles
--------------------------------------------------------------*/


.dropdown .btn {
    background-color: #1F487E;
    color: white;
}

    .dropdown .btn:hover {
        background-color: #106eea;
        color: white;
    }


.dropdown .dropdown-menu {
    color: #1F487E;
}

    .dropdown .dropdown-menu i {
        margin-right: 0.5rem;
    }

    /* styles the dropdown menu items on hover */
    .dropdown .dropdown-menu .dropdown-item:hover {
        color: white;
        background-color: #106eea;
    }

.dropdown .dropdown-menu {
    z-index: 9999; /* Set a higher z-index value */
    background-color: #e9e9e9;
    box-shadow: 0px 2px 4px rgba(73, 73, 73, 0.3);
}



/*--------------------------------------------------------------
        Search Box Styles
--------------------------------------------------------------*/

.search-box {
    position: relative;
    display: inline-block;
}

    .search-box input[type="text"] {
        background-color: white;
        color: #333;
        border: 1px solid #dddddd;
        box-shadow: 0px 0px 7px 3px rgba(0,0,0,0.08);
        padding: 0.5rem 1rem 0.5rem 2.5rem; /* Adjusted padding */
        border-radius: 20px;
        outline: none;
        transition: box-shadow 0.2s;
    }

        .search-box input[type="text"]:focus {
            box-shadow: 0px 0px 7px 5px rgba(0,0,0,0.15);
        }

    .search-box .search-icon {
        position: absolute;
        top: 50%;
        left: 10px; /* Adjusted positioning */
        transform: translateY(-50%);
        color: #1F487E;
    }

    .search-box input[type="text"]::placeholder {
        color: lightgray;
    }

    .search-box input[type="text"]:focus::placeholder {
        color: transparent;
    }

@media (max-width: 576px) {
    .search-box {
        margin-top: 2rem;
    }
}

/*.clamp {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    color:darkgray;
    font-style:italic;
    font-size:8px;
}

.clamp-2 {
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
}*/