/**
 * The public-facing stylesheet for the plugin.
 *
 * @package    WDM_Instructor_Assignment_Report
 * @subpackage WDM_Instructor_Assignment_Report/public
 * @author     Wisdmlabs <info@wisdmlabs.com>
 */

/* Message Styles */
.wdm-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease-out;
}

.wdm-message-success {
    background-color: #28a745;
    border-left: 4px solid #1e7e34;
}

.wdm-message-error {
    background-color: #dc3545;
    border-left: 4px solid #c82333;
}

.wdm-message-info {
    background-color: #17a2b8;
    border-left: 4px solid #138496;
}

.wdm-message-warning {
    background-color: #ffc107;
    color: #212529;
    border-left: 4px solid #e0a800;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Export Progress Modal */
.export-progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.export-progress-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.export-progress-modal .modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.export-progress-modal .modal-header {
    padding: 24px 32px 16px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.export-progress-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.export-progress-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.export-progress-modal .modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.export-progress-modal .modal-body {
    padding: 24px 32px 32px;
}

.export-progress-modal .progress-container {
    text-align: center;
}

.export-progress-modal .progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.export-progress-modal .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    border-radius: 6px;
    transition: width 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 115, 170, 0.3);
}

.export-progress-modal .progress-text {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.export-progress-modal .progress-details {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
}

.export-progress-modal .export-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.export-progress-modal .cancel-export-during {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.export-progress-modal .download-csv-btn,
.export-progress-modal .cancel-export-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-progress-modal .download-csv-btn {
    background: #0073aa;
    color: white;
}

.export-progress-modal .download-csv-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.export-progress-modal .cancel-export-btn {
    background: #6c757d;
    color: white;
}

.export-progress-modal .cancel-export-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Assignment Report Shortcode Styles */
.wdm-assignment-report-filters {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.wdm-assignment-report-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-row {
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.filter-row label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.filter-row select,
.filter-row input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.filter-row select:focus,
.filter-row input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.wdm-filter-btn,
.wdm-reset-btn {
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

.wdm-reset-btn{
    padding: 10px 24px;
}



.wdm-filter-btn {
    padding: 12px 24px;
    background: #3B5998;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wdm-filter-btn:hover {
    background: #2d4373;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 89, 152, 0.3);
}

.wdm-filter-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.wdm-filter-btn:disabled:hover {
    background: #e9ecef;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

.wdm-reset-btn {
    background: white;
    color: #336699;
    border: 2px solid #336699;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wdm-reset-btn:hover {
    background: #3B5998;
    color: white;
    border-color: #2d5a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(51, 102, 153, 0.2);
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 12px;
    padding-right: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0073aa;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0f0f0;
}

/* Lesson/Topic Filter Specific Styles */
#lesson-topic-filter-row {
    transition: all 0.3s ease;
}

#lesson-topic-filter-row.hidden {
    display: none !important;
}

#lesson-topic-filter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#lesson-topic-filter option[disabled] {
    color: #999;
    font-style: italic;
}

/* Assignment Status Filter Specific Styles */
#assignment-status-filter-row {
    transition: all 0.3s ease;
}

#assignment-status-filter-row.hidden {
    display: none !important;
}

#assignment-status-filter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#assignment-status-filter option[disabled] {
    color: #999;
    font-style: italic;
}

/* Loading state for lesson/topic filter */
#lesson-topic-filter.loading {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

/* Bold text in Select2 options */
.select2-results__option strong {
    font-weight: bold;
}

.select2-selection__rendered strong {
    font-weight: bold;
}

/* Loading state for lesson/topic filter */
#lesson-topic-filter.loading {
    opacity: 0.7;
    background: #f9f9f9;
}

#lesson-topic-filter.loading .select2-selection--single {
    background: #f9f9f9;
    border-color: #ddd;
}

#lesson-topic-filter.loading .select2-selection--single .select2-selection__rendered {
    color: #666;
    font-style: italic;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#lesson-topic-filter.loading .select2-selection--single .select2-selection__rendered::before {
    content: "🔄";
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* DataTable Styling */
.wdm-assignment-report-table-container {
    margin-top: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #e1e5e9;
}

