/* Coach Reports Pagination Styles */
.coach-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.coach-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    margin: 0 4px;
    padding: 0 8px;
    border-radius: 4px;
    background-color: #fff;
    color: #1c3144;
    border: 1px solid #d1d5db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.coach-pagination .page-numbers:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.coach-pagination .page-numbers.current {
    background-color: #1c3144;
    color: #fff;
    border-color: #1c3144;
}

.coach-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.coach-pagination .page-numbers.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

.coach-pagination .prev,
.coach-pagination .next {
    padding: 0 12px;
}

/* Loading state */
.coach-reports-table .loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #6b7280;
}

/* Make sure the table is responsive */
.coach-reports-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.coach-reports-table th,
.coach-reports-table td {
    padding: 10px;
    border: 1px solid #e5e7eb;
}

.coach-reports-table th {
    background-color: #f9fafb;
    font-weight: 600;
    text-align: left;
}

/* Hover effect for clickable rows */
.coach-reports-table .case-row:hover {
    background-color: #f3f4f6;
}




/* Reports pagination styling */
.reports-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.reports-pagination .pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.reports-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.reports-pagination .page-numbers:hover {
    background-color: #f5f5f5;
}

.reports-pagination .page-numbers.current {
    background-color: #1c3144;
    color: white;
    border-color: #1c3144;
    cursor: default;
}

.reports-pagination .dots {
    border: none;
    cursor: default;
}

.reports-pagination .page-numbers.next,
.reports-pagination .page-numbers.prev {
    padding: 5px 15px;
}

.admin-reports-table tr:hover {
    background-color: #f5f5f5;
}

/* Loading indicator styling */
.loading-indicator {
    text-align: center;
    padding: 20px;
}


