/* Attendance Module Styles */
.sms-attendance-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sms-attendance-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sms-attendance-header h1 {
    color: #333;
    margin: 0 0 10px 0;
}

.sms-attendance-controls {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.sms-form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.sms-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.sms-btn-primary {
    background: #007cba;
    color: white;
}

.sms-btn-primary:hover {
    background: #006ba1;
    color: white;
}

.sms-btn-secondary {
    background: #6c757d;
    color: white;
}

.sms-btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.sms-btn-success {
    background: #28a745;
    color: white;
}

.sms-btn-success:hover {
    background: #218838;
    color: white;
}

.sms-btn-danger {
    background: #dc3545;
    color: white;
}

.sms-btn-danger:hover {
    background: #c82333;
    color: white;
}

.sms-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sms-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #007cba;
}

.sms-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 2em;
    color: #333;
}

.sms-stat-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.sms-attendance-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sms-attendance-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.sms-attendance-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.sms-attendance-table tr:hover {
    background: #f8f9fa;
}

/* Status colors */
.sms-attendance-present {
    background-color: #d4edda !important;
    color: #155724 !important;
}

.sms-attendance-absent {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

.sms-attendance-late {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

.sms-attendance-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* Alert messages */
.sms-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.sms-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.sms-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.sms-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.sms-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Attendance marking form */
.sms-attendance-marking-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sms-attendance-student-list {
    margin-top: 20px;
}

.sms-attendance-student-row {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.sms-attendance-student-row:last-child {
    border-bottom: none;
}

.sms-student-info {
    flex: 1;
    padding-right: 20px;
}

.sms-student-actions {
    display: flex;
    gap: 10px;
}

.sms-status-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 120px;
}

/* Bulk actions */
.sms-bulk-actions {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Date picker */
.ui-datepicker {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .sms-stat-cards {
        grid-template-columns: 1fr;
    }
    
    .sms-attendance-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sms-form-control {
        min-width: 100%;
    }
    
    .sms-attendance-student-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .sms-student-info {
        padding-right: 0;
    }
    
    .sms-student-actions {
        justify-content: flex-start;
    }
}

/* Print styles */
@media print {
    .sms-attendance-controls,
    .sms-bulk-actions,
    .sms-btn {
        display: none !important;
    }
    
    .sms-attendance-table {
        box-shadow: none !important;
    }
}