/* Basic styles */
body {
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    width: 100vw;
    padding-top: 20px;
    box-sizing: border-box;
    background-color: #000000;
}

.container {
    background-color: #000000;
    color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    transition: all 0.3s ease;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Status boxes */
#status-boxes {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-box {
    width: 150px;
    height: 150px;
    background-color: #ccc;
    border-radius: 10px;
    text-align: center;
    line-height: 150px;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.status-box:hover {
    transform: scale(1.1);
}

#present-box {
    background-color: #4caf50;
}

#absent-box {
    background-color: #f44336;
}

#leave-box {
    background-color: #ffc107;
}

/* Table styles */
table {
    border-collapse: collapse;
    font-size: 1.2em;
}

#table_container{
    overflow-x: auto;

    border: 1px solid white;
}

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

th {
    background-color: #000000;
    text-align: center;
    border-bottom: 1px solid #ffffff;
    white-space: nowrap;
}

.attendance {
    text-align: center;
}

#attendance {
    text-align: center;
}

.attendance-present {
    color: green;
}

.attendance-absent {
    color: red;
}

.attendance-leave {
    color: yellow;
}

.status-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-button {
    margin: 5px;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-button.present {
    background-color: #28a745;
}

.status-button.absent {
    background-color: #dc3545;
}

.status-button.leave {
    background-color: #ffc107;
}

.status-button:hover {
    filter: brightness(1.2);
}

button {
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.2em;
}

button:hover {
    background-color: #0056b3;
}

/* Responsive styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 2em;
    }

    .status-box {
        width: 120px;
        height: 120px;
        font-size: 20px;
        line-height: 120px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 1.8em;
    }

    .status-box {
        width: 100px;
        height: 100px;
        font-size: 18px;
        line-height: 100px;
    }

    th,
    td {
        font-size: 1em;
        padding: 8px;
    }

    button {
        padding: 10px 20px;
        font-size: 1em;
    }

    #status-boxes {
        flex-direction: column;
        align-items: center;
    }

    .status-box {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .status-box {
        width: 80px;
        height: 80px;
        font-size: 16px;
        line-height: 80px;
    }

    th,
    td {
        font-size: 0.8em;
        padding: 5px;
    }

    button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    #status-boxes {
        flex-direction: row;
        justify-content: space-around;
    }

    .status-box {
        margin: 5px;
    }

    table,
    th,
    td {
        padding: 5px;
        font-size: 0.8em;
    }

    th,
    td {
        white-space: nowrap;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}
