/* Attendance Page Specific Styles */

.attendance-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.attendance-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.selection-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.selection-controls input[type="date"],
.selection-controls select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1rem;
}

.selection-controls button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background-color: #5DADE2;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.selection-controls button:hover {
    background-color: #4A90E2;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.attendance-table th,
.attendance-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.attendance-table thead th {
    background-color: #f9f9f9;
    color: #555;
    font-weight: 600;
}

.attendance-table tbody tr:hover {
    background-color: #f5f5f5;
}

.attendance-status-selector {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.attendance-status-selector .status-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.attendance-status-selector .status-btn.selected {
    color: white;
    font-weight: bold;
}

.status-btn.present {
    border-color: #28a745;
}
.status-btn.present.selected {
    background-color: #28a745;
}

.status-btn.absent {
    border-color: #dc3545;
}
.status-btn.absent.selected {
    background-color: #dc3545;
}

.status-btn.leave {
    border-color: #ffc107;
}
.status-btn.leave.selected {
    background-color: #ffc107;
}

.attendance-footer {
    margin-top: 25px;
    text-align: left;
}

#saveAttendanceBtn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#saveAttendanceBtn:hover {
    background-color: #218838;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
