.attendance-card{
    background-image: linear-gradient(234deg, #046fcde6, #bb3662);
    padding: 1.5rem 2rem;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    color: white;
}

.stats-card {
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.total-bg {
    background: linear-gradient(135deg, #283da7, #a0a2ff);
}

.present-bg {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.absent-bg {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.leave-bg {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.halfday-bg {
    background: linear-gradient(135deg, #a917b85c, #e90fd0);
}
.late-bg {
    background: linear-gradient(135deg, #ff3f00b8, #12c6ef);
    color: white;
}
/*.attendance-card {*/
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
/*    padding: 2rem;*/
/*    border-radius: 15px;*/
/*    margin-bottom: 2rem;*/
/*}*/

.modal-xl {
    max-width: 90%;
}

.attendance-status {
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.status-present { background-color: #29b872; color: #fff; }
.status-absent { background-color: #e95730; color: #fff; }
.status-leave { background-color: #fba80e; color: #fff; }
.status-halfday { background-color: #e16fdb; color: #fff; }
.status-late { background-color: #3fb5ce; color: #fff; }


@media screen and (min-width: 768px) {
    html[data-layout=two-column] .content .col-md-3 .card {
         position: static!important;
         min-width: var(--ct-twocolumn-sidebar-iconview-width);
        padding-bottom: var(--ct-topbar-height);
         top: 10px!important;
         bottom: 0px!important;
        border: var(--ct-theme-border-width) solid var(--ct-border-color);
        border-right: 0 !important;
        overflow-y: auto;
        margin-bottom: 5px!important;
    }
}

table th , td{
    font-size: 14px!important;
    white-space: nowrap!important;
}
tbody td{
    border: 1px solid #000!important;
    white-space: nowrap!important;
}

.top-gradient-card {
    background: linear-gradient(90deg, #a259c6 0%, #3b82f6 100%);
    border-radius: 18px;
    padding: 24px 24px 16px 24px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(60, 60, 100, 0.08);
}

.top-gradient-card label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.student-pill {
    background: #fff;
    color: #333;
    border-radius: 24px;
    padding: 8px 18px;
    font-weight: 600;
    margin-left: 12px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.student-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 18px;
}

.student-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #a259c6;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-info-details {
    flex: 1;
}

.student-info-details .student-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.student-info-details .student-meta {
    font-size: 1rem;
    color: #555;
    margin-top: 2px;
}

.attendance-radio {
    display: none;
}

.attendance-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 8px;
    cursor: pointer;
    border: 1.5px solid #e0e0e0;
    transition: all 0.2s;
    color: #333;
    background: #f8f9fa;
    display: inline-block;
}

.attendance-radio[value="P"]:checked + label.attendance-btn, .bulk-select-btn.active[data-status="P"] {
    background: #218838!important;
    color: #fff !important;
    border-color: #218838;
}

.attendance-radio[value="L"]:checked + label.attendance-btn, .bulk-select-btn.active[data-status="L"] {
    background: #b8860b!important;
    color: #fff !important;
    border-color: #b8860b;
}

.attendance-radio[value="A"]:checked + label.attendance-btn, .bulk-select-btn.active[data-status="A"] {
    background: #c82333!important;
    color: #fff !important;
    border-color: #c82333;
}

.attendance-radio[value="LP"]:checked + label.attendance-btn, .bulk-select-btn.active[data-status="LP"] {
    background: #0056b3!important;
    color: #fff !important;
    border-color: #0056b3;
}

.attendance-radio[value="H"]:checked + label.attendance-btn, .bulk-select-btn.active[data-status="H"] {
    background: #343a40 !important;
    color: #fff !important;
    border-color: #343a40;
}

.attendance-btn:hover, .bulk-select-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.table-attendance tr td, .table-attendance tr th {
    vertical-align: middle;
}

.bulk-select-row {
    margin-bottom: 12px;
}

select, input[type="text"], input[type="number"] {
    width: 100%;
    padding: 8px 12px!important;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s;
}