html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /*background-color: #e6edf7;*/
    background-color: #d9d9d9;
    height: 100%;
    padding: 0;
    margin: 0;
}

h1 {
    outline: none; !important;
}
/* TopBar links style*/
.btn {
    text-decoration: none;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.6rem 1rem 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background: #fff;
    color: #6f42c1;
}

.nav-links {
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #fff;
    padding: 0.4rem 0.5rem 0.3rem 0.5rem;
    font-weight: bold;
}

.nav-links:hover {
    background: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #6f42c1;
    padding: 0.4rem 0.5rem 0.3rem 0.5rem;
    transition: all 0.3s ease;
}

.nav-links.active {
    background: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 0.4rem 0.5rem 0.3rem 0.5rem;
    color: #6f42c1;
}

.icon-link button {
    background: transparent;
}

.page-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/*Home page*/
.intro-container {
    display: flex;
    flex-wrap: wrap;                
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem;
    padding: 2rem;
    max-width: 90%;
    background: #6f42c1;
    border-radius: 10px;
}

.title-side {
    flex: 1 1 400px;              
    min-width: 280px;
    margin: 0;
    animation: slideInFromLeft 1s ease-out forwards;
}

hr {
    border-width: 3px;
    border-color: #ffffff;
}

.title {
    border: 2px solid #fff;
    border-radius: 10px;
}

.title h1{
    outline: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 1.1rem 1rem 0 1rem;
}

.text {
    margin-top: 1rem;
    border: 2px solid #fff;
    border-radius: 10px;
}

.text p {
    color: #fff;
    font-size: 1.0rem;
    padding: 1.1rem 1rem 0 1rem;
}

.btn-side {
    margin-top: 2rem;
}

