@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    touch-action: manipulation; /* Prevents double-tap zoom */
    
}

.section-login {


    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.logo-text,
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

.form-text{
    position:absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 5px;
    font-size: 0.9em;
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    margin-top: 20px ;
}

h1 {
    text-align: center;
    font-weight: 300;
    font-size: 1.5em;
}

.logo {
    color: blueviolet;
    font-size: 2em;
    font-weight: 300;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5);
}

.subtext {
    text-align: center;
    line-height: 1em;
    font-size: 0.9em;
    font-weight: 400;
    color: dimgray
}

.login-form {
    margin-top: 40px;
}

input,
form {
    width: 100%;
    height: 100%;
}

.icon {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5em;
    padding: 10px;
    /* color: blueviolet;
    border: solid 1px blueviolet;
    border-radius: 0 10px 10px 0;
    padding: 9px;
    background: blueviolet; */
    color: dimgray;
}

.form-field,
.form-btn {
    position: relative;
    height: 45px;
    margin: 20px 0;
}

.form-field input {
    display: inline-block;
    border-radius: 10px;
    border: solid 1.5px blueviolet;
    text-align: center;
    font-size: 1.1em;
    color: black;
    padding: 0 50px 0 10px;
}

.form-field input::placeholder {
    font-weight: 300;
    font-size: 0.9em;
}

.btn {
    border-radius: 10px;
    background: blueviolet;
    border: solid 1.5px blueviolet;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
}

.forgot-register {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    font-size: 0.9em;
}

.forgot-register a {
    color: black;
    text-decoration: none;
    cursor: pointer;
    padding: 0 10px;
}

.footer {
    visibility: hidden;
    position: absolute;
    bottom: 10px;
    font-size: 0.7em;
    font-weight: 200;
    color: dimgray;
    width: 80%;
    text-align: center;
}


/* -- NAV STYLING -- */


nav{
    background: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    display: block;
}

nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li{
    height: 50px;
}

nav a{
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    color: black;
    text-decoration: none;
}

nav a:hover{
    background: #f0f0f0;
    transition:all 0.3s;
}

nav li:first-child{
    margin-right: auto;
    font-size: 1.5em;
    font-weight: 400;
}

.sidebar{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    height: 100vh;
    width: 350px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 5px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    /* transition:all 2s linear; */
}

.menu-button{
    display: none;
}
.sidebar li{
    width: 100%;
}

.sidebar a{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 100%;
}

nav .icon{
    font-size: 2em;
}

nav .icon3{
    /* left: 20px; */
    font-size: 1.3em;
    margin: 0 20px;
}

nav .logo{
    font-size: 1.5em;
}

.icon2{
    font-size: 2em;
}
/* end NAV styling */


@media(max-width: 800px){
    .hideOnMobile{
        display: none;
    }
    .menu-button{
        display: block;
    }
}

@media(max-width: 400px){
    .hideOnMobile{
        display: none;
    }
    .sidebar{
        width: 100%;
    }
}

@media(min-width: 801px){
    .wrapper{
        grid-template-columns: 1fr 1fr;
    }
    .card-table{
    grid-column: span 2;
    }
}

/* -- main page styling --- */
.container{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
}

.card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    padding: 30px 0;
    /* background: blueviolet; */
    background-color: #4158D0;
    background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 88%);
    color: white;
    border-radius: 10px;
}

.card .subtext{
    color: white;
}

.card .amount{
    font-size: 2em;
    font-weight: 500;
    padding: 10px 0 0 0;
}

.summary{
    display: flex;
    flex-direction: column;
    width: 100%;
    border: solid 1.5px blueviolet;
    padding: 10px;
    border-radius: 10px;
}

.summary-header{
    display: flex;
    flex-direction: column;
    color: dimgray;
    font-size: 0.9em;
    font-weight: 500;
    width: 100%;
}

.row-justifybetween{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    font-size: 1.1em;
}

.st_submitted{
    display: flex;
    background: rgb(90, 168, 0);
    color: white;
    width: 80px;
    justify-content: center;
    /* padding: 0 5px; */
    border-radius: 5px;
    margin: 0 10px;
    font-size: 0.8em;
    font-weight: 300;
}

.st_verified{
    display: flex;
    background: blue;
    color: white;
    width: 80px;
    justify-content: center;
    border-radius: 5px;
    margin: 0 10px;
    font-size: 0.8em;
    font-weight: 300;

}

.st_nostatus{
    display: flex;
    background: rgb(240, 10, 71);
    color: white;
    width: 80px;
    justify-content: center;
    border-radius: 5px;
    margin: 0 10px;
    font-size: 0.8em;
    font-weight: 300;
}


.summary-line{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: 500;
    margin: 10px 0;
}

.summary-header{
    text-align: left;
}

.summary-subtext{
    font-size: 0.8em;
    font-weight: 300;
    color: dimgray;
}

.summary-amount{
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: right;
}

.summary-receipt{
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    font-size: 0.8em;
}

.summary-receipt a{
    text-decoration: none;
    color: black;
}

.icon-receipt{
    font-size: 3em;
    cursor: pointer;
}
.upload-info{
    margin: 10px 0;
}
.notice{
    font-size: 0.9em;
}
/* .upload-form{
    display: flex;
    flex-direction: column;
} */
.upload-field{
    display: flex;
    flex-direction: column;
    height: 45px;
    margin: 10px 0;
}

.upload-field input{
    height: 45px;
}

ol{
    margin: 20px;
}

select{
    width: 100%;
    height: 45px;
    border-radius: 10px;
    border: solid 1.5px blueviolet;
    padding: 0 10px;
    background: white;
    text-align: center;
    font-size: 0.9em;
    
}

.form-field-file{
    position: relative;
    height: 100px;
    margin: 20px 0;
}

input[type="file"] {
    /* position: absolute; */
    opacity: 1; /* Make it invisible */
    cursor: pointer;
    height: 100%; /* Full height */
    width: 100%; /* Full width */
    top: 0; /* Align it to the top */
    left: 0; /* Align it to the left */
    border: solid 1.5px blueviolet;
    border-radius: 10px;
    padding: 30px 10px;
    font-size: 0.9em;
    text-align: start;
}

textarea{
    width: 100%;
    height: 100px;
    padding: 10px 10px;
    border: solid 1.5px blueviolet;
    border-radius: 10px;
    font-size: 1em;
    color: black;
    resize: none;
}

.welcome{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    font-weight: 500;
    color: dimgray;
}

.error{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    background: rgb(255, 185, 185);
    width: 100%;
}

.notice{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    background: rgb(201, 204, 255);
    width: 100%;
}

.horizontal-line{
    border: none;
    height: 1px;
    background: dimgray;
    width: 90%;
    align-self: center;
    opacity: 0.5;
}

#message {
    transition: opacity 1s ease-out; /* Adjust duration as needed */
    opacity: 1; /* Start fully visible */
}

#message.hide {
    opacity: 0; /* Fully transparent */
}


@media(min-width: 600px){
    .section-login{
        width: 600px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Adjusts to center */
    }

    .upload-form {
        width: 50%;
        position: absolute;
        top: 110px;
        left: 50%;
        transform: translate(-50%); /* Adjusts to center */
    }

    .container{
        display: grid;
        width: 100%;
        padding: 10px;
    }

    .card-wrapper{
        display: grid;            /* Use grid layout */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;               /* Space between items */
        width: 100%;  
    }
}