<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin</title>


    <!-- DataTables CSS -->
    <link rel="stylesheet" href="https://cdn.datatables.net/1.13.8/css/jquery.dataTables.min.css">

    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">

    <link rel="icon" type="image/png" href="/images/iconTop.png">
    <!-- Custom CSS -->

    <!-- jQuery FIRST -->
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>

    <!-- DataTables (match version with CSS) -->
    <script src="https://cdn.datatables.net/1.13.8/js/jquery.dataTables.min.js"></script>
    <!-- BOOTSTRAP CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" href="/css/style.css">

    <!-- Bootstrap -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>

    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <style>
        .modal-dialog.modal-sm-custom {
            max-width: 420px;
            /* control width */
            width: 100%;
        }

        .modal-content {
            border-radius: 12px;
            padding: 5px;
        }

        .modal-body {
            max-height: 60vh;
            overflow-y: auto;
        }

        .table-card {
            background: #fff;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .action-btn {
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 13px;
            text-decoration: none;
            color: #fff;
            margin-right: 5px;
        }

        .btn-edit {
            background: #3b82f6;
        }

        .btn-delete {
            background: #ef4444;
        }

        .btn-edit:hover {
            background: #2563eb;
        }

        .btn-delete:hover {
            background: #dc2626;
        }

        .action-column {
            width: 140px;
            white-space: nowrap;
            text-align: center;
        }
        .attendance-toggle {
    display: flex;
    gap: 10px;
}


.attendance-btn {
    min-width: 95px;
    border-radius: 20px;
    font-weight: 600;
    padding: 7px 15px;
    transition: all .3s ease;
}


/* Present */
.present-btn {
    background: #198754;
    color: white;
    border: 1px solid #198754;
}


.present-btn:hover {
    background: #157347;
    color:white;
}



/* Absent */
.absent-btn {
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
}


.absent-btn:hover {
    background: #dc3545;
    color:white;
}



/* Active effect */

.attendance-btn.active {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}
.filter-select {
    width: 180px;
    padding: 8px;
    border-radius: 6px;
}
    </style>

</head>

<body>

    <!-- Sidebar -->
    <%- include('../partials/sidebar') %>

        <!-- Main Content -->
        <div class="main-content" id="main">
            <%- include('../partials/topbar') %>
                <!-- Page Content -->
                <div class="container mt-3">
                    <%- body %>
                </div>
                <%- include('../partials/footer') %>
        </div>

        <script src="/js/scripts.js"></script>
        <%- include('../partials/modal') %>

</body>

</html>