:root {
    font-family: 'Inter', sans-serif;
}

body {
    min-width: 256px;
    max-width: 1024;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}


/* Mobile-first adjustments */

@media (max-width: 768px) {
    /* Compact navigation */
    nav {
        padding: 8px 10px !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    nav .logo img {
        width: 120px !important;
        /* Smaller logo */
        margin: 0 auto;
        /* Center logo */
    }
    /* Better button layout */
    button {
        padding: 8px 12px !important;
        font-size: 14px !important;
        margin: 4px !important;
    }
    /* Optimize main image */
    main aside img {
        width: 100% !important;
        max-width: 280px !important;
        height: auto;
        margin: 10px auto !important;
    }
    /* Stack home section content */
    .home-section {
        flex-direction: column-reverse;
        gap: 15px;
        padding: 10px;
    }
    /* Adjust heading size */
    h1 {
        font-size: 1.6rem !important;
        margin: 10px 0 !important;
    }
    /* Reduce header spacing */
    header {
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    nav .logo img {
        width: 100px !important;
    }
    button {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    main aside img {
        max-width: 220px !important;
    }
    h1 {
        font-size: 1.4rem !important;
    }
}


/* Tablet adjustments */

@media (min-width: 481px) and (max-width: 768px) {
    nav {
        flex-direction: row;
        padding: 10px 20px;
    }
    nav .logo img {
        margin-bottom: 0;
    }
    button {
        width: auto;
        margin: 8px;
    }
    .steps ul {
        flex-direction: row;
    }
}

header {
    background-color: #eee;
}

a {
    color: #9966FF;
}

a:hover {
    color: #734DC0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

nav .logo img {
    width: 200px;
}

button {
    font-size: large;
    font-weight: bold;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
    margin-top: 8px;
}

.buttonLogIn {
    background-color: #9966FF;
    /*box-shadow: 2px 2px 60px #9966FF;*/
    box-shadow: 2px 2px 10px #9966FF;
}

.buttonRegister {
    background-color: #FFCC00;
    box-shadow: 2px 2px 10px #FFCC00;
}

.buttonCancel {
    background-color: #ff3232;
}

.buttonUniversity {
    background-color: #fff;
    /*box-shadow: 2px 2px 60px #FFE680;*/
    box-shadow: 2px 2px 10px #FFE680;
    color: #FFCC00;
}

main {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.home-section {
    display: flex;
}

main aside img {
    width: 600px;
}

.purpleUniEdu {
    color: #9966FF;
}

.yellowUniEdu {
    color: #FFCC00;
}

h1 {
    font-size: xx-large;
}

input[type=text],
input[type=email],
input[type=password],
input[type=tel] {
    padding: 12px 12px;
    margin: 8px 8px;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 8px;
}

input[type=file] {
    padding: 12px 12px;
    margin: 8px 8px;
}

input::-webkit-file-upload-button {
    font-size: large;
    font-weight: bold;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
    background-color: #9966FF;
}

input[name="contact-us-sender"] {
    width: 35%;
}

input[name="contact-us-title"] {
    width: 45%;
}

textarea[name="contact-us-content"] {
    font-family: "Inter", sans-serif;
    padding: 12px 12px;
    margin: 8px 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 8px;
    width: 45%;
    resize: none;
    scrollbar-width: 10px;
    scrollbar-gutter: 10px;
    scrollbar-color: #FC0;
}

textarea::-webkit-scrollbar {
    width: 1em;
}

textarea::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 8px #FC0;
}

textarea::-webkit-scrollbar-thumb {
    background-color: #FFCC00;
    box-shadow: 0px 0px 12px #FC0;
    border-radius: 8px;
}


/* select {
    padding: 12px 12px;
    margin: 8px 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 8px;
    width: 30%;
} */

span.password {
    float: right;
    padding-top: 16px;
}

.container {
    padding: 4px;
}


/* Dashboard Container */

.dashboard-container {
    /* width: 90%; */
    /* max-width: 1024px; */
    margin: 30px auto;
    text-align: center;
}

.buttonCancel {
    background-color: #d9534f;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.buttonCancel:hover {
    background-color: #c9302c;
}

.applications-section {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}


/* Application Card */

.application-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 400px;
    border-left: 5px solid #96F;
    transition: transform 0.2s ease-in-out;
    text-align: left;
}

.application-card:hover {
    transform: scale(1.02);
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    color: #3A2760;
}

.card-header h4 {
    margin: 5px 0;
    color: #734DC0;
}


/* Status Badge */

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: capitalize;
}

.status-badge.waiting-for-review {
    background-color: #ffcc00;
    color: #7a5900;
}

.status-badge.approved {
    background-color: #28a745;
    color: white;
}

.status-badge.rejected {
    background-color: #dc3545;
    color: white;
}

.date-submitted {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}


/* Responsive Design */

@media (max-width: 768px) {
    .application-card {
        max-width: 90%;
    }
}

main aside {
    text-align: center;
    margin-left: 12px;
}

footer {
    margin-top: 20px;
    background-color: #FFF9E0;
    padding: 20px 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

footer section {
    padding: 12px 12px;
}

footer aside {
    padding: 12px 12px;
}

footer section .logo img {
    width: 200px;
}

.steps {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.steps ul {
    display: flex;
    padding: 0;
    list-style: none;
    width: 100%;
    position: relative;
}

.steps ul li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.steps li+li::before {
    content: '';
    position: absolute;
    top: 25%;
    left: -50%;
    width: 100%;
    height: 3px;
    background-color: #eee;
    z-index: -1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #ccc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: #eee;
}

.step .icon {
    color: #aaa;
    font-size: 24px;
}

.steps .label {
    text-align: center;
}

.active .step {
    background-color: #FFCC00;
    border: 3px solid #FFCC00;
    box-shadow: 2px 2px 60px #FC0;
}

.active .icon {
    color: white;
}

.before .step {
    background-color: #9966FF;
    border: 3px solid #9966FF;
    box-shadow: 2px 2px 60px #96F;
}

.before .icon {
    color: white;
}

.steps li.active+li::before {
    background-color: #FFCC00;
}

.steps li.before+li::before {
    background-color: #9966FF;
}

.user-name {
    padding-right: 16px;
    font-size: large;
    font-weight: 400;
}

.statistics {
    padding: 8px;
    margin: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    align-content: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.stat {
    width: 30%;
    padding: 8px;
    margin: 8px;
    display: block;
    background: rgb(255, 249, 224);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 249, 224, 1) 60%, rgba(238, 238, 238, 1) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* .statistics {
    justify-content: space-around;
    margin: 20px 0;
    padding: 20px;
    
    
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin: 10px;
    min-width: 200px;
} */


/* Center the table */

.table-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* Full viewport height */
    padding: 20px;
}

table {
    width: 100%;
    /* You can adjust the width as per your requirement */
    border-collapse: separate;
    border-spacing: 10px;
    /* Adds space between columns */
    background-color: #fff;
    /* Optional: to make the table background white */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Optional: adds a subtle shadow around the table */
}


/* Styling the table headers */

table thead th {
    text-align: left;
    padding: 10px;
    background-color: #FFF9E0;
    font-weight: bold;
}


/* Styling table rows */

table tbody td {
    padding: 10px;
    text-align: center;
}

table tbody td a {
    display: flex;
    justify-content: center;
}

table tbody td button {
    margin-top: 0px;
}

table tbody td a {
    text-decoration: none;
}


/* Add borders to the table */

table,
th,
td {
    border: 1px solid #ddd;
    border-radius: 8px;
}


/* Add hover effect to rows */

table tbody tr:hover {
    background-color: #eee;
}


/*Dashboard-rep*/


/* Status Counts Section */

.status-counts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    padding: 15px;
    max-width: 800px;
}

.count {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.count span {
    font-weight: bold;
}


/* Different colors for each status */

.count.waiting {
    background-color: #ffcc00;
    color: #7a5900;
}

.count.approved {
    background-color: #28a745;
    color: white;
}

.count.rejected {
    background-color: #dc3545;
    color: white;
}


/* Hover Effect */

.count:hover {
    transform: scale(1.05);
}


/* Filter Section */

form {
    width: 80%;
    display: contents;
    align-items: center;
    max-width: 500px;
}

label {
    font-weight: bold;
    color: #333;
}


/* Stylish Dropdown */

select {
    padding: 10px;
    margin: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

select:hover {
    border-color: #0056b3;
}

select:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}


/* Responsive Design */

@media (max-width: 768px) {
    .status-counts {
        flex-direction: column;
        align-items: center;
    }
    .count {
        width: 100%;
        max-width: 300px;
    }
    form {
        flex-direction: column;
        align-items: center;
    }
    select {
        width: 100%;
        max-width: 250px;
    }
}


/* Additional mobile-specific enhancements */

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    .application-card {
        padding: 15px;
    }
    .table-container {
        overflow-x: auto;
    }
    table {
        font-size: 12px;
    }
    .buttonUniversity {
        font-size: medium;
    }
    footer section {
        padding: 8px;
    }
    input::-webkit-file-upload-button {
        width: 100%;
    }
}