.login-btn {
    display: inline-block;
    text-decoration: none;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 1.0rem 3rem 0.9rem 3rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.login-btn:hover {
    background: #fff;
    color: #6f42c1;
}

.img-side {
    flex: 1 1 150px;
    min-width: 280px;
    height: 100%;
    text-align: center;
    opacity: 0;
    animation: slideInFromRight 1s ease-out forwards;
}

.img-side img {
    max-width: 100%;
    height: 550px;
    border-radius: 10px;
    box-shadow: 2px 2px 4px #6f42c1;
}

/* Intro animation */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop{
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes opacityChange {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* About page*/
.about-page {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 90%;
}

.about-page-blocks  {
    display: flex;
    justify-content: center;
    flex-direction: row;
    height: 100%;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-page-blocks h1 {
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
}

.about-page-blocks p {
    color: #ffffff;
    text-align: center;
    font-size: 1.2rem;
}

.about-block {
    border: 0 solid transparent;
    padding: 1rem;
    border-radius: 10px;
    background: #6f42c1;
    width: 33%;
    animation: slideInFromTop 1s ease-out forwards;
}

.about-summary {
    border: 0 solid transparent;
    padding: 1rem 1rem 0 1rem;
    margin: 0 14.8rem 10rem 14.8rem;
    border-radius: 10px;
    background: #6f42c1;
    height: 30%;
    animation: slideInFromBottom 1s ease-out forwards;
}

.about-summary h1 {
    outline: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 2rem;
}

.about-summary p {
    color: #ffffff;
    font-size: 1.2rem;
}

/* About college page */

.about-college-page {
    width: 90%;
    margin-bottom: 10rem;
    animation: slideInFromTop 1s ease-out forwards;
}

.about-college-page h1 {
    outline: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 2rem;
}

.about-college-page p {
    color: #ffffff;
    font-size: 1.2rem;
}

.about-college-block {
    border: 0 solid transparent;
    padding: 2rem 1rem 1rem 1rem;
    border-radius: 10px;
    background: #6f42c1;
}

.about-college-center-block {
    margin-top: 2rem;
}

/*Login page*/

.login-page-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.login-page {
    display: flex;
    justify-content: center;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.login-page h1{
    color: #ffffff;
    font-weight: bold;
    outline: none;
}

.auth-btn {
    display: block;
    text-decoration: none;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.9rem 7.4rem 0.8rem 7.4rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.auth-btn:hover {
    background: #fff;
    color: #6f42c1;
}

.back-btn {
    margin-top: 1rem;
    padding: 0.9rem 3.3rem 0.8rem 3.3rem;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-form-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: #6f42c1;
    height: 100%;
    width: 100%;
}

.auth-form-section h1 {
    margin-bottom: 2rem;
}

.ukhpc-logo {
    margin-bottom: 2rem;
}

.text-input {
    display: block;
    background: #ffffff;
    border: 0 solid transparent;
    border-radius: 10px;
    padding: 0.2em 1rem 0 1rem;
    min-height: 3.4rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.password-wrapper {
    position: relative;
    display: flex; 
    justify-content: center;
    flex-direction: column;
    width: 100%; 
}

.password-wrapper label {
    display: inline-block;
    color: #ffffff;
    padding-bottom: 1rem;
    font-size: 1.2rem;
}

.toggle-visibility {
    display: inline-block;
}

/* Profile page */
.profile-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.profile-body {
    display: flex;
    justify-content: center;
    flex-direction: row;
    min-height: 100vh;
    min-width: 100vw;
}

.profile-nav-links {
    width: 100%;
}

.profile-content {
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.greeting {
    width: 100%;
    background: #6f42c1;
    border-radius: 10px;
    padding-top: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.greeting h1 {
    font-weight: bold;
    font-size: 2rem;
    outline: none;
    color: #ffffff;
}

.greeting p {
    margin-top: 1rem;
    color: #ffffff;
}

.cards {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; 
}

.card {
    color: #ffffff;
    flex: 1 1 50px; 
    max-width: 380px;
    background: #6f42c1;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.trans-cards {
    display: flex;
    flex-direction: column;
    flex: 1 1 320px;
}

.card h1 {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff;
}

.card ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 1rem;
    color: #ffffff;
}

.card li {
    margin: 0;
}

.card a {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.library-section {
    width: 100%;
    max-width: 790px;
    background: #6f42c1;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.library-section h1 {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff;
}

.library-section ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 1rem;
    color: #ffffff;
}

.library-section li {
    margin: 0;
}

.profile-library-card {
    width: 100%;
}

.scrollable-list {
    overflow-y: auto;
    width: 100%;
    max-height: 12rem;
}

.profile-icon {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.profile-icon i {
    margin-right: 0.5rem;
}

.infractions-card {
    animation: slideInFromLeft 1s ease-out forwards;
}

.edudepartment-card {
    animation: slideInFromRight 1s ease-out forwards;
}

.library-section {
    animation: slideInFromBottom 1s ease-out forwards;
}

/*Student pages*/

.pages-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    width: 100%;
}

.form button {
    margin-top: 1rem;
}

.form input,
.form select,
.form textarea {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    margin-top: 0.5rem;
    width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: #ffffff;
    margin-top: 0.5rem;
}

.form label {
    margin-top: 1rem;
}

.submit-infraction-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submit-edudeprequest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*EduDep Page*/
.edudep-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
}

.status-form-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.table-card {
    margin-top: 3rem;
    max-height: 25rem;
    overflow-y: auto;
    overflow-x: auto;
    width: 80%;
    border-radius: 10px;
}

.common-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    color: #ffffff;
    overflow-x: auto;
}

.common-table th, .common-table td {
    border: 1px solid #ccc; 
    padding: 10px;
}

.common-table th {
    background: #6f42c1;
    position: sticky;
    top: 0;
    z-index: 1;
}

.common-table td {
    color: #000000;
    background: #bababa;
    
}

.common-table tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.common-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.common-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/*Library Page*/

.input-group {
    display: flex;
    flex-direction: row;
}

.library-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    width: 100%;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.give-take {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    
}

.allocated {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #6f42c1;
    border: 0 solid transparent;
    border-radius: 10px;
    padding: 1rem 1rem 0.3rem 1rem;
    margin-top: 1.5rem;
    margin-bottom: -3rem;
}

.allocated h1 {
    font-weight: bold;
    font-size: 2rem;
    outline: none;
    color: #ffffff;
}

.library-card {
    color: #ffffff;
    flex: 1 1 100px;
    background: #6f42c1;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.library-card h1{
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
}

/*Admin Page*/

.admin-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 2rem;
    gap: 1.5rem;
}

.export-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.upload-file {
    color: #ffffff;
    margin-bottom: -3rem;
}

/*Password change page*/
.password-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.password-cards input {
    padding: 1rem 1rem;
    border-radius: 10px;
    border: 1px solid #ffffff;
    margin-bottom: 1rem;
}

/*Create report page*/
.export-report-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 2rem;
    gap: 1.5rem;
}

.export-report-forms {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 2rem;
}

.export-report-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.export-report-form .card{
    width: 100%;
    max-width: 450px; 
}

.file-list {
    margin-top: 1rem;
    max-height: 130px;
    overflow-y: auto;
    overflow-x: auto;
}

.file-item {
    color: #ffffff;
    margin-top: 8px;
}

.export-report-icon {
    display: flex;
    flex-direction: column;
}

progress {
    width: 100%;
    accent-color: #ffffff;
}

.close-btn {
    margin-top: 1rem;
}

.cancel-button {
    text-decoration: none;
    background: transparent;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {

    /*Home page mobile*/
    .intro-container {
        flex-direction: column;        
        margin: 1rem;
        padding: 1.5rem;
        height: auto;                  
        text-align: center;
        gap: 1.5rem;
        animation: slideInFromTop 1s ease-out forwards;
    }

    .title-side {
        margin: 0;                    
        width: 100%;
        animation: none;              
    }

    .title h1 {
        font-size: 1rem;             
        padding: 1rem;
        color: #ffffff;
        animation: none;
    }

    .text p {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .login-btn {
        padding: 0.9rem 2.2rem;
        width: 100%;                  
        max-width: 250px;              
        margin: 0 auto;
    }
    
    .img-side {
        order: -1;
        opacity: 1;
        animation: none;
        width: 100%;
    }

    .img-side img {
        height: auto;
        width: 100%;
        margin: 0 auto;
    }
    
    /*About page mobile*/
    .about-page-blocks {
        flex-direction: column;
        gap: 1.5rem;
        margin: 0 1rem 2rem 1rem;
    }

    .about-block {
        width: 100%;
        padding: 1.2rem;
    }

    .about-page-blocks h1 {
        font-size: 1.4rem;
        text-align: center;
        outline: none;
    }

    .about-page-blocks p {
        font-size: 1rem;
    }

    .about-summary {
        margin: 0 1rem 4rem 1rem !important;
        padding: 1.2rem;
        animation: slideInFromTop 1s ease-out forwards;
    }

    .about-summary h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-summary p {
        font-size: 1rem;
        text-align: center;
    }
    
    /*About college page mobile*/
    .about-college-page {
        width: 100%;
        max-width: 1000px;                 
        padding: 0 1.5rem;                  
        margin-bottom: 6rem;
        animation: slideInFromTop 1s ease-out forwards;
    }

    .about-college-block {
        background: #6f42c1;
        border-radius: 10px;
        padding: 2rem 1.5rem;
        margin: 0 0 2rem 0;                 
    }

    .about-college-page h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-college-page p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.4;
    }

    .about-college-center-block {
        margin-top: 2rem;
    }

    .about-college-center-block p i {
        margin-right: 0.5rem;
    }
    
    /*Login page mobile*/
    .login-page {
        flex-direction: column;
        padding: 0 1rem;
        background: #6f42c1;
    }

    .auth-form-section {
        width: 100%;
        padding: 2rem 1rem;
    }

    .ukhpc-logo {
        width: 80%;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .text-input {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .auth-btn {
        padding: 0.9rem 3rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .back-btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .password-wrapper label {
        font-size: 1rem;
    }
    
    /*Profile page*/
    
    .profile-content {
        display: flex;
        flex-direction: column;
        padding: 0.5rem;
        justify-content: center;
        align-items: center;
    }

    .cards {
        gap: 1rem;
    }

    .card {
        max-width: 100%;
    }

    .library-section {
        margin-top: 1rem;
        width: 100%;
    }

    .greeting {
        margin-top: 1rem;
    }
    
    .greeting h1 {
        font-size: 1.5rem;
    }

    .submit-infraction-card {
        margin-top: 2rem;
    }

    .submit-edudeprequest-card {
        margin-top: 2rem;
    }
    
}

@media (max-width: 1800px) {
    .intro-container {
        flex-direction: column;
        margin: 1rem;
        padding: 1.5rem;
        height: auto;
        text-align: center;
        gap: 1.5rem;
        animation: slideInFromTop 1s ease-out forwards;
    }

    .img-side {
        order: -1;
        opacity: 1;
        animation: none;
        width: 100%;
    }

    .img-side img {
        height: auto;
        width: 100%;
        margin: 0 auto;
    }
}