/* Controls inside table container */
.wdm-assignment-report-table-container .wdm-assignment-report-controls {
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    border-top: none;
    background: #f8f9fa;
}

/* DataTable empty state styling */
.dataTables_empty {
    text-align: center !important;
    font-style: italic !important;
    color: #666 !important;
    font-size: 16px !important;
    padding: 40px 20px !important;
    font-weight: 500 !important;
}

#wdm-assignment-report-table {
    width: 100% !important;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#wdm-assignment-report-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 16px 12px;
    border-bottom: 1px solid #e1e5e9;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* First column (sticky column) should be left-aligned */
#wdm-assignment-report-table thead th:first-child,
#wdm-assignment-report-table thead th.sticky-column {
    text-align: left;
}

/* Sticky column styling */
#wdm-assignment-report-table thead th.sticky-column,
#wdm-assignment-report-table tbody td.sticky-column {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #f8f9fa;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

#wdm-assignment-report-table tbody td.sticky-column {
    background: white;
}

#wdm-assignment-report-table tbody tr:hover td.sticky-column {
    background: #f8f9fa;
}

#wdm-assignment-report-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    color: #495057;
    background: white;
    text-align: center;
}

/* First column (sticky column) should be left-aligned */
#wdm-assignment-report-table tbody td:first-child,
#wdm-assignment-report-table tbody td.sticky-column {
    text-align: left;
}

#wdm-assignment-report-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* DataTables specific header alignment */
table.dataTable > thead > tr > th {
    text-align: center !important;
}

/* First column (sticky column) should be left-aligned */
table.dataTable > thead > tr > th:first-child,
table.dataTable > thead > tr > th.sticky-column {
    text-align: left !important;
}


/* Add Assignment button styling */
.add-assignment-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.add-assignment-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
    color: white;
    text-decoration: none;
}

/* Assignment data styling */
.assignment-data {
    font-size: 13px;
    color: #495057;
}

/* First column (Username) styling */
#wdm-assignment-report-table th:first-child,
#wdm-assignment-report-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #212529;
}

/* Second column (Email) styling */
#wdm-assignment-report-table th:nth-child(2),
#wdm-assignment-report-table td:nth-child(2) {
    text-align: center;
    color: #6c757d;
}

/* Assignment columns styling */
#wdm-assignment-report-table th:nth-child(n+3),
#wdm-assignment-report-table td:nth-child(n+3) {
    text-align: center;
}

/* DataTable Controls */
.dataTables_wrapper {
    padding: 0;
    overflow-x: auto;
}

/* DataTable info and pagination styling */
.dataTables_info {
    padding: 16px 20px;
    color: #6c757d;
    font-size: 13px;
}

.dataTables_paginate {
    padding: 16px 20px;
    text-align: right;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #e1e5e9;
    background: white;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dataTables_paginate .paginate_button:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.dataTables_paginate .paginate_button.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* DataTable scrolling container */
.dataTables_scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

/* Fixed columns styling */
.DTFC_LeftWrapper {
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.DTFC_LeftWrapper table {
    border-right: none;
}

/* Equal width columns */
#wdm-assignment-report-table {
    table-layout: fixed;
    min-width: 100%;
}

#wdm-assignment-report-table th,
#wdm-assignment-report-table td {
    word-wrap: break-word;
    word-break: break-word;
}

.dataTables_length {
    margin-bottom: 15px;
}

.dataTables_length select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 5px;
}

.dataTables_info {
    margin-top: 15px;
    color: #6c757d;
}

.dataTables_paginate {
    margin-top: 15px;
}

.dataTables_paginate .paginate_button {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    background: white;
    color: #007cba;
    border-radius: 4px;
    cursor: pointer;
}

.dataTables_paginate .paginate_button:hover {
    background: #007cba;
    color: white;
}

.dataTables_paginate .paginate_button.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Custom Search and Export Controls */
.wdm-assignment-report-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.search-controls label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.search-controls input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    flex: 1;
}

