/* Copyable CSS */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: 'Roboto', 'Montserrat', 'PlayFair-Display'
}

html,
body {
    margin: 0;
    padding: 0;
    overflow: auto;
    /* this needs to be auto for scrolling to work*/
    height: 100%;
    width: 100%;
}

:root {
    --mainBlue: rgb(0, 68, 124);
    --mainWhite: rgb(255, 255, 255);
    --silver: rgb(167, 169, 172);
    --yellow: rgb(255, 203, 5);
    --darkBlue: rgb(0, 44, 87);
    --brightBlue: rgb(24, 180, 233);
    --brightRed: rgb(225, 29, 29);
    --lightRed: rgb(248, 80, 80);
}

.navbar {
    background-color: var(--darkBlue) !important;
}

.bg-dark {
    background-color: var(--darkBlue) !important;
}

.navbar-toggler {
    background-color: var(--silver) !important;
}

.navList {
    display: flex;
    justify-content: space-around;
    margin: 0;
}

.navItem a {
    text-decoration: none;
    color: var(--mainWhite);
    font-size: larger;
    font-weight: bold;
}

.navItem a:hover {
    color: var(--silver);
}

/*Header Logo*/

#logoWrapper {
    background-color: var(--mainBlue); 
    padding:  0;
    text-align: center;
  }
  
  #header-logo {
    max-width: 300px;
    height: auto;
  }

/* Page Styles */
#wrapper {
    background-color: var(--mainBlue);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80vh;
    padding-top: 40px;
}


#login {
    background-color: var(--yellow);
    position: relative;
    width: 450px;
    height: 100%;
    border-radius: 15px;
    padding: 7.5em 2.5em 4em 2.5em;
    box-shadow: 0px 0px 10px 2px;
    align-content: center;
}

.login-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    ;
    background-color: var(--brightBlue);
    width: 140px;
    height: 70px;
    border-radius: 0 0 20px 20px;
}

.login-header span {
    font-size: 30px;
    color: black
}

.login-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -30px;
    width: 30px;
    height: 30px;
    border-top-right-radius: 50%;
    background: transparent;
    box-shadow: 15px 0 0 0 var(--brightBlue);
}

.login-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: -30px;
    width: 30px;
    height: 30px;
    border-top-left-radius: 50%;
    background: transparent;
    box-shadow: -15px 0 0 0 var(--brightBlue);
}

.inputBox {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.inputField {
    width: 100%;
    height: 55px;
    font-size: 18px;
    background: transparent;
    color: var(--darkBlue);
    padding-inline: 20px 50px;
    border: 2px solid var(--mainWhite);
    border-radius: 30px;
    outline: none;
}

.label {
    position: absolute;
    top: 15px;
    left: 20px;
    transition: .2s;
}

.inputField:focus+.label,
.inputField:valid+.label {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 14px;
    background-color: var(--mainWhite);
    padding: 0 10px;
    border-radius: 15px;
}

.loginSubmit {
    width: 100%;
    height: 50px;
    background: var(--brightBlue);
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s;
}

.loginSubmit:hover {
    background: var(--mainWhite);
}

/*Toggle SwitchOrPC*/

.form-check.form-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 240px;
    margin: 0 auto 1rem auto;
}


.form-check-label {
    color: rgb(9, 9, 9);
    font-weight: bold;
    font-size: 1rem;
    margin-right: 15px;
}

/* Add these new rules */
.left-label,
.right-label {
    width: 60px;
    text-align: center;
    color: rgb(9, 9, 9);
    font-weight: bold;
    font-size: 1rem;
}

.form-check-input {
    transform: scale(1.2);
    cursor: pointer;
}


/*Log out styling added*/
.logOutSubmit {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    background: var(--brightRed);
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s ease;
}

.logOutSubmit:hover {
    background: maroon;
}

.radioBox {
    border: 2px solid #00bfff;
    padding: 15px 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.radioBox p {
    margin-bottom: 10px;
    font-weight: bold;
}

.radioSelect {
    display: flex;
    justify-content: space-around;
    align-items: center;

}

.radioLabel {
    margin: 0 10px;
    font-weight: bold;
}

.radioInput {
    height: 20px;
    width: 20px;
}

.inputBox .dateLabel {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #000;
}

.inputDate {
    width: 100%;
    padding: 14px 16px;
    font-size: x-large;
    border: 2px solid var(--brightBlue);
    border-radius: 20px;
    background-color: var(--yellow);
    color: #333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inputDate:focus {
    border-color: #00bfff;
    box-shadow: 0 0 5px #00bfff80;
}


/* Log section */

.student-list {
    width: 90%;
    margin: auto;
}

#logSection {
    margin-top: 20px;
    width: 90%;
    align-items: center;
    text-align: center;
}

.showLogs {
    padding: 10px;
    height: 50px;
    background: var(--brightBlue);
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s;
    text-align: center;
    margin-bottom: 15px;
}

.student,
.studentLog {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px 0;
    background: var(--mainWhite);
    width: 100%;
    justify-content: space-between;
    font-size: 1.2em;
    align-items: center;
}

.individualSignOut,.reportBtn {
    background: var(--brightRed);
    color: var(--mainWhite);
    /* padding: 10px; */
    cursor: pointer;
    transition: .3s;
    border: 0px;
    border-radius: 5px;
    margin: 5px 5px;
    border: 1px solid black;
    width: 5%;
    transition: ease 0.3s;
}

.individualSignOut:hover,.reportBtn:hover {
    background: maroon;
}

.reportBtn {
    background: rgb(255, 187, 0);
}

.student span {
    text-align: center;
    padding: 0 0.5rem;
    min-width: 120px;
}

.studentLog span {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
    min-width: 120px;
}

.student .stuName {
    text-align: left;
    flex-grow: 2;
}

.student .stuId {
    min-width: 90px;
}

.student .platform {
    min-width: 100px;
}

.sesTime,
.dayTime {
    text-align: center;
    flex-grow: 1;
}

.studentLog .signOutTimeLog {
    flex: 1;
    text-align: center;
    min-width: 260px;
}

.studentLog .totalTimeLog {
    flex: 1;
    text-align: center;
    min-width: 140px;
}


.logoutBtn {
    background: var(--yellow);
    border-radius: 5px;
    transition: .3s;
}

.logoutBtn:hover {
    background: var(--brightBlue);
}

.popCount {
    color: var(--mainWhite);
}



.entryWrapper {
    display: flex;
    /* height: 60px; */
}

/* Footer */

footer {
    background-color: var(--darkBlue);
    text-align: center;
    padding: 5px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto;
    font-weight: bold;
}

footer a {
    color: var(--mainWhite);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--silver);
}


/* Sort/Search Section */

.sortSection {
    display: flex;
    justify-content: center;
    width: 50%;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.sortSection button {
    background: var(--brightBlue);
    color: black;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s ease;
}

.sortSection select, .sortSection input {
    border-radius: 30px;
}

.showLogs:hover, .sortSection button:hover {
    background: var(--mainWhite);
}

.sortGroup {
    min-width: 160px;
    max-width: 25%;
}

/* Media */
@media only screen and (max-width: 942px) {
    #wrapper {
        padding: 20px
    }

    .loginBox {
        padding: 7.5em 1.5em 4em 1.5em;
    }

    .student,
    .studentLog {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}