

/* Form Styles */

/* Fee Reports Styles */
.report-summary {
    margin: 20px 0;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.summary-card {
    padding: 15px;
    border-radius: 8px;
    color: white;
}

.summary-card.total {
    background: linear-gradient(135deg, #4e73df, #224abe);
}

.summary-card.pending {
    background: linear-gradient(135deg, #f6c23e, #dda20a);
}

.summary-card.discount {
    background: linear-gradient(135deg, #1cc88a, #13855c);
}

.summary-card .amount {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0 5px;
}

.summary-card .period {
    opacity: 0.8;
    font-size: 0.9rem;
}

.report-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.chart-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* Exam Results Styles */
.analysis-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.analysis-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.analysis-card .score {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0 5px;
    color: #2e59d9;
}

.analysis-card .student {
    font-size: 0.9rem;
    color: #6c757d;
}

.analysis-card .change {
    font-size: 0.9rem;
}

.analysis-card .change.up {
    color: #1cc88a;
}

.analysis-card .change.down {
    color: #e74a3b;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.results-chart {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.bulk-actions {
    margin-top: 20px;
    text-align: right;
}

/* Timetable View Styles */
.timetable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.timetable {
    width: 100%;
    border-collapse: collapse;
}

.timetable th,
.timetable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.timetable th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.timetable-slot {
    padding: 8px;
    border-radius: 4px;
    background-color: #4e73df;
    color: white;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timetable-slot strong {
    font-size: 1.1rem;
}

.color-math {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #4e73df;
    margin-right: 8px;
    vertical-align: middle;
}

.color-science {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #1cc88a;
    margin-right: 8px;
    vertical-align: middle;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .report-charts,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .timetable-slot {
        min-height: 60px;
        padding: 5px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .analysis-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .timetable-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* User Roles & Permissions */
.roles-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.roles-list {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.role-items {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.role-items li {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.role-items li:hover {
    background: #f8f9fa;
}

.role-items li.active {
    background: #007bff;
    color: white;
}

.role-permissions {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.permission-category {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.permission-category h4 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.permission-item {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.permission-item input {
    margin-right: 8px;
}

.permission-actions {
    margin-top: 20px;
    text-align: right;
}

/* Responsive Settings */
@media (max-width: 992px) {
    .roles-container {
        grid-template-columns: 1fr;
    }
}


/* Book Management Styles */
.book-cover-small {
    width: 40px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.book-filters {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.books-table th,
.books-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Returns Table Styles */
.returns-table th,
.returns-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.status.overdue {
    color: #dc3545;
    font-weight: bold;
}

.status.issued {
    color: #17a2b8;
    font-weight: bold;
}

.status.returned {
    color: #28a745;
    font-weight: bold;
}

.btn-return {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-renew {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.return-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Responsive Library */
@media (max-width: 768px) {
    .books-table td:nth-child(4),
    .books-table th:nth-child(4) {
        display: none;
    }
    
    .returns-table td:nth-child(1),
    .returns-table th:nth-child(1) {
        display: none;
    }
}

/* Fee Management Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header .close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.assignment-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.assignment-table th,
.assignment-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.assignment-actions {
    margin-top: 20px;
    text-align: right;
}

/* Receipt Styles */
.receipt-preview {
    font-family: Arial, sans-serif;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.school-info h2 {
    margin: 0;
    color: #333;
}

.receipt-title h3 {
    margin: 10px 0 5px;
    color: #333;
}

.receipt-body {
    margin: 20px 0;
}

.receipt-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    font-weight: bold;
    width: 150px;
}

.receipt-items {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.receipt-items th,
.receipt-items td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.receipt-items tfoot th {
    border-top: 2px solid #333;
}

.payment-method {
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.receipt-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.authorized-sign {
    width: 200px;
}

.signature-line {
    border-top: 1px solid #333;
    margin-top: 30px;
}

.receipt-actions {
    margin-top: 20px;
    text-align: right;
}

/* Responsive Fee Management */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .receipt-footer {
        flex-direction: column;
    }
    
    .authorized-sign {
        margin-bottom: 20px;
    }
}
/* Library Management Styles */
.book-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.book-cover img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.book-meta h5 {
    margin: 0 0 5px;
}

.member-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.member-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.member-meta h5 {
    margin: 0 0 5px;
}

.issue-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.issue-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.issue-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.current-issue {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.current-issue th,
.current-issue td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.current-issue th {
    background-color: #f8f9fa;
}

.summary-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive Library */
@media (max-width: 992px) {
    .issue-container {
        grid-template-columns: 1fr;
    }
}

/* Performance Report Styles */
.student-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.student-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.performance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.summary-card h4 {
    margin-top: 0;
    color: #6c757d;
}

.summary-card .score {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.performance-chart {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.subject-performance {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.subject-table {
    width: 100%;
    border-collapse: collapse;
}

.subject-table th,
.subject-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.subject-table th {
    background-color: #f8f9fa;
}

.teacher-comments {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.comment-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-card h4 {
    margin-top: 0;
    color: #343a40;
}

/* Responsive Reports */
@media (max-width: 768px) {
    .student-header {
        flex-direction: column;
        text-align: center;
    }
    
    .subject-table {
        font-size: 14px;
    }
}


/* Attendance Calendar Styles */
.attendance-filters {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.attendance-calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-legend {
    display: flex;
    gap: 15px;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.legend-present {
    color: #28a745;
}

.legend-absent {
    color: #dc3545;
}

.legend-holiday {
    color: #6c757d;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    height: 60px;
    vertical-align: top;
}

.calendar-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.calendar-table td.other-month {
    color: #ccc;
    background-color: #fafafa;
}

.attendance-present {
    display: block;
    color: #28a745;
    font-size: 12px;
}

.attendance-absent {
    display: block;
    color: #dc3545;
    font-size: 12px;
}

.attendance-holiday {
    display: block;
    color: #6c757d;
    font-size: 12px;
}

/* Summary Cards */
.attendance-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.summary-card {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.summary-card h4 {
    margin-top: 0;
    color: #6c757d;
}

.summary-card .count {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.trend {
    font-size: 14px;
}

.trend.up {
    color: #28a745;
}

.trend.down {
    color: #dc3545;
}

.trend.stable {
    color: #6c757d;
}

/* Report Styles */
.report-controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.report-results {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.report-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.report-header h3 {
    margin: 0;
}

.report-header p {
    margin: 5px 0 0;
    color: #6c757d;
    font-size: 14px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.report-table th,
.report-table td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
}

.report-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.report-table tfoot th {
    background-color: #e9ecef;
}

.report-chart {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .calendar-legend {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .calendar-table td {
        height: 40px;
        font-size: 14px;
    }
    
    .attendance-present,
    .attendance-absent,
    .attendance-holiday {
        font-size: 10px;
    }
    
    .report-controls .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Student Profile Styles */
.student-profile {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

/* Tabs */
.profile-tabs {
    margin-top: 20px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #555;
}

.tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.info-item h4 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Documents Table */
.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.documents-table th,
.documents-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.documents-table th {
    background-color: #f8f9fa;
}

.btn-download {
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

/* Confirmation Box */
.confirmation-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-message {
    text-align: center;
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 50px;
    color: #dc3545;
    margin-bottom: 15px;
}

.student-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Promotion Controls */
.promotion-controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    align-items: flex-end;
}

.promotion-table th,
.promotion-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.promotion-actions {
    margin-top: 20px;
    text-align: right;
}

/* Bulk Upload */
.bulk-upload-instructions {
    margin-bottom: 30px;
}

.instruction-box {
    background: #e7f5ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 4px;
}

.instruction-box ol {
    padding-left: 20px;
}

.preview-table .valid {
    background-color: #f8fff8;
}

.preview-table .error {
    background-color: #fff8f8;
}

.status.success {
    color: #28a745;
}

.status.error {
    color: #dc3545;
}

.import-actions {
    margin-top: 20px;
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        width: 100%;
        justify-content: center;
    }
    
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .promotion-controls {
        grid-template-columns: 1fr;
    }
}

/* Settings Styles */
.current-logo {
    margin-top: 10px;
}

.terms-container {
    margin-bottom: 15px;
}

.term-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.term-item input[type="text"] {
    flex: 2;
    min-width: 150px;
}

.term-item input[type="date"] {
    flex: 1;
    min-width: 120px;
}

.btn-remove-term {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive settings */
@media (max-width: 768px) {
    .term-item {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .term-item input {
        width: 100%;
    }
    
    .btn-remove-term {
        align-self: flex-end;
    }
}
/* Notice Management Styles */
.notices-list {
    margin-top: 20px;
}

.notice-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.notice-header h3 {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.notice-date {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.notice-target {
    background: #e2e3e5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.notice-content {
    margin-bottom: 10px;
}

.notice-attachment {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.notice-attachment a {
    color: #007bff;
    text-decoration: none;
}

.notice-actions {
    text-align: right;
}

/* Form row for inline fields */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Responsive notice management */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .notice-header h3 {
        width: 100%;
        margin-bottom: 5px;
    }
}


/* Fee Collection Styles */
.fee-collection-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.search-container {
    display: flex;
}

.search-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-container .btn-search {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.student-details {
    margin-top: 20px;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.student-info .student-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.fee-table th,
.fee-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.fee-table th {
    background-color: #f8f9fa;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 4px;
}

.status.paid {
    background: #d4edda;
    color: #155724;
    padding: 3px 8px;
    border-radius: 4px;
}

.payment-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* Responsive fee collection */
@media (max-width: 768px) {
    .student-info {
        flex-direction: column;
        text-align: center;
    }
    
    .fee-table {
        font-size: 14px;
    }
}


/* Attendance Styles */
.attendance-controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.form-group.inline {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.attendance-table-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.attendance-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.attendance-actions {
    margin-top: 20px;
    text-align: right;
}

/* Status buttons */
.status-btn {
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: white;
}

.status-btn.present {
    background: #d4edda;
    border-color: #c3e6cb;
}

.status-btn.absent {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.status-btn.late {
    background: #fff3cd;
    border-color: #ffeeba;
}

/* Responsive attendance */
@media (max-width: 768px) {
    .attendance-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group.inline {
        min-width: auto;
    }
}


.form-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    
    font-weight: 600;
}

.student-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.actions a {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.btn-view {
    background-color: #17a2b8;
    color: white;
}

.btn-edit {
    background-color: #ffc107;
    color: #212529;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.btn-search {
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Filters */
.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.filters select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
    }
}