.search-controls input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.clear-search-btn {
    padding: 12px 24px;
    background: white;
    color: #336699;
    border: 2px solid #336699;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

.clear-search-btn:hover {
    background: #2d4373;
    color: white;
    border-color: #2d5a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(51, 102, 153, 0.2);
}

.export-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-csv-btn {
    padding: 10px 20px;
    background: #f0f2f3;
    color: #222;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-csv-btn:hover {
    background: #2d4373;
    color: white;
}

.export-csv-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.export-csv-btn:disabled:hover {
    background: #6c757d;
}

.export-csv-btn::before {
    content: "📊";
    font-size: 16px;
}

/* Add Assignment Button */
.add-assignment-btn {
    padding: 6px 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.add-assignment-btn:hover {
    background: #005a87;
}

.add-assignment-btn::before {
    content: "➕";
    font-size: 14px;
}

/* Assignment Modal */
.assignment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.modal-body {
    padding: 24px;
    margin: 0px !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 123, 186, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Points input container */
.points-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-input-container input[type="number"] {
    width: 120px;
    flex-shrink: 0;
}

.max-points-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

#max-points-display {
    color: #007cba;
    font-weight: 600;
}

.points-input-container input[type="number"]:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #dee2e6;
}

.points-input-container input[type="number"]:disabled::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.points-input-container input[type="number"]:disabled + .max-points-label {
    color: #dc3545;
    font-style: italic;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.cancel-btn,
.submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-btn {
    background: #28a745;
    color: white;
}

.submit-btn:hover {
    background: #218838;
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* DataTable Buttons - Removed export functionality */

/* Responsive Design */
@media (max-width: 768px) {
    .wdm-assignment-report-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-row {
        min-width: auto;
        width: 100%;
    }
    
    .filter-actions {
        justify-content: center;
        margin-top: 10px;
    }
    
    .select2-container {
        width: 100% !important;
    }
    
    /* Mobile controls adjustments */
    .wdm-assignment-report-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .wdm-assignment-report-table-container .wdm-assignment-report-controls {
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid #dee2e6;
    }
    
    .search-controls {
        min-width: auto;
        width: 100%;
    }
    
    .search-controls input[type="text"] {
        min-width: auto;
        width: 100%;
    }
    
    .export-controls {
        justify-content: center;
    }
    
    /* Mobile modal adjustments */
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
    
    /* Mobile points input adjustments */
    .points-input-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .points-input-container input[type="number"] {
        width: 100%;
    }
    
    .max-points-label {
        font-size: 13px;
    }
    
    /* Mobile table adjustments */
    .wdm-assignment-report-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #wdm-assignment-report-table {
        min-width: 600px; /* Ensure minimum width for scrolling */
    }
    
    #wdm-assignment-report-table th,
    #wdm-assignment-report-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    /* Adjust sticky column for mobile */
    #wdm-assignment-report-table thead th.sticky-column,
    #wdm-assignment-report-table tbody td.sticky-column {
        min-width: 120px;
    }
}

/* DataTables processing indicator styling */
.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 30px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dataTables_wrapper .dataTables_processing:after {
    display: none !important;
}

/* Delayed assignment status styling for LearnDash frontend */
.learndash-wrapper .ld-status-delayed {
    background-color: #f75151 !important;
    color: #ffffff !important;
    text-align: left;
    white-space: normal;
    line-height: 1.4;
    border-radius: 12px;
    padding: 5px 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 11px;
    display: block;
    margin-bottom: 5px;
}

.learndash-wrapper .ld-status-delayed .ld-icon-clock:before {
    content: "";
    margin-right: 6px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z'/%3E%3Cpath d='M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.learndash-wrapper .ld-status-delayed small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
    text-transform: none;
    font-weight: normal;
    letter-spacing: normal;
}

/* Points information styling within delayed status */
.learndash-wrapper .ld-status-delayed .points-info {
    font-weight: 600;
    color: #856404;
    text-transform: none;
    letter-spacing: normal;
}

/* Hide complete status when delayed status is present */
.learndash-wrapper .ld-status-delayed-wrapper + .ld-status-complete,
.learndash-wrapper .ld-status-delayed-wrapper ~ .ld-status-complete {
    display: none !important;
}

/* Alternative selector for when delayed status is in the same container */
.learndash-wrapper .ld-table-list-column:has(.ld-status-delayed-wrapper) .ld-status-complete {
    display: none !important;
}