/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #181818;
    color: #f1f1f1;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Container for all content */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

/* Header */
h1 {
    text-align: center;
    font-size: 2.5em;
    color: #7247ff;
    margin-bottom: 30px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out;
}

/* Section Styles */
.section-toggle {
    background-color: #2b2b2b;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: slideIn 0.5s ease-out;
}

.section-toggle:hover {
    background-color: #444;
    transform: translateX(10px);
}

.section-content {
    display: none; /* Hide all sections by default */
    background-color: #2b2b2b;
    padding: 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

/* Form inputs and buttons */
input[type="text"], select, button {
    width: 80%;
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.3s ease, border 0.3s ease;
    animation: fadeIn 1s ease-out;
}


input[type="text"]:focus, select:focus, button:hover {
    background-color: #444;
    border: 1px solid #FF6347;
    outline: none;
}

/* Button */
button {
    background-color: #FF6347;
    color: white;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    animation: fadeInUp 1s ease-out;
}

button:hover {
    background-color: #ff4500;
    transform: translateY(-2px);
}

/* Lists */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    background-color: #333;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

li:hover {
    background-color: #444;
}

/* Attendance Section */
.attendance-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    margin-top: 20px;
    animation: fadeInUp 1s ease-out;
}

.attendance-section div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.2em;
    animation: slideIn 0.5s ease-out;
}

.attendance-section label {
    margin-left: 10px;
    font-size: 1.1em;
}

.attendance-section input[type="checkbox"] {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.attendance-section input[type="checkbox"]:checked {
    transform: scale(1.2);
}

/* Highlight padding for students */
.student-highlight {
    background-color: #FF6347;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

/* Pending Students Section */
/* Pending Students Section */
#pending-students {
    background-color: #2b2b2b;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    animation: fadeInUp 1s ease-out;
}

#pending-students li {
    background-color: #f44336; /* Red background to indicate alert */
   
    color: white; /* White text to contrast with red */
    font-weight: bold;
   
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite; /* Add pulsing effect */
}

/* Hover effect for pending student alert */
#pending-students div:hover {
    background-color: #e57373; /* Lighter red when hovered */
    transform: scale(1.05); /* Slightly enlarge the alert on hover */
}

/* Animation for pulsing effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: #f44336;
    }
    50% {
        transform: scale(1.05);
        background-color: #e57373; /* Lighter red */
    }
    100% {
        transform: scale(1);
        background-color: #f44336;
    }
}

/* Adjust the padding for a better alert feel */
.student-highlight {
    background-color: #FF6347;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    font-size: 1.1em;
    border: 2px solid #FF4500;
}

/* Responsive Design for Pending Students */
@media (max-width: 768px) {
    #pending-students div {
        padding: 12px;
        font-size: 1em;
    }

    .student-highlight {
        font-size: 1em;
        padding: 12px;
    }
}

/* Select and Dropdown Styles */
select {
    background-color: #333;
    color: #fff;
    font-size: 1.1em;
    padding: 12px;
    border: 1px solid #444;
    transition: background-color 0.3s ease, border 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

select:hover {
    background-color: #444;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    .container {
        width: 90%;
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .section-toggle {
        padding: 12px;
        font-size: 1.1em;
    }

    .section-content {
        padding: 20px;
    }

    .attendance-section {
        align-items: center;
    }

    .attendance-section div {
        font-size: 1em;
    }

    .student-highlight {
        font-size: 1em;
        padding: 8px;
    }

    .student-highlight:hover {
        background-color: #ff4500;
    }

    input[type="checkbox"] {
        margin-right: 8px;
    }
    input[type="text"] {
        width: 220px;
    }

    /* Disable hover animations on mobile */
    .section-toggle:hover {
        transform: none; /* Disable hover animation */
        background-color: #2b2b2b;
    }

    li:hover {
        background-color: #333; /* Disable hover effect */
    }

    .attendance-section input[type="checkbox"]:checked {
        transform: scale(1.2);
    }
}
