* {
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #f4f6fb;
    color: #1f2937;
}

.container {
    max-width: 1100px;
    margin: 24px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

h1, h2, h3 {
    margin: 0 0 12px 0;
}

.muted {
    color: #6b7280;
}

.form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.form-row {
    display: grid;
    gap: 8px;
}

label {
    font-weight: 600;
}

input,
select,
button,
textarea {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button {
    background: #2563eb;
    border: 0;
    color: white;
    cursor: pointer;
}

button.secondary {
    background: #6b7280;
}

button.danger {
    background: #b91c1c;
}

button.success {
    background: #047857;
}

.message {
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.message.success {
    background: #dcfce7;
    color: #166534;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
    padding: 10px;
    vertical-align: top;
}

th {
    background: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.status-pending { background: #ffedd5; color: #9a3412; }
.status-approved { background: #dcfce7; color: #166534; }
.status-blocked { background: #fee2e2; color: #991b1b; }
.status-rejected { background: #e5e7eb; color: #374151; }

.card-list {
    display: grid;
    gap: 10px;
}

.student-row {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px;
}

.absent {
    border-color: #fca5a5;
    background: #fef2f2;
}

.present {
    border-color: #86efac;
    background: #f0fdf4;
}

.student-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.student-name {
    font-weight: 700;
}

.student-status-red {
    color: #b91c1c;
}

.student-status-green {
    color: #047857;
}

.details-box {
    margin-top: 10px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
    display: none;
}

.details-box.open {
    display: block;
}

.student-photo {
    max-width: 110px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-top: 8px;
}

.actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.section-title {
    margin: 16px 0 8px;
    font-size: 17px;
}

.count-chip {
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
}