/* Add this to your dashboard.css file */
.case-statistics {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.case-statistics a {
    padding: 6px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.case-statistics a.active {
    color: #1c3144;
    font-weight: 700;
    border-bottom: 2px solid #1c3144;
}

.case-statistics a:hover {
    color: #1c3144;
}

/* Add different colors for different statuses */
.status-filter:nth-child(1) { /* All */
    color: #1c3144;
}

.status-filter:nth-child(3) { /* Started */
    color: #4CAF50;
}

.status-filter:nth-child(5) { /* Pending */
    color: #FF9800;
}

.status-filter:nth-child(7) { /* Completed */
    color: #2196F3;
}

.status-filter.active:nth-child(1) {
    border-bottom-color: #1c3144;
}

.status-filter.active:nth-child(3) {
    border-bottom-color: #4CAF50;
}

.status-filter.active:nth-child(5) {
    border-bottom-color: #FF9800;
}

.status-filter.active:nth-child(7) {
    border-bottom-color: #2196F3;
}




/* Add this to your dashboard.css or create a new CSS file */

/* Client search styles */
.client-search-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

#client-search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-button {
    background-color: #1c3144;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #2c4154;
}

.clear-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.clear-button:hover {
    background-color: #e0e0e0;
}

.search-info {
    color: #666;
    font-size: 12px;
    margin: 5px 0 0 0;
}

.search-loading {
    display: inline-block;
    margin-left: 10px;
    color: #666;
    font-style: italic;
}

/* Highlight search matches */
.highlight-match {
    background-color: #ffeb3b;
    padding: 2px;
    border-radius: 2px;
}



/* Add these styles to your dashboard.css file */

/* Pagination styling */
.admin-cases-pagination {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.admin-cases-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #1c3144;
    background-color: #fff;
    transition: all 0.3s ease;
}

.admin-cases-pagination .page-numbers:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.admin-cases-pagination .page-numbers.current {
    background-color: #1c3144;
    color: white;
    border-color: #1c3144;
    font-weight: bold;
}

.admin-cases-pagination .prev,
.admin-cases-pagination .next {
    padding: 8px 15px;
}

.admin-cases-pagination .dots {
    border: none;
    background: transparent;
}

/* Loading indicator */
.loading-cases {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* Error message */
.error-message {
    text-align: center;
    padding: 20px;
    color: #d9534f;
    font-weight: bold;
}

/* Improve table responsiveness */
.cases-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cases-table th, 
.cases-table td {
    padding: 10px;
    border: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Filter styles */
.cases-filters {
    margin-bottom: 20px;
}

.search-input {
    padding: 8px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.filter-button {
    padding: 8px 16px;
    background-color: #1c3144;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: #172536;
}

/* Status cell styling */
.status-cell {
    text-align: center;
    font-weight: bold;
}

.status-cell.pending {
    color: #f0ad4e;
}

.status-cell.started {
    color: #5cb85c;
}

.status-cell.completed {
    color: #5bc0de;
}

.reinvite-client-btn {
    display: block;
    margin-top: 5px;
    padding: 3px 8px;
    font-size: 0.8em;
    background-color: #5bc0de;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.reinvite-client-btn:hover {
    background-color: #46b8da;
}

/* Responsive adjustments */
@media screen and (max-width: 1280px) {
    .cases-table th, .cases-table td{
        padding: 0.3rem !important;
        font-size: 12px;
    }
}
@media screen and (max-width: 1200px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .filter-button {
        width: 100%;
    }
    
    .admin-cases-pagination {
        margin: 20px 0;
    }
    
    .admin-cases-pagination .page-numbers {
        margin: 2px;
    }
}


/* Add these styles to your existing CSS file */

/* Pagination container */
.notifications-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Pagination links */
.notifications-pagination a.pagination-link {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #1c3144;
    text-decoration: none;
    border-radius: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.notifications-pagination a.pagination-link:hover {
    background-color: #f5f5f5;
    border-color: #1c3144;
}

/* Current page */
.notifications-pagination span.pagination-current {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 2px;
    border: 1px solid #1c3144;
    background-color: #1c3144;
    color: white;
    border-radius: 3px;
    font-weight: bold;
}

/* Disabled links */
.notifications-pagination span.pagination-disabled {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #999;
    border-radius: 3px;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Ellipsis */
.notifications-pagination span.pagination-ellipsis {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 2px;
}

/* Loading indicator for AJAX pagination */
.notifications-list.loading {
    position: relative;
    min-height: 200px;
}

.notifications-list.loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.notifications-list.loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1c3144;
    border-radius: 50%;
    z-index: 1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* CSS for the map search functionality */
.map-search-container {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.map-search-input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.map-search-button {
    background-color: #1c3144;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.map-search-button:hover {
    background-color: #2c4154;
}

.map-reset-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.map-reset-button:hover {
    background-color: #e0e0e0;
}

/* Improve coach info window styling */
.coach-info-window {
    padding: 5px;
    max-width: 250px;
}

.coach-info-window h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1c3144;
}

.coach-info-window p {
    margin: 5px 0;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-available {
    background-color: #e6f7e6;
    color: #4CAF50;
}

.status-onhold {
    background-color: #fff3e0;
    color: #FFA500;
}

.status-vacation {
    background-color: #e3f2fd;
    color: #0099CC;
}

.select-treatment-btn {
    background-color: #1c3144;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 12px;
    width: 100%;
}

.select-treatment-btn:hover {
    background-color: #2c4154;
}

.unavailable-message {
    color: #ff0000;
    font-style: italic;
    font-size: 12px;
    margin-top: 8px;
}

.vacation-dates {
    font-style: italic;
    font-size: 12px;
    color: #666;
}



/* Add this to your dashboard.css or admin styles */

.reinvite-client-btn {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #0085ba;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.reinvite-client-btn:hover {
    background-color: #006799;
}

.reinvite-client-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Make sure the status cell has some space for the button */
.status-cell {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Status is displayed as text first, then the button */
.status-cell .reinvite-client-btn {
    margin-left: auto;
}

.treat-highlight-red {
    color: #ff0000;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}


/* Case Requests Styles */
.case-requests-container {
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

#case-request-status-filter {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.refresh-button:hover {
    background-color: #e9e9e9;
}

.case-requests-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.case-requests-table th,
.case-requests-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.case-requests-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.case-requests-table tbody tr:hover {
    background-color: #f9f9f9;
}

.case-requests-table .status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.case-requests-table .status-badge.pending {
    background-color: #fff8e1;
    color: #f57c00;
    border: 1px solid #f57c00;
}

.case-requests-table .status-badge.approved {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.case-requests-table .status-badge.declined {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.case-requests-table .action-buttons {
    display: flex;
    gap: 8px;
}

.case-requests-table .button-with-loader {
    position: relative;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.case-requests-table .approve-request {
    background-color: #e8f5e9;
    border: 1px solid #2e7d32;
    color: #2e7d32;
}

.case-requests-table .decline-request {
    background-color: #ffebee;
    border: 1px solid #c62828;
    color: #c62828;
}

.case-requests-table .approve-request:hover {
    background-color: #c8e6c9;
}

.case-requests-table .decline-request:hover {
    background-color: #ffcdd2;
}

.case-requests-table .loader {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.case-requests-table .action-taken {
    font-style: italic;
    color: #666;
    font-size: 13px;
}

.no-items-message {
    padding: 30px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #666;
}

.no-visible-requests {
    padding: 15px;
    text-align: center;
    margin-top: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #666;
}

.request-row.status-pending {
    background-color: #fffef2;
}

/* Add this to existing dashboard.css */
.pending-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background-color: #f44336;
    color: white;
    font-size: 11px;
    margin-left: 5px;
    padding: 0 5px;
}

/* Animation for loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Notification badge for menu item */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

/* Notifications container */
.notifications-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.notifications-header h2 {
    margin: 0;
    color: #1c3144;
}

.notifications-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

#mark-all-read {
    background-color: #1c3144;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#mark-all-read:hover {
    background-color: #2c4154;
}

.notifications-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

#notification-type-filter {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.show-unread {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* Notifications list */
.notifications-list {
    /*max-height: 600px;*/
    overflow-y: auto;
    padding-right: 5px;
}

.notification-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item.is-unread {
    background-color: #f0f7ff;
}

.notification-item.is-unread:hover {
    background-color: #e6f2ff;
}

.notification-icon {
    margin-right: 15px;
}

.notification-icon .dashicons {
    color: #1c3144;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
}

.notification-details {
    margin-top: 5px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.vacation-dates {
    color: #0d47a1;
    font-weight: 500;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #757575;
}

.coach-info {
    display: flex;
    gap: 10px;
}

.coach-contact {
    color: #555;
    text-decoration: none;
}

.coach-contact:hover {
    color: #1c3144;
}

.notification-actions {
    margin-left: 10px;
}

.mark-read {
    background: none;
    border: none;
    cursor: pointer;
    color: #1c3144;
    padding: 5px;
}

.mark-read:hover {
    color: #4CAF50;
}

.no-notifications {
    padding: 30px;
    text-align: center;
    color: #757575;
    font-size: 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* Type-specific styles */
.type-coach_availability .notification-icon .dashicons {
    color: #2196F3;
}

.type-coach_availability.notification-item {
    border-left: 4px solid #2196F3;
}


/* Coach Availability Styling */
.availability-container {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.availability-container h2 {
    color: #1c3144;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.availability-form {
    margin-bottom: 30px;
}

.availability-form .form-group {
    margin-bottom: 20px;
}

.availability-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.availability-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    max-width: 400px;
}

.date-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.date-field {
    flex: 1;
    min-width: 200px;
}

.date-field label {
    font-weight: normal;
    margin-bottom: 5px;
}

.date-field input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.availability-status-display {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
}

.availability-status-display h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1c3144;
    font-size: 18px;
}

.status-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-onhold {
    background-color: #fff3e0;
    color: #e65100;
}

.status-vacation {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.vacation-period {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0d47a1;
}

.form-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    display: block;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    display: block;
}

.submit-button {
    background-color: #1c3144;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2c4154;
}

.availability-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.availability-info h3 {
    color: #1c3144;
    margin-bottom: 15px;
}

.availability-info ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.availability-info li {
    margin-bottom: 10px;
    line-height: 1.5;
}




#available-modules-section {
    padding: 20px;
}

.module-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-item {
    flex-grow: 1;
}

#module-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#module-category-filter {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-button {
    background-color: #1c3144;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.filter-button:hover {
    background-color: #2c4154;
}

/* Module grid layout */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.module-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.module-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1c3144;
}

.module-category {
    display: inline-block;
    padding: 3px 8px;
    background-color: #e9f0f6;
    color: #1c3144;
    border-radius: 4px;
    font-size: 12px;
}

.module-map-title {
    margin-bottom: 15px;
    color: #666;
    font-style: italic;
}

/* Module sections */
.module-sections {
    margin: 15px 0;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.module-sections h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #1c3144;
}

.module-sections ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.module-sections li {
    margin-bottom: 8px;
    padding: 5px 0;
    color: #1c3144;
    border-bottom: 1px dashed #eee;
}

.section-number {
    font-weight: bold;
    margin-right: 5px;
}

/* Module metadata */
.module-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.meta-label {
    font-weight: bold;
    margin-right: 5px;
}

.access-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.access-standard {
    background-color: #f0f0f0;
    color: #333;
}

.access-no_restrictions {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.access-everyone_logged_in {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.access-all_clients_on_the_course {
    background-color: #fff3e0;
    color: #e65100;
}

/* Module actions */
.module-actions {
    margin-top: 15px;
    text-align: right;
}

.view-module {
    display: inline-block;
    background-color: #1c3144;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.view-module:hover {
    background-color: #2c4154;
    color: white;
    text-decoration: none;
}

/* No modules message */
.no-modules-message {
    padding: 30px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}





.register-loader {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1c3144;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ocoaching-register-button,
.ocoaching-coach-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



.dashboard-menu a.menu-item-ocoaching {
    position: relative;
}

.dashboard-menu span.pending-count {
    position: absolute;
    top: 50%;
    right: 10px;
    background-color: #30c7b5;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translatey(-55%);
}

.paid-flag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background-color: #34d399;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.pay-now-button.disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

#invoice-actions {
    margin-top: 15px;
}

.button.view-invoice,
.button.download-invoice {
    margin-right: 10px;
}

#invoice-actions {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

#invoice-actions p {
    margin-bottom: 10px;
    color: #495057;
}

.view-invoice,
.download-invoice {
    margin: 0 5px;
    padding: 8px 16px;
    background-color: #1c3144;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.view-invoice:hover,
.download-invoice:hover {
    background-color: #2c4154;
}

.session-meta-fields {
    padding: 12px;
}

.session-meta-fields p {
    margin-bottom: 15px;
}

.session-meta-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.session-meta-fields input[type="date"],
.session-meta-fields input[type="time"],
.session-meta-fields select {
    width: 100%;
    max-width: 300px;
    padding: 6px;
}

.session-meta-fields select {
    height: 35px;
}

/* Status colors */
.session-status-indicator {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.status-scheduled {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled {
    background-color: #ffebee;
    color: #c62828;
}

/* Case association meta box */
#case_association .inside {
    margin: 0;
    padding: 12px;
}

#case_association select {
    width: 100%;
    margin-top: 5px;
}

/* Sessions list table customization */
.column-session_date,
.column-session_time,
.column-session_type,
.column-session_status {
    width: 15%;
}

.column-associated_case {
    width: 20%;
}
















.status-cell.pending {
    background: #f3f4f6;
}

.modules-field {
    margin-bottom: 20px;
}

.modules-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.module-list {
    margin-left: 10px;
}

.module-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 5px;
}

.module-item:hover {
    background: #f8f9fa;
    border-radius: 4px;
}

.bullet {
    margin-right: 8px;
    color: #0073aa;
}

.module-name {
    flex-grow: 1;
}

.edit-button {
    visibility: hidden;
    background: none;
    border: none;
    padding: 2px 5px;
    color: #0073aa;
    cursor: pointer;
}

.module-item:hover .edit-button {
    visibility: visible;
}

.add-module-button {
    margin-top: 10px;
    background: #0073aa;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 20px;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 20px;
    cursor: pointer;
}

.module-selector {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.module-option {
    display: block;
    padding: 5px 0;
}

.save-modules-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}



















/* Add to your dashboard.css */
.status-log-section {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.status-log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.status-log-table th,
.status-log-table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.status-log-table th {
    background: #e9ecef;
    font-weight: 600;
}

.status-log-table tr:nth-child(even) {
    background: #ffffff;
}

.status-cell {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-cell.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-cell.started {
    background-color: #d4edda;
    color: #155724;
}





.case-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.case-details, .associated-user {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.case-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background-color: #fff;
}

.form-group input[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
}

.client-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.associated-user h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.user-status {
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    padding: 0.5rem 0;
}

.info-row label {
    font-weight: 500;
    color: #374151;
}

.modules-section {
    margin-top: 1.5rem;
}

.modules-section h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.module-item:last-child {
    border-bottom: none;
}

.edit-module {
    background: none;
    border: none;
    color: #0ea5e9;
    cursor: pointer;
    padding: 0.25rem;
}

.delete-user {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.delete-user:hover {
    background: #dc2626;
}
















.single-case-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.back-to-cases {
    color: #1c3144;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.875rem;
}

.form-group input:read-only {
    background-color: #f9fafb;
    cursor: not-allowed;
}

input[type="checkbox"] {
    cursor: pointer !important;
}

input.fixed-checkbox {
    cursor: pointer !important;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.save-button {
    padding: 0.75rem 1.5rem;
    background: #1c3144;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-button:hover {
    background: #2c4154;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}











.text-center {
    text-align: center;
}

.filter-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.text-red-600 {
    color: #dc2626;
}

.cases-table td[colspan="8"] {
    padding: 2rem;
}

.cases-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    min-width: 150px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.filter-button {
    padding: 0.75rem 1.5rem;
    background: #1c3144;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-button:hover {
    background: #2c4154;
}

.cases-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cases-table th,
.cases-table td {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.cases-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1c3144;
}

.cases-table tr:nth-child(even) {
    background: #f8fafc;
}

.status-cell {
    font-weight: 500;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}



.ocoaching-dashboard {
    display: flex;
    min-height: 600px;
    background: #fff;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 2rem;
    border-right: 1px solid #e9ecef;
    border-radius: 8px 0 0 8px;
}

.user-info {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.user-info h3 {
    margin: 0 0 0.5rem;
    color: #333;
}

.user-info h4 {
    margin: 0 0 0.5rem;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-role {
    color: #6c757d;
    margin: 0;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 0.5rem;
}

.dashboard-menu .menu-item-ocoaching {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-menu .menu-item-ocoaching:hover,
.dashboard-menu .menu-item-ocoaching.active {
    background: #e9ecef;
    color: #212529;
}

.dashboard-menu .logout-link {
    color: #dc3545;
}

.dashboard-menu .logout-link:hover {
    background: #dc3545;
    color: #fff;
}

.dashboard-menu .dashicons {
    margin-right: 0.5rem;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
}

/*.dashboard-section {*/
/*    display: none;*/
/*}*/

/*.dashboard-section.active {*/
/*    display: block;*/
/*}*/

.modules-list {
    width: 100%;
}

.module-block {
    display: block;
  border: 1px solid #ccc;
  width: 22%;
  border-radius: 10px;
  padding: 10px;
  float: left;
  margin: 5px 5px 10px 10px;
}

.module-sections a {
    display: block;
}

/* Rest of your existing CSS for forms and messages */

.ocoaching-dashboard {
    display: flex;
    min-height: 600px;
    background: #fff;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 2rem;
    border-right: 1px solid #e9ecef;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 0.5rem;
}

.dashboard-menu .menu-item-ocoaching {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-menu .menu-item-ocoaching:hover {
    background: #e9ecef;
}

.dashboard-menu .menu-item-ocoaching.active {
    background: #e9ecef;
    color: #0073aa;
}

/* Hide sections by default */
/*.dashboard-section {*/
/*    display: none;*/
/*}*/

/* Additional styles for your form elements remain the same */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.module-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.module-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.module-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-content {
    padding: 1.5rem;
}

.module-content h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.module-content h3 a {
    color: #333;
    text-decoration: none;
}

.module-content h3 a:hover {
    color: #0073aa;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 1rem;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-info {
    background: #e3f2fd;
    color: #0288d1;
}

.badge-secondary {
    background: #f5f5f5;
    color: #616161;
}

.module-access-badge {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Cases styles */
.cases-container {
    padding: 20px;
}

.cases-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    padding: 8px 16px;
    background: #1c3144;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.cases-filters {
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.filter-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cases-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cases-table th,
.cases-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.module-header {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #1c3144;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #2c4154;
    transform: translateX(-5px);
}

.back-button .dashicons {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.2;
}

.cases-table tr:nth-child(even) {
    background: #f9f9f9;
}

        .cases-container {
            padding: 2rem;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .cases-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .cases-filters {
            margin-bottom: 2rem;
        }

        .search-input {
            width: 100%;
            padding: 0.75rem;
            margin-bottom: 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
        }

        .filter-controls {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .filter-select {
            padding: 0.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            min-width: 150px;
        }

        .filter-button {
            padding: 0.5rem 1rem;
            background: #1c3144;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .cases-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 2rem;
        }

        .cases-table th,
        .cases-table td {
            padding: 1rem;
            border: 1px solid #e2e8f0;
            text-align: left;
        }

        .cases-table th {
            background: #f8fafc;
            font-weight: 600;
        }

        .cases-table tr:nth-child(even) {
            background: #f8fafc;
        }

        .cases-pagination {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }

        .cases-pagination a {
            padding: 0.5rem 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            text-decoration: none;
            color: #1c3144;
        }

        .cases-pagination .current {
            background: #1c3144;
            color: white;
        }

        .status-filter {
            text-decoration: none;
            color: #1c3144;
        }

        .status-filter.active {
            font-weight: bold;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    
    .case-requests-table thead {
        display: none;
    }

    .case-requests-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #fff;
    }

    .case-requests-table tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    .case-requests-table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: 600;
    }

    .case-requests-table tbody td:last-child {
        border-bottom: none;
    }

    .case-requests-table .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .notifications-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notifications-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-field {
        min-width: auto;
    }

    .module-filters {
        flex-direction: column;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .module-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }

    .client-details {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
                flex-direction: column;
            }

            .filter-select {
                width: 100%;
            }

            .cases-table {
                display: block;
                overflow-x: auto;
            }
            
            
             .filter-controls {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }
}