/* General Body Styling */
body {
    font-family: 'Poppins', sans-serif; /* Modern and clean font */
    background: linear-gradient(to bottom, #e0f7fa, #e1bee7); /* Soft gradient background */
    margin: 0;
    padding: 0;
    text-align: center;
    color: #333;
}

/* Page Title Styling */
h1 {
    color: black;
    margin-top: 60px;
    font-size: 3rem;
    font-weight: 600;
    border-bottom: 3px solid black;
    display: inline-block;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

/* Student List Section */
#student-list {
    margin: 30px auto;
    width: 90%;
    max-width: 1200px;
}

/* Individual Student Card */
.student-progress {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.student-progress:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.student-name {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #1a237e;
}

.student-name span {
    display: block;
    font-size: 1em;
    color: #616161;
    margin-top: 5px;
}

/* Progress Bar Styling */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 30px;
    width: 0%;
    background: linear-gradient(to right, #4caf50, #81c784); /* Gradient for progress bar */
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: bold;
    border-radius: 20px 0 0 20px;
    transition: width 0.5s ease;
}

/* Dropdown Container */
main .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 60%;
    max-width: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main .container:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Dropdown Styling */
#batchSelector {
    width: 80%;
    max-width: 400px;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid black;
    border-radius: 8px;
    background: white;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

#batchSelector:hover,
#batchSelector:focus {
    border-color: black;
    background: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4a148c;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#backToTop:hover {
    background: #7b1fa2;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    main .container {
        width: 90%;
    }

    h1 {
        font-size: 2.2rem;
    }

    #batchSelector {
        width: 100%;
    }
}
