body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 70px;
    background-color: #332e2e;
}

#detailsModal div {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    max-height: 80vh; /* Ensures it doesn't exceed the viewport height */
    overflow-y: auto; /* Enables scrolling */
}

.container { /* all */
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(133, 8, 8);
}
.title-container {/* title */
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: large;}

.logo {
        width: 80px;
        height: auto;
    }

.container h3{ 
        text-align: center;
        font-size: x-large;
    }

    .buttons-container {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
    
    
    
    .btn {
        padding: 10px 10px;
        background-color: #332e2e;
        color: white;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 16px;
        text-decoration: none;
        transition: all 1.5s ease;
    }
    
    .btn:hover {
        background-color: #550909;
    }
    
    .btn.active {
        color: white;
        background-color: #550909; /* Optional: change background for contrast */
        border-bottom: 5px solid #332e2e;
        box-shadow: 0 0 20px rgb(133, 8, 8);
    }
table { 
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden; }

th, td { 
    border: 1px solid #ddd; 
    padding: 10px; 
    text-align: left; }

th { 
    background-color: #550909; 
    color: white; }

.view-btn { 
    background: #28a745; 
    color: white; 
    padding: 5px 10px; 
    border: none; 
    cursor: pointer; }

    .live-time {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1rem;
        font-weight: bold;
        background: linear-gradient(135deg, #6e8efb, #a777e3);
        color: white;
        padding: 10px 16px;
        border-radius: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        font-family: 'Arial', sans-serif;
        letter-spacing: 1px;
        user-select: none;
        animation: pulse 2s infinite alternate;
        z-index: 1000;
        text-align: center;
        line-height: 1.4;
    }
    
    @keyframes pulse {
        from {
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        to {
            box-shadow: 0 8px 16px rgba(106, 142, 251, 0.4);
        }
    }
    
    /* Make sure the container position is relative */
    .container {
        position: relative;
        /* Keep your existing container styles */
    }

        /* Added styles for ID image in modal */
        #idImageContainer {
            margin-top: 15px;
            border: 1px solid #ddd;
            padding: 10px;
            text-align: center;
            background-color: #f9f9f9;
        }
        #studentIDImage {
            max-width: 100%;
            max-height: 300px;
            border: 1px solid #ccc;
            box-shadow: 0 0 5px rgba(0,0,0,0.2);

        }
        .no-image-text {
            padding: 20px;
            color: #666;
            font-style: italic;
        }

        .search-container {
            margin-bottom: 20px;
        }
        
        #historySearch {
            width: 100%;
            padding: 8px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .highlight {
            background-color: #FFFF00;
            font-weight: bold;
        }
    
