.pin-pad {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.pin-pad h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.5em;
}

#pin-display {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
    min-height: 1.5em;
}

.pin-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.pin-buttons button {
    background: #4a4a4a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.2s;
}

.pin-buttons button:hover {
    background: #666;
}

#pin-clear, #pin-enter, #pin-cancel {
    grid-column: span 1;
}

#pin-enter {
    background: #2e7d32; /* Green for enter */
}

#pin-enter:hover {
    background: #388e3c;
}

#pin-clear {
    background: #d32f2f; /* Red for clear */
}

#pin-clear:hover {
    background: #e53935;
}

#pin-cancel {
    background: #757575; /* Gray for cancel */
}

#pin-cancel:hover {
    background: #8d8d8d;
}

/* Attended students popup styling */
.attended-list {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

.attended-list h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.5em;
    text-align: center;
}

.student-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.attended-list > button {
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.attended-list > button:hover {
    background: #388e3c;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .pin-pad, .attended-list {
        width: 95%;
        padding: 15px;
    }

    .pin-buttons button {
        padding: 10px;
        font-size: 1em;
    }
}



.admin-gear {
	cursor: pointer;
	font-size: 1.2em;
	margin-left: 10px;
}

.attending {
	background-color: #cccccc; /* Gray background for disabled look */
	opacity: 0.6; /* Faded appearance */
	pointer-events: none; /* Prevent clicks and interactions */
	cursor: not-allowed; /* Show disabled cursor */
}

.attendancebody #screencover {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

body.attendancebody {
	font-family: Arial, sans-serif;
	background-color: #f4f4f9;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}
.attendancebody #bodydiv {
	width: 100%;
	max-width: 1200px;
	padding: 20px;
	box-sizing: border-box;
	align-items: center;
}
.attendancebody #bodydiv:before {
	background-image: unset;
}
.attendancebody #maincontent {
	text-align: center;
	width: 100%;
}
.attendancebody h1 {
	color: #333;
	font-size: 2.5em;
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.attendance-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	align-items: center;
	width: 100%;
}
.attendance-card {
	background-color: #a277e7;
	/* background-color: #75cde1; */
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	flex: 1 1 calc(20% - 20px);
	min-width: 120px;
	max-width: 200px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	user-select: none;
	box-sizing: border-box;
}
.student-attendance-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	align-items: center;
	background-color: #fff;
	border-radius: 12px;
	padding: 20px;
	max-width: 80%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}
.student-attendance-card {
	background-color: #a277e7;
	/* background-color: #75cde1; */
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	flex: 1 1 calc(20% - 20px);
	min-width: 120px;
	max-width: 200px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	user-select: none;
	box-sizing: border-box;
}
.attendance-card:hover, .student-attendance-card:not(.attending):hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.attendance-card:active, .student-attendance-card:not(.attending):active {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.attendance-card.present, .student-attendance-card.present {
	background-color: #4caf50;
	color: #fff;
	border-color: #4caf50;
}
.attendance-card h3, .student-attendance-card h3 {
	margin: 0;
	font-size: 1.2em;
}
.attendancebody #divfooter {
	text-align: center;
	padding: 20px 0;
	margin-top: 40px;
	width: unset;
}
.attendancebody .footertext {
	color: #666;
	font-size: 0.9em;
}


