/* ================================
   LMS - Global Styles
   ================================ */

:root {
    --primary-color: #4f46e5;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --success-color: #10b981;
    --student-color: #3b82f6;
    --instructor-color: #8b5cf6;
    --admin-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    pointer-events: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* ================================
   Login Page Styles
   ================================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
}

/* Custom select dropdown styling - Force override Safari defaults */
.form-group select,
select.form-control,
select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: white !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    /* Safari specific - force no native styling */
    border: 1px solid var(--border-color) !important;
    text-rendering: auto !important;
    -webkit-rtl-ordering: logical !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-indent: 0px !important;
    text-shadow: none !important;
    display: inline-block !important;
    text-align: start !important;
    -webkit-writing-mode: horizontal-tb !important;
    writing-mode: horizontal-tb !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Form control and label classes for standalone forms */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
    color: var(--dark-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.button-group .btn {
    width: 100%;
    display: flex;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
    line-height: 1.5;
    box-sizing: border-box;
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-student {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-student:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-instructor {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.btn-instructor:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-secondary {
    background-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-info {
    background-color: var(--info-color);
}

.btn-info:hover {
    background-color: #2563eb;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
}

.btn + .btn {
    margin-left: 8px;
}

.button-group .btn + .btn {
    margin-left: 0;
}

.footer {
    text-align: center;
    margin-top: 24px;
    color: white;
    font-size: 14px;
}

/* ================================
   Dashboard Layout
   ================================ */

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--dark-color);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    pointer-events: auto;
}

.sidebar-header {
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-header img {
    margin-bottom: 4px !important;
}

.sidebar-header p {
    margin-top: 4px !important;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu svg {
    width: 20px;
    height: 20px;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    background-color: var(--light-color);
}

.topbar {
    background-color: white;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left h1 {
    font-size: 24px;
    color: var(--dark-color);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s;
}

.notification-icon:hover {
    opacity: 0.7;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
}

.content-area {
    padding: 32px;
}

/* ================================
   Cards & Stats
   ================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-card-title {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* ================================
   Tables
   ================================ */

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: var(--light-color);
}

table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
    border-bottom: 2px solid var(--border-color);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

table tbody tr:hover {
    background-color: var(--light-color);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-primary {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* ================================
   iOS Date Input Fix
   ================================ */
/* Fix for iOS Safari date input overflow and styling issues */
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    min-height: 38px;
    padding-right: 40px !important; /* Space for iOS date picker icon */
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    input[type="date"] {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Ensure the input respects parent container width */
    input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
        min-width: 0;
        max-width: calc(100% - 40px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Style the calendar icon on iOS */
    input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        opacity: 0.7;
        padding: 4px;
        background: none;
        width: 20px;
        height: 20px;
    }
    
    input[type="date"]::-webkit-calendar-picker-indicator:hover {
        opacity: 1;
    }
}

/* Additional fix for iPad specifically */
@media (pointer: coarse) {
    input[type="date"] {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 8px 40px 8px 12px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
}

/* ================================
   Progress Bars
   ================================ */

.progress-container {
    margin: 12px 0;
}

.progress-bar-wrapper {
    width: 100%;
    height: 24px;
    background-color: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 6px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* Percentage text centered on the entire bar */
.progress-bar-wrapper::after {
    content: attr(data-percentage);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-label {
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
}

/* ================================
   Modal
   ================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Compact form styling for modals */
.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group label {
    margin-bottom: 4px;
    font-size: 13px;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    padding: 8px 12px;
    font-size: 13px;
    background-color: white;
}

/* Ensure modal selects also get custom dropdown arrow - Force override */
.modal-body .form-group select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: white !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 36px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    text-rendering: auto !important;
}

.modal-body .form-group small {
    font-size: 11px;
    color: #6b7280;
    display: block;
    margin-top: 4px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ================================
   Utilities
   ================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ================================
   Alert Modal (Global)
   ================================ */

.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.alert-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.alert-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.alert-message {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.alert-button:hover {
    background-color: #4338ca;
}

/* ================================
   Responsive Utilities
   ================================ */

/* Make images responsive by default */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive table wrapper */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Text utilities for responsive */
.text-mobile-center {
    text-align: left;
}

.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

/* Flexible containers */
.flex-mobile-column {
    display: flex;
}

/* ================================
   Responsive
   ================================ */

/* Tablet (iPad) - 768px to 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Sidebar adjustments - Use hamburger menu like mobile */
    .sidebar {
        width: 70px;
        transition: width 0.3s ease;
        z-index: 999;
    }
    
    .sidebar:hover {
        width: 260px;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar-header h2,
    .sidebar-menu span {
        display: none;
        opacity: 0;
        transition: opacity 0.2s;
    }
    
    .sidebar:hover .sidebar-header h2,
    .sidebar:hover .sidebar-menu span {
        display: block;
        opacity: 1;
    }
    
    .sidebar-header {
        padding: 20px 10px;
        text-align: center;
    }
    
    .sidebar:hover .sidebar-header {
        padding: 24px 20px;
        text-align: left;
    }
    
    .sidebar-menu a {
        justify-content: center;
        padding: 14px 10px;
    }
    
    .sidebar:hover .sidebar-menu a {
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    .sidebar-menu svg {
        margin: 0 auto;
    }
    
    .sidebar:hover .sidebar-menu svg {
        margin: 0;
    }
    
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    
    .content-area {
        padding: 24px;
    }
    
    /* Grid layouts */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Topbar - optimize for iPad */
    .topbar {
        padding: 12px 20px;
    }
    
    .topbar-left h1 {
        font-size: 18px;
    }
    
    .user-info {
        gap: 10px;
    }
    
    .user-info span {
        font-size: 13px;
    }
    
    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .btn-logout {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Form controls */
    .form-control,
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Modals */
    .modal-content {
        max-width: 90%;
        width: 90%;
    }
    
    /* Tables */
    table {
        font-size: 13px;
    }
    
    table th {
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    table td {
        padding: 10px 14px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Progress bars in tables */
    table td .progress-container,
    table td .progress-bar-wrapper {
        min-width: 150px;
    }
    
    .progress-bar-wrapper {
        height: 22px;
    }
    
    .progress-bar-wrapper::after {
        font-size: 11px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    /* Filter sections and search forms */
    .card-body .flex.gap-2,
    .card-body .flex.align-center {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .card-body .form-group {
        min-width: 200px;
        flex: 1 1 auto;
    }
    
    .card-body .form-group[style*="width: 200px"] {
        width: auto !important;
        min-width: 180px;
    }
    
    /* Page header with multiple buttons */
    .content-area > .flex.justify-between {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .content-area > .flex.justify-between h1 {
        font-size: 20px;
    }
    
    .content-area > .flex.justify-between > .flex.gap-2 .btn {
        min-width: 140px;
    }
    
    /* Course cards with stacked buttons */
    .courses-grid .card .btn,
    .modules-grid .card .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .courses-grid .card .btn:last-child,
    .modules-grid .card .btn:last-child {
        margin-bottom: 0;
    }
}

/* Mobile & Small Tablets - Up to 768px */
@media (max-width: 768px) {
    /* ===== UTILITY CLASSES ===== */
    .text-mobile-center {
        text-align: center;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .flex-mobile-column {
        flex-direction: column;
    }
    
    /* ===== SIDEBAR ===== */
    .sidebar {
        width: 70px;
        transition: width 0.3s ease;
        z-index: 999;
    }
    
    .sidebar:hover {
        width: 260px;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar-header h2,
    .sidebar-menu span {
        display: none;
        opacity: 0;
        transition: opacity 0.2s;
    }
    
    .sidebar:hover .sidebar-header h2,
    .sidebar:hover .sidebar-menu span {
        display: block;
        opacity: 1;
    }
    
    .sidebar-header {
        padding: 20px 10px;
        text-align: center;
    }
    
    .sidebar:hover .sidebar-header {
        padding: 24px 20px;
        text-align: left;
    }
    
    .sidebar-menu a {
        justify-content: center;
        padding: 14px 10px;
    }
    
    .sidebar:hover .sidebar-menu a {
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    .sidebar-menu svg {
        margin: 0 auto;
    }
    
    .sidebar:hover .sidebar-menu svg {
        margin: 0;
    }
    
    /* ===== MAIN CONTENT ===== */
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    
    .content-area {
        padding: 16px;
    }
    
    /* ===== TOPBAR ===== */
    .topbar {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .topbar-left {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }
    
    .topbar-left h1 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }
    
    .topbar-right {
        gap: 8px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .user-info {
        gap: 6px;
    }
    
    .user-info span {
        display: none;
    }
    
    .user-info .user-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .notification-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* Logout button in topbar */
    .topbar .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 38px;
    }
    
    /* ===== BUTTONS ===== */
    .btn {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .btn-sm {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-group .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Page header buttons */
    .content-area > .flex.justify-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }
    
    .content-area > .flex.justify-between h1 {
        text-align: center;
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .content-area > .flex.justify-between > .flex.gap-2 {
        flex-direction: column !important;
        width: 100%;
    }
    
    .content-area > .flex.justify-between > .flex.gap-2 .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* ===== FORM CONTROLS ===== */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label,
    .form-label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-control {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Date input specific */
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"] {
        font-size: 16px;
        padding: 10px 14px;
    }
    
    /* Inline form groups (like date + button) */
    .flex.items-center,
    .flex.align-items-center {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .flex.items-center > *,
    .flex.align-items-center > * {
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    .flex.items-center .btn,
    .flex.align-items-center .btn {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    /* Filter sections - stack vertically on mobile */
    .card-body .flex.gap-2.align-center {
        flex-direction: column;
        align-items: stretch;
    }
    
    .card-body .flex.gap-2.align-center .form-group {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .card-body .flex.gap-2.align-center .btn {
        width: 100%;
        margin-top: 4px;
    }
    
    /* ===== GRIDS ===== */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .courses-grid,
    .modules-grid,
    #coursesGrid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    /* Override inline styles for responsive grid */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* ===== FLEX LAYOUTS ===== */
    .flex {
        flex-direction: column !important;
    }
    
    .flex.gap-2,
    .flex.gap-3,
    .flex.gap-4 {
        gap: 10px !important;
    }
    
    .flex.gap-1 {
        gap: 8px !important;
    }
    
    /* Quick actions and button groups */
    .card-body .flex {
        display: flex;
        flex-direction: column;
    }
    
    .card-body .flex .btn,
    .card-body .flex.gap-1 .btn {
        width: 100%;
        margin: 0 0 8px 0;
    }
    
    .card-body .flex .btn:last-child,
    .card-body .flex.gap-1 .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Course/Module cards - stack all buttons */
    .courses-grid .card .btn,
    .modules-grid .card .btn,
    .courses-grid .card .flex .btn,
    .modules-grid .card .flex .btn {
        width: 100% !important;
        display: block;
        margin: 0 0 8px 0 !important;
    }
    
    .courses-grid .card .btn:last-child,
    .modules-grid .card .btn:last-child,
    .courses-grid .card .flex .btn:last-child,
    .modules-grid .card .flex .btn:last-child {
        margin-bottom: 0 !important;
    }
    
    /* ===== CARDS ===== */
    .card {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .card-header {
        padding: 14px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-header h2,
    .card-header h3,
    .card-title {
        font-size: 17px;
        margin: 0;
        word-break: break-word;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Badge containers */
    .card-body .mb-2,
    .card-body div[class*="mb-"] {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .badge {
        font-size: 11px;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    .stat-card-title {
        font-size: 12px;
    }
    
    .stat-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* ===== TABLES ===== */
    table {
        font-size: 12px;
        display: table;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    table thead,
    table tbody {
        display: table-header-group;
    }
    
    table tbody {
        display: table-row-group;
    }
    
    table tr {
        display: table-row;
    }
    
    table th {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
        vertical-align: middle;
    }
    
    table td {
        padding: 10px 8px;
        font-size: 12px;
        white-space: normal;
        word-wrap: break-word;
        vertical-align: middle;
    }
    
    /* First column (Role/Name) gets more space */
    table th:first-child,
    table td:first-child {
        min-width: 80px;
    }
    
    /* Middle columns get equal space */
    table th:nth-child(2),
    table td:nth-child(2) {
        text-align: center;
    }
    
    /* Last column (Progress/Actions) gets remaining space */
    table th:last-child,
    table td:last-child {
        min-width: 120px;
    }
    
    /* For tables with 3 or fewer columns, show all */
    table th:nth-child(-n+3),
    table td:nth-child(-n+3) {
        display: table-cell !important;
    }
    
    /* Hide less important columns on mobile for larger tables */
    table th:nth-child(n+5):not(:last-child),
    table td:nth-child(n+5):not(:last-child) {
        display: none;
    }
    
    /* Keep first 4 columns visible */
    table th:nth-child(-n+4),
    table td:nth-child(-n+4) {
        display: table-cell;
    }
    
    /* Make action column always visible but remove sticky on mobile */
    table th:last-child,
    table td:last-child {
        display: table-cell !important;
    }
    
    /* Progress bars in tables need more space */
    table td .progress-container,
    table td .progress-bar-wrapper {
        min-width: 100px;
        max-width: 150px;
    }
    
    /* Hide scroll indicators/arrows in tables */
    table::after,
    table tbody::after,
    .table-container::after,
    .data-table::after {
        display: none !important;
    }
    
    .data-table,
    .table-container,
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 16px;
        border-radius: 8px;
        position: relative;
    }
    
    /* Table action buttons */
    table .btn {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
        white-space: nowrap;
    }
    
    /* ===== MODALS ===== */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-body .form-group {
        margin-bottom: 14px;
    }
    
    .modal-body .form-group input,
    .modal-body .form-group select,
    .modal-body .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .modal-footer {
        padding: 16px;
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* ===== BADGES ===== */
    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* ===== ALERTS ===== */
    .alert {
        padding: 12px 14px;
        font-size: 14px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    /* ===== LOGIN PAGE ===== */
    .login-container {
        max-width: 100%;
        padding: 16px;
    }
    
    .login-box {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .login-form-container .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* ===== NOTIFICATIONS ===== */
    .notification-badge {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    /* ===== PROGRESS BARS ===== */
    .progress-bar-wrapper {
        height: 20px;
        min-width: 120px;
    }
    
    .progress-bar {
        height: 100%;
    }
    
    .progress-bar-wrapper::after {
        font-size: 11px;
    }
    
    .progress-container {
        min-width: 120px;
        margin: 0;
    }
    
    /* ===== SEARCH BOXES ===== */
    .search-box input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 14px;
    }
    
    /* ===== QUIZ AND CONTENT ===== */
    .quiz-container,
    .content-viewer,
    .module-content {
        padding: 16px;
    }
    
    .quiz-question {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    /* ===== FILE UPLOADS ===== */
    .file-upload {
        padding: 20px;
        font-size: 14px;
    }
    
    /* ===== PAGINATION ===== */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Very small mobile devices - Up to 480px */
@media (max-width: 480px) {
    /* ===== BASE ===== */
    body {
        font-size: 14px;
    }
    
    /* ===== TOPBAR ===== */
    .topbar {
        padding: 10px 12px;
    }
    
    .topbar-left h1 {
        font-size: 14px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .notification-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .topbar .btn {
        padding: 7px 14px;
        font-size: 12px;
        min-height: 36px;
    }
    
    /* ===== CONTENT ===== */
    .content-area {
        padding: 12px;
    }
    
    /* ===== GRIDS ===== */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* ===== CARDS ===== */
    .card {
        border-radius: 10px;
    }
    
    .card-header {
        padding: 12px 14px;
    }
    
    .card-header h2,
    .card-title {
        font-size: 16px;
    }
    
    .card-body {
        padding: 14px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-card-value {
        font-size: 22px;
    }
    
    .stat-card-title {
        font-size: 11px;
    }
    
    .stat-card-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-card-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* ===== BUTTONS ===== */
    .btn {
        padding: 11px 16px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .btn-icon {
        width: 16px;
        height: 16px;
    }
    
    /* ===== FORMS ===== */
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group label,
    .form-label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-control {
        padding: 11px 12px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    /* ===== TABLES ===== */
    table {
        font-size: 11px;
    }
    
    table th {
        padding: 8px 5px;
        font-size: 11px;
        white-space: nowrap;
        vertical-align: middle;
    }
    
    table td {
        padding: 8px 5px;
        font-size: 11px;
        white-space: normal;
        word-wrap: break-word;
        vertical-align: middle;
    }
    
    /* Adjust column widths for very small screens */
    table th:first-child,
    table td:first-child {
        min-width: 70px;
    }
    
    table th:nth-child(2),
    table td:nth-child(2) {
        text-align: center;
    }
    
    table th:last-child,
    table td:last-child {
        min-width: 100px;
    }
    
    /* Progress bars on very small screens */
    table td .progress-container,
    table td .progress-bar-wrapper {
        min-width: 90px;
        max-width: 120px;
    }
    
    .progress-bar-wrapper {
        height: 18px;
    }
    
    .progress-bar-wrapper::after {
        font-size: 10px;
    }
    
    /* Hide even more columns on very small screens */
    table th:nth-child(n+4),
    table td:nth-child(n+4) {
        display: none;
    }
    
    /* Keep first 3 columns and last (action) column */
    table th:nth-child(-n+3),
    table td:nth-child(-n+3),
    table th:last-child,
    table td:last-child {
        display: table-cell !important;
    }
    
    table .btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* ===== MODALS ===== */
    .modal-content {
        width: 98%;
        margin: 5px;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 12px 14px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 12px 14px;
    }
    
    .modal-footer {
        padding: 12px 14px;
    }
    
    /* ===== LOGIN PAGE ===== */
    .login-container {
        padding: 12px;
    }
    
    .login-box {
        padding: 20px 16px;
        border-radius: 10px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .login-form-container .btn {
        padding: 13px 18px;
        font-size: 14px;
    }
    
    /* ===== BADGES ===== */
    .badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* ===== ALERTS ===== */
    .alert {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    /* ===== SIDEBAR ===== */
    .sidebar-menu a {
        padding: 12px 8px;
    }
    
    .sidebar:hover .sidebar-menu a {
        padding: 10px 16px;
    }
    
    /* ===== NOTIFICATIONS ===== */
    .notification-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* ===== PAGINATION ===== */
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
        min-height: 32px;
    }
    
    /* ===== SEARCH ===== */
    .search-box input {
        padding: 9px 12px;
        font-size: 14px;
    }
    
    /* ===== QUIZ ===== */
    .quiz-question {
        padding: 12px;
    }
    
    .quiz-options label {
        padding: 10px;
        font-size: 14px;
    }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .login-page {
        padding: 20px 0;
        min-height: 100vh;
    }
    
    .login-box {
        margin: 20px 0;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .sidebar {
        width: 60px;
    }
    
    .sidebar:hover {
        width: 240px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .topbar {
        padding: 8px 16px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* ===== TOUCH TARGETS ===== */
    /* Ensure all interactive elements are at least 44x44px for touch */
    .btn,
    button,
    a.btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }
    
    .btn-sm {
        min-height: 36px;
        min-width: 36px;
    }
    
    /* Links in sidebar */
    .sidebar-menu a {
        padding: 14px 20px;
        min-height: 48px;
    }
    
    /* Form controls */
    input,
    select,
    textarea,
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Checkboxes and radios */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }
    
    /* Table action buttons */
    table .btn {
        min-height: 36px;
        padding: 8px 14px;
    }
    
    /* ===== REMOVE HOVER EFFECTS ===== */
    .sidebar-menu a:hover {
        background-color: transparent;
    }
    
    .sidebar-menu a.active {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Add active/tap states instead */
    .btn:active,
    button:active,
    a:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .sidebar-menu a:active {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* ===== SCROLLING ===== */
    /* Smooth scrolling for touch */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* ===== PREVENT DOUBLE-TAP ZOOM ===== */
    a,
    button,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }
    
    /* ===== DROPDOWN/SELECT IMPROVEMENTS ===== */
    select {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-color: white !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 12px !important;
        padding-right: 40px !important;
        cursor: pointer !important;
        border-radius: 8px !important;
        -webkit-border-radius: 8px !important;
        text-rendering: auto !important;
    }
}

/* ===== DRAG AND DROP STYLES ===== */
.content-item {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.content-item.dragging {
    opacity: 0.4;
}

.drag-handle {
    cursor: move;
    user-select: none;
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: #4f46e5 !important;
}

.content-item:hover .drag-handle {
    color: #6b7280 !important;
}

/* ===== PREVIEW MODAL ENHANCEMENTS ===== */
.modal .image-content-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.modal .content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95% !important;
        margin: 20px auto;
    }
    
    /* ===== MODAL IMPROVEMENTS ===== */
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* iPad Pro and larger tablets in landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iPad in portrait mode specific */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 85%;
    }
    
    table {
        font-size: 14px;
    }
}

/* ===== MENU TOGGLE BUTTON (Hidden by default, shown on tablets and mobile) ===== */
.menu-toggle {
    display: none;
}

.sidebar-overlay {
    display: none;
}

/* Hide mobile labels on desktop */
.mobile-label {
    display: none;
}

/* ===== iPAD/TABLET/MOBILE OPTIMIZATIONS ===== */
/* Show hamburger menu and card layouts on all non-desktop devices including iPad landscape */
@media (max-width: 1366px) {
    /* Show mobile labels on iPad/mobile */
    .mobile-label {
        display: inline;
    }
    
    /* Floating Menu Toggle Button - In Topbar */
    .menu-toggle {
        display: flex !important;
        position: relative;
        top: auto;
        left: auto;
        z-index: auto;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
    }
    
    .menu-toggle:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }
    
    .menu-toggle:active {
        background: #e5e7eb;
    }
    
    .menu-toggle svg {
        width: 20px;
        height: 20px;
        stroke: #374151;
        stroke-width: 2;
    }
    
    /* Topbar adjustments for menu button */
    .topbar {
        padding-left: 20px;
    }
    
    .topbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .topbar-left h1 {
        font-size: 20px;
    }
    
    /* Sidebar - Start completely hidden off-screen */
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
        width: 260px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Override desktop hover behavior - always show text on tablets */
    .sidebar {
        width: 260px !important;
    }
    
    .sidebar-header h2,
    .sidebar-menu span {
        display: block !important;
        opacity: 1 !important;
    }
    
    .sidebar-header {
        padding: 24px 20px !important;
        text-align: left !important;
    }
    
    /* Force left alignment for menu items */
    .sidebar-menu a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 14px 20px !important;
        gap: 12px !important;
    }
    
    .sidebar-menu svg {
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    .sidebar-menu span {
        text-align: left !important;
        white-space: nowrap !important;
    }
    
    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Quick Actions - 2x2 Grid with equal sizing */
    .flex.gap-2 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .flex.gap-2 .btn {
        width: 100%;
        height: 56px;
        justify-content: center;
        padding: 14px 16px;
        font-size: 14px;
        display: flex;
        align-items: center;
    }
    
    /* Fix user avatar alignment */
    .user-avatar {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Email Logs Table - Responsive */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 100%;
        font-size: 13px;
    }
    
    table th,
    table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    /* Make email columns wrap */
    table td:nth-child(2),
    table td:nth-child(3) {
        white-space: normal;
        word-break: break-word;
        max-width: 150px;
        min-width: 120px;
    }
    
    /* Send Email Buttons - All in one row, left-aligned */
    .send-to-options {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
    }
    
    .send-to-option {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        padding: 10px 12px !important;
        min-height: auto !important;
        font-size: 13px !important;
        text-align: left !important;
    }
    
    .send-to-option svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Course Management Buttons - Horizontal Layout */
    .course-card .button-group {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: nowrap;
    }
    
    .course-card .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .course-card .btn svg {
        display: none;
    }
    
    /* Fix dropdown on Safari/iPad */
    select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-color: white !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 14px !important;
        padding-right: 40px !important;
        cursor: pointer !important;
        border-radius: 8px !important;
        -webkit-border-radius: 8px !important;
        text-rendering: auto !important;
        border: 1px solid #e5e7eb !important;
        padding: 12px 40px 12px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    /* Stats Grid - 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    
    /* Modal adjustments */
    .modal-content {
        max-width: 90%;
        margin: 30px auto;
    }
    
    /* Form improvements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on focus in iOS/iPadOS */
        min-height: 44px;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 20px;
    }
    
    /* Button groups in cards */
    .card-body .flex.gap-2,
    .card-body .button-group {
        flex-wrap: wrap;
    }
    
    /* Email Logs - Prevent horizontal scroll and 50/50 layout */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Email logs table - reduce column widths */
    .table thead th {
        font-size: 13px !important;
        padding: 10px 8px !important;
        white-space: nowrap;
    }
    
    .table tbody td {
        font-size: 13px !important;
        padding: 10px 8px !important;
        word-wrap: break-word;
        max-width: 150px;
    }
    
    /* Email logs filter fields - 50/50 layout */
    .card .row.g-3 .col-md-3,
    .card .row.g-3 .col-md-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Stack subject field on its own row */
    .card .row.mt-3 .col-md-6:first-child {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px;
    }
    
    /* Buttons on their own row */
    .card .row.mt-3 .col-md-6:last-child {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .card .row.mt-3 .d-flex {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .card .row.mt-3 .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* User Management Page - Button alignment and table fixes */
    .content-area > .flex.justify-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .content-area > .flex.justify-between h1 {
        margin-bottom: 0;
        width: 100%;
    }
    
    .content-area > .flex.justify-between .flex.gap-2 {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    
    .content-area > .flex.justify-between .flex.gap-2 .btn {
        width: 100% !important;
        justify-content: center;
        align-items: center;
        padding: 14px 16px !important;
        font-size: 14px;
        display: flex !important;
        height: 52px;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .content-area > .flex.justify-between .flex.gap-2 .btn svg {
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    /* Card-based list view for tables on tablets */
    .table-responsive {
        overflow: visible !important;
    }
    
    .table-responsive table {
        display: block !important;
    }
    
    .table-responsive thead {
        display: none !important;
    }
    
    .table-responsive tbody {
        display: block !important;
    }
    
    .table-responsive tr {
        display: block !important;
        background: white;
        border: none;
        border-radius: 20px;
        padding: 32px;
        margin-bottom: 24px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .table-responsive td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        margin-bottom: 24px !important;
        border: none !important;
        font-size: 16px !important;
        background: transparent !important;
    }
    
    .table-responsive td:last-child {
        margin-bottom: 0 !important;
    }
    
    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #7c3aed;
        font-size: 14px;
        text-transform: none;
        letter-spacing: 0;
        display: block;
        margin-bottom: 8px;
    }
    
    /* Primary field (Student/Name) - large purple text */
    .table-responsive td[data-label="Student"],
    .table-responsive td[data-label="Name"] {
        font-weight: 700;
        color: #7c3aed !important;
        font-size: 32px !important;
        line-height: 1.2;
        margin-bottom: 20px !important;
    }
    
    .table-responsive td[data-label="Student"]::before,
    .table-responsive td[data-label="Name"]::before {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    /* Email field - regular text */
    .table-responsive td[data-label="Email"] {
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    .table-responsive td[data-label="Email"]::before {
        color: #7c3aed;
    }
    
    /* Course, Instructor, Class Date fields */
    .table-responsive td[data-label="Course"],
    .table-responsive td[data-label="Instructor"],
    .table-responsive td[data-label="Class Date"] {
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    .table-responsive td[data-label="Course"]::before,
    .table-responsive td[data-label="Instructor"]::before,
    .table-responsive td[data-label="Class Date"]::before {
        color: #7c3aed;
    }
    
    /* Actions row - Simple button aligned right */
    .table-responsive td[data-label="Actions"] {
        padding: 0 !important;
        border: none !important;
        background: transparent;
    }
    
    .table-responsive td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive td[data-label="Actions"] .flex,
    .table-responsive td[data-label="Actions"] > div {
        display: flex !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: 100%;
    }
    
    .table-responsive td[data-label="Actions"] .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-radius: 6px !important;
        white-space: nowrap;
        border: 2px solid #1f2937 !important;
        background: transparent !important;
        color: #1f2937 !important;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
    }
    
    .table-responsive td[data-label="Actions"] .btn:hover {
        background: #1f2937 !important;
        color: white !important;
    }
    
    /* Filter section - stack elements */
    .card .flex.gap-2.align-center {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .card .flex.gap-2.align-center .form-group {
        width: 100% !important;
        flex: none !important;
    }
    
    .card .flex.gap-2.align-center .btn {
        width: 100%;
    }
    
    /* Course Cards - Action buttons in one row */
    .card-body .flex.gap-1 {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    
    .card-body .flex.gap-1 .btn {
        flex: 1 !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    
    /* Students by Class Date - Simple vertical layout matching new design */
    .table-responsive tbody#students-by-date tr,
    .table-responsive tbody#todays-students tr,
    .table-responsive #students-by-date tr,
    .table-responsive #todays-students tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: block !important;
    }
    
    /* Student Name - Large text at top */
    .table-responsive tbody#students-by-date td[data-label="Student"],
    .table-responsive tbody#todays-students td[data-label="Student"],
    .table-responsive #students-by-date td[data-label="Student"],
    .table-responsive #todays-students td[data-label="Student"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
    }
    
    .table-responsive tbody#students-by-date td[data-label="Student"]::before,
    .table-responsive tbody#todays-students td[data-label="Student"]::before,
    .table-responsive #students-by-date td[data-label="Student"]::before,
    .table-responsive #todays-students td[data-label="Student"]::before {
        display: none !important;
    }
    
    /* Email - Smaller text below name, with bottom border */
    .table-responsive tbody#students-by-date td[data-label="Email"],
    .table-responsive tbody#todays-students td[data-label="Email"],
    .table-responsive #students-by-date td[data-label="Email"],
    .table-responsive #todays-students td[data-label="Email"] {
        color: #1f2937 !important;
        font-size: 15px !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
    }
    
    .table-responsive tbody#students-by-date td[data-label="Email"]::before,
    .table-responsive tbody#todays-students td[data-label="Email"]::before,
    .table-responsive #students-by-date td[data-label="Email"]::before,
    .table-responsive #todays-students td[data-label="Email"]::before {
        display: none !important;
    }
    
    /* Course - Below separator with inline label */
    .table-responsive tbody#students-by-date td[data-label="Course"],
    .table-responsive tbody#todays-students td[data-label="Course"],
    .table-responsive #students-by-date td[data-label="Course"],
    .table-responsive #todays-students td[data-label="Course"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
    }
    
    .table-responsive tbody#students-by-date td[data-label="Course"]::before,
    .table-responsive tbody#todays-students td[data-label="Course"]::before,
    .table-responsive #students-by-date td[data-label="Course"]::before,
    .table-responsive #todays-students td[data-label="Course"]::before {
        content: "Course: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Class Date - Below course with inline label */
    .table-responsive tbody#students-by-date td[data-label="Class Date"],
    .table-responsive tbody#todays-students td[data-label="Class Date"],
    .table-responsive #students-by-date td[data-label="Class Date"],
    .table-responsive #todays-students td[data-label="Class Date"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
    }
    
    .table-responsive tbody#students-by-date td[data-label="Class Date"]::before,
    .table-responsive tbody#todays-students td[data-label="Class Date"]::before,
    .table-responsive #students-by-date td[data-label="Class Date"]::before,
    .table-responsive #todays-students td[data-label="Class Date"]::before {
        content: "Class date: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Instructor - Below class date with inline label */
    .table-responsive tbody#students-by-date td[data-label="Instructor"],
    .table-responsive tbody#todays-students td[data-label="Instructor"],
    .table-responsive #students-by-date td[data-label="Instructor"],
    .table-responsive #todays-students td[data-label="Instructor"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
    }
    
    .table-responsive tbody#students-by-date td[data-label="Instructor"]::before,
    .table-responsive tbody#todays-students td[data-label="Instructor"]::before,
    .table-responsive #students-by-date td[data-label="Instructor"]::before,
    .table-responsive #todays-students td[data-label="Instructor"]::before {
        content: "Instructor name: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Actions - At bottom */
    .table-responsive tbody#students-by-date td[data-label="Actions"],
    .table-responsive tbody#todays-students td[data-label="Actions"],
    .table-responsive #students-by-date td[data-label="Actions"],
    .table-responsive #todays-students td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
    
    .table-responsive tbody#students-by-date td[data-label="Actions"]::before,
    .table-responsive tbody#todays-students td[data-label="Actions"]::before,
    .table-responsive #students-by-date td[data-label="Actions"]::before,
    .table-responsive #todays-students td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#students-by-date td[data-label="Actions"] .btn,
    .table-responsive tbody#todays-students td[data-label="Actions"] .btn,
    .table-responsive #students-by-date td[data-label="Actions"] .btn,
    .table-responsive #todays-students td[data-label="Actions"] .btn {
        border: 2px solid #4338ca !important;
        background: white !important;
        color: #4338ca !important;
        padding: 12px 28px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }
    
    .table-responsive tbody#students-by-date td[data-label="Actions"] .btn:hover,
    .table-responsive tbody#todays-students td[data-label="Actions"] .btn:hover,
    .table-responsive #students-by-date td[data-label="Actions"] .btn:hover,
    .table-responsive #todays-students td[data-label="Actions"] .btn:hover {
        background: #4338ca !important;
        color: white !important;
    }
    
    /* User Management - Clean card design matching Students by Class Date */
    .table-responsive tbody#usersTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 200px !important;
    }
    
    /* Hide # column on iPad */
    .table-responsive tbody#usersTableBody td[data-label="#"] {
        display: none !important;
    }
    
    /* Name - Large text at top (full name) - Order 1 */
    .table-responsive tbody#usersTableBody td[data-label="Name"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
        padding-right: 260px !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Name"]::before {
        display: none !important;
    }
    
    /* Email - Smaller text below name with bottom border - Order 2 */
    .table-responsive tbody#usersTableBody td[data-label="Email"] {
        color: #1f2937 !important;
        font-size: 15px !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Email"]::before {
        display: none !important;
    }
    
    /* Username - Below separator with inline label - Order 3 */
    .table-responsive tbody#usersTableBody td[data-label="Username"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Username"]::before {
        content: "Username: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Last Login - Below username with inline label - Order 4 */
    .table-responsive tbody#usersTableBody td[data-label="Last Login"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Last Login"]::before {
        content: "Last login: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Status badge - Top right corner - absolutely positioned */
    .table-responsive tbody#usersTableBody td[data-label="Status"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Status"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Status"] .badge {
        font-size: 13px !important;
        padding: 6px 12px !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    /* Role badge - Next to Status badge on right side */
    .table-responsive tbody#usersTableBody td[data-label="Role"] {
        position: absolute !important;
        top: 28px !important;
        right: 118px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Role"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Role"] .badge {
        font-size: 13px !important;
        padding: 6px 12px !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    /* Actions - At bottom right - Order 7 */
    .table-responsive tbody#usersTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        order: 7 !important;
        width: 100% !important;
        margin-left: auto !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn {
        border: 2px solid currentColor !important;
        background: white !important;
        padding: 10px 18px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        flex: 0 0 auto !important;
        line-height: 1.2 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-warning {
        color: #f59e0b !important;
        border-color: #f59e0b !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-warning:hover {
        background: #f59e0b !important;
        color: white !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-secondary {
        color: #6b7280 !important;
        border-color: #6b7280 !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-secondary:hover {
        background: #6b7280 !important;
        color: white !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-success {
        color: #10b981 !important;
        border-color: #10b981 !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-success:hover {
        background: #10b981 !important;
        color: white !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-primary {
        color: #4338ca !important;
        border-color: #4338ca !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-primary:hover {
        background: #4338ca !important;
        color: white !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-danger {
        color: #dc2626 !important;
        border-color: #dc2626 !important;
    }
    
    .table-responsive tbody#usersTableBody td[data-label="Actions"] .btn-danger:hover {
        background: #dc2626 !important;
        color: white !important;
    }
    
    /* ===== ENROLLMENTS TABLE - Card Design ===== */
    .table-responsive tbody#enrollmentsTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 200px !important;
        overflow: visible !important;
    }
    
    /* Full Name - Large text at top */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Student"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
        padding-right: 200px !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Student"]::before {
        display: none !important;
    }
    
    /* Email - Below name with separator */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Email"] {
        color: #1f2937 !important;
        font-size: 15px !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Email"]::before {
        display: none !important;
    }
    
    /* Username with inline label */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Username"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Username"]::before {
        content: "Username: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Course with inline label */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Course"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Course"]::before {
        content: "Course: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Enrolled date with inline label */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Enrolled"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 5 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Enrolled"]::before {
        content: "Enrolled: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Course date with inline label */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Course date"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 6 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Course date"]::before {
        content: "Course date: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Progress badge - Leftmost */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Progress"] {
        position: absolute !important;
        top: 28px !important;
        right: 245px !important;
        padding: 6px 12px !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        width: auto !important;
        z-index: 10 !important;
        background: #fbbf24 !important;
        color: white !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Progress"][data-progress="100"] {
        background: #10b981 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Progress"][data-progress="0"] {
        background: #ef4444 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Progress"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Progress"]::after {
        content: attr(data-progress) "%" !important;
        display: inline !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Progress"] > * {
        display: none !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Progress"] .badge {
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    /* Level badge - Middle (Course) */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Level"] {
        position: absolute !important;
        top: 28px !important;
        right: 135px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Level"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Level"] .badge {
        font-size: 13px !important;
        padding: 6px 12px !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    /* Status badge - Rightmost */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Status"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Status"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Status"] .badge {
        font-size: 13px !important;
        padding: 6px 12px !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    /* Actions - Bottom right */
    .table-responsive tbody#enrollmentsTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        order: 7 !important;
        width: 100% !important;
        margin-left: auto !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Actions"] > div {
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-end !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Actions"] .btn {
        border: 2px solid currentColor !important;
        background: white !important;
        padding: 10px 18px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        flex: 0 0 auto !important;
        line-height: 1.2 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        width: auto !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Actions"] .btn-primary {
        color: #4338ca !important;
        border-color: #4338ca !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Actions"] .btn-primary:hover {
        background: #4338ca !important;
        color: white !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Actions"] .btn-danger {
        color: #dc2626 !important;
        border-color: #dc2626 !important;
    }
    
    .table-responsive tbody#enrollmentsTableBody td[data-label="Actions"] .btn-danger:hover {
        background: #dc2626 !important;
        color: white !important;
    }
    
    /* ===== QUIZ BUILDER TABLE - Card Design ===== */
    .table-responsive tbody#quizzesTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 200px !important;
        overflow: visible !important;
    }
    
    /* Quiz Name - Large text at top */
    .table-responsive tbody#quizzesTableBody td[data-label="Quiz Name"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Quiz Name"]::before {
        display: none !important;
    }
    
    /* Module - Below quiz name with separator */
    .table-responsive tbody#quizzesTableBody td[data-label="Module"] {
        color: #1f2937 !important;
        font-size: 15px !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Module"]::before {
        display: none !important;
    }
    
    /* Course with inline label */
    .table-responsive tbody#quizzesTableBody td[data-label="Course"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Course"]::before {
        content: "Course name: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Passing Score with inline label */
    .table-responsive tbody#quizzesTableBody td[data-label="Passing Score"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Passing Score"]::before {
        content: "Passing score: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Max Attempts with inline label */
    .table-responsive tbody#quizzesTableBody td[data-label="Max Attempts"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 5 !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Max Attempts"]::before {
        content: "Max attempt: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Course date - Hidden on iPad */
    .table-responsive tbody#quizzesTableBody td[data-label="Course date"] {
        display: none !important;
    }
    
    /* Actions - Bottom right */
    .table-responsive tbody#quizzesTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        order: 7 !important;
        width: 100% !important;
        margin-left: auto !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Actions"] > div {
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-end !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Actions"] .btn {
        border: 2px solid currentColor !important;
        background: white !important;
        padding: 10px 18px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        flex: 0 0 auto !important;
        line-height: 1.2 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        width: auto !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Actions"] .btn-secondary {
        color: #6b7280 !important;
        border-color: #6b7280 !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Actions"] .btn-secondary:hover {
        background: #6b7280 !important;
        color: white !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Actions"] .btn-danger {
        color: #dc2626 !important;
        border-color: #dc2626 !important;
    }
    
    .table-responsive tbody#quizzesTableBody td[data-label="Actions"] .btn-danger:hover {
        background: #dc2626 !important;
        color: white !important;
    }
    
    /* ===== INSTRUCTOR STUDENTS TABLE - Card Design ===== */
    .table-responsive tbody#instructorStudentsTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 180px !important;
        overflow: visible !important;
    }
    
    /* Student Name - Large text at top */
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Student name"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
        padding-right: 140px !important;
    }
    
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Student name"]::before {
        display: none !important;
    }
    
    /* Instructor Name - Below student name with separator */
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Instructor name"] {
        color: #1f2937 !important;
        font-size: 15px !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Instructor name"]::before {
        display: none !important;
    }
    
    /* Email with inline label */
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Email"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Email"]::before {
        content: "Email: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Assigned date with inline label */
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Assigned date"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Assigned date"]::before {
        content: "Assigned date: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Course badge - Top right */
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Course"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 6px 12px !important;
        margin: 0 !important;
        border: none !important;
        display: inline-block !important;
        width: auto !important;
        z-index: 10 !important;
        background: #6366f1 !important;
        color: white !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Course"]::before {
        display: none !important;
    }
    
    /* Actions - Bottom right */
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        order: 5 !important;
        width: 100% !important;
        margin-left: auto !important;
    }
    
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Actions"] .btn {
        border: 2px solid currentColor !important;
        background: white !important;
        padding: 10px 18px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        flex: 0 0 auto !important;
        line-height: 1.2 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        width: auto !important;
        color: #6b7280 !important;
        border-color: #6b7280 !important;
    }
    
    .table-responsive tbody#instructorStudentsTableBody td[data-label="Actions"] .btn:hover {
        background: #6b7280 !important;
        color: white !important;
    }
    
    /* ===== ADMIN STUDENT ASSIGNMENTS TABLE - Card Design ===== */
    .table-responsive tbody#adminAssignmentsTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 180px !important;
        overflow: visible !important;
    }
    
    /* Student Name - Large text at top */
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Student name"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
        padding-right: 140px !important;
    }
    
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Student name"]::before {
        display: none !important;
    }
    
    /* Instructor Name - Below student name, gray text, with separator */
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Instructor name"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Instructor name"]::before {
        display: none !important;
    }
    
    /* Email with inline label */
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Email"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Email"]::before {
        content: "Email: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Assigned date with inline label */
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Assigned date"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Assigned date"]::before {
        content: "Assigned date: " !important;
        display: inline !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        font-size: 16px !important;
    }
    
    /* Course badge - Top right, light blue pill */
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Course"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 8px 16px !important;
        margin: 0 !important;
        border: none !important;
        display: inline-block !important;
        width: auto !important;
        z-index: 10 !important;
        background: #dbeafe !important;
        color: #1e3a8a !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Course"]::before {
        display: none !important;
    }
    
    /* Actions - Bottom right, outlined button */
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        order: 5 !important;
    }
    
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Actions"] .btn {
        border: 2px solid #dc2626 !important;
        background: white !important;
        color: #dc2626 !important;
        padding: 10px 32px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        flex: 0 0 auto !important;
        line-height: 1.2 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        width: auto !important;
    }
    
    .table-responsive tbody#adminAssignmentsTableBody td[data-label="Actions"] .btn:hover {
        background: #dc2626 !important;
        color: white !important;
    }
    
    /* ===== SEND EMAIL PAGE - RECIPIENT OPTIONS ===== */
    /* Make Send To buttons fit in one line on iPad */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    
    .recipient-option {
        min-width: 0 !important;
    }
    
    .recipient-option-content {
        padding: 12px 8px !important;
    }
    
    .recipient-option-content span {
        font-size: 13px !important;
    }
    
    .recipient-option-content svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* ===== RECENT ACTIVITY TABLE - Card Design ===== */
    .table-responsive tbody.recentActivityTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 100px !important;
        overflow: visible !important;
        margin-bottom: 16px !important;
    }
    
    /* User - Large text at top */
    .table-responsive tbody.recentActivityTableBody td[data-label="User"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.recentActivityTableBody td[data-label="User"]::before {
        display: none !important;
    }
    
    /* Action - Top right badge, aligned to right edge */
    .table-responsive tbody.recentActivityTableBody td[data-label="Action"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody.recentActivityTableBody td[data-label="Action"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.recentActivityTableBody td[data-label="Action"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Details - Second row */
    .table-responsive tbody.recentActivityTableBody td[data-label="Details"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.recentActivityTableBody td[data-label="Details"]::before {
        display: none !important;
    }
    
    /* Date - Third row */
    .table-responsive tbody.recentActivityTableBody td[data-label="Date"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.recentActivityTableBody td[data-label="Date"]::before {
        display: none !important;
    }
    
    /* ===== AUDIT LOGS TABLE - Card Design ===== */
    .table-responsive tbody.auditLogsTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 100px !important;
        overflow: visible !important;
        margin-bottom: 16px !important;
    }
    
    /* User - Large text at top */
    .table-responsive tbody.auditLogsTableBody td[data-label="User"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.auditLogsTableBody td[data-label="User"]::before {
        display: none !important;
    }
    
    /* Action - Top right badge, aligned to right edge */
    .table-responsive tbody.auditLogsTableBody td[data-label="Action"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody.auditLogsTableBody td[data-label="Action"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.auditLogsTableBody td[data-label="Action"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Date - Second row */
    .table-responsive tbody.auditLogsTableBody td[data-label="Date"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.auditLogsTableBody td[data-label="Date"]::before {
        display: none !important;
    }
    
    /* Table - Third row */
    .table-responsive tbody.auditLogsTableBody td[data-label="Table"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.auditLogsTableBody td[data-label="Table"]::before {
        display: none !important;
    }
    
    /* Details - Fourth row, only shows if has content */
    .table-responsive tbody.auditLogsTableBody td[data-label="Details"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.auditLogsTableBody td[data-label="Details"]::before {
        display: none !important;
    }
    
    /* Hide Details field on iPad when it only contains "-" */
    .table-responsive tbody.auditLogsTableBody td[data-label="Details"].hide-on-mobile {
        display: none !important;
    }
    
    /* ===== RECENT ENROLLMENTS TABLE (Reports) - Card Design ===== */
    .table-responsive tbody.recentEnrollmentsTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 100px !important;
        overflow: visible !important;
        margin-bottom: 16px !important;
    }
    
    /* Student - Large text at top */
    .table-responsive tbody.recentEnrollmentsTableBody td[data-label="Student"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.recentEnrollmentsTableBody td[data-label="Student"]::before {
        display: none !important;
    }
    
    /* Course - Top right badge, aligned to right edge */
    .table-responsive tbody.recentEnrollmentsTableBody td[data-label="Course"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody.recentEnrollmentsTableBody td[data-label="Course"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.recentEnrollmentsTableBody td[data-label="Course"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Date - Second row */
    .table-responsive tbody.recentEnrollmentsTableBody td[data-label="Date"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.recentEnrollmentsTableBody td[data-label="Date"]::before {
        display: none !important;
    }
    
    /* ===== QUIZ PERFORMANCE TABLE - Card Design ===== */
    .table-responsive tbody.quizPerformanceTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 100px !important;
        overflow: visible !important;
        margin-bottom: 16px !important;
    }
    
    /* Quiz - Large text at top */
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Quiz"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Quiz"]::before {
        display: none !important;
    }
    
    /* Pass Rate - Top right badge */
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Pass Rate"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Pass Rate"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Pass Rate"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Avg Score - Second row */
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Avg Score"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Avg Score"]::before {
        display: none !important;
    }
    
    /* Separator line after Average Score */
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Avg Score"]::after {
        content: '' !important;
        display: block !important;
        width: 100% !important;
        height: 1px !important;
        background-color: #e5e7eb !important;
        margin-top: 12px !important;
    }
    
    /* Passed - Third row */
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Passed"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 12px 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Passed"]::before {
        display: none !important;
    }
    
    /* Failed - Fourth row */
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Failed"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Failed"]::before {
        display: none !important;
    }
    
    /* Attempts - Fifth row */
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Attempts"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        order: 5 !important;
    }
    
    .table-responsive tbody.quizPerformanceTableBody td[data-label="Attempts"]::before {
        display: none !important;
    }
    
    /* ===== TOP COURSES TABLE - Card Design ===== */
    .table-responsive tbody.topCoursesTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 100px !important;
        overflow: visible !important;
        margin-bottom: 16px !important;
    }
    
    /* Course Name - Large text at top */
    .table-responsive tbody.topCoursesTableBody td[data-label="Course Name"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.topCoursesTableBody td[data-label="Course Name"]::before {
        display: none !important;
    }
    
    /* Completion Rate - Top right badge */
    .table-responsive tbody.topCoursesTableBody td[data-label="Completion Rate"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody.topCoursesTableBody td[data-label="Completion Rate"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.topCoursesTableBody td[data-label="Completion Rate"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Level - Second row */
    .table-responsive tbody.topCoursesTableBody td[data-label="Level"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.topCoursesTableBody td[data-label="Level"]::before {
        display: none !important;
    }
    
    /* Separator line after Level */
    .table-responsive tbody.topCoursesTableBody td[data-label="Level"]::after {
        content: '' !important;
        display: block !important;
        width: 100% !important;
        height: 1px !important;
        background-color: #e5e7eb !important;
        margin-top: 12px !important;
    }
    
    /* Students - Third row */
    .table-responsive tbody.topCoursesTableBody td[data-label="Students"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 12px 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.topCoursesTableBody td[data-label="Students"]::before {
        display: none !important;
    }
    
    /* Modules - Fourth row */
    .table-responsive tbody.topCoursesTableBody td[data-label="Modules"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.topCoursesTableBody td[data-label="Modules"]::before {
        display: none !important;
    }
    
    /* ===== USERS BY ROLE TABLE - Card Design ===== */
    .table-responsive tbody.usersByRoleTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 100px !important;
        overflow: visible !important;
        margin-bottom: 16px !important;
    }
    
    /* Role - Large text at top */
    .table-responsive tbody.usersByRoleTableBody td[data-label="Role"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.usersByRoleTableBody td[data-label="Role"]::before {
        display: none !important;
    }
    
    /* Percentage - Top right badge */
    .table-responsive tbody.usersByRoleTableBody td[data-label="Percentage"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody.usersByRoleTableBody td[data-label="Percentage"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.usersByRoleTableBody td[data-label="Percentage"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Count - Second row */
    .table-responsive tbody.usersByRoleTableBody td[data-label="Count"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.usersByRoleTableBody td[data-label="Count"]::before {
        display: none !important;
    }
    
    /* ===== STUDENT COURSES TABLE - Card Design ===== */
    .table-responsive tbody.studentCoursesTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 100px !important;
        overflow: visible !important;
        margin-bottom: 16px !important;
    }
    
    /* Course Name - Large text at top */
    .table-responsive tbody.studentCoursesTableBody td[data-label="Course Name"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Course Name"]::before {
        display: none !important;
    }
    
    /* Progress - Top right badge */
    .table-responsive tbody.studentCoursesTableBody td[data-label="Progress"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Progress"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Progress"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Enrolled Date - Second row */
    .table-responsive tbody.studentCoursesTableBody td[data-label="Enrolled Date"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Enrolled Date"]::before {
        display: none !important;
    }
    
    /* Separator line after Enrolled Date */
    .table-responsive tbody.studentCoursesTableBody td[data-label="Enrolled Date"]::after {
        content: '' !important;
        display: block !important;
        width: 100% !important;
        height: 1px !important;
        background-color: #e5e7eb !important;
        margin-top: 12px !important;
    }
    
    /* Modules - Third row */
    .table-responsive tbody.studentCoursesTableBody td[data-label="Modules"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 12px 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Modules"]::before {
        display: none !important;
    }
    
    /* Level - Fourth row */
    .table-responsive tbody.studentCoursesTableBody td[data-label="Level"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Level"]::before {
        display: none !important;
    }
    
    /* Actions - Fifth row (button) */
    .table-responsive tbody.studentCoursesTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        order: 5 !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Actions"] .btn {
        width: auto !important;
        padding: 12px 24px !important;
        font-size: 16px !important;
        background: white !important;
        color: #4f46e5 !important;
        border: 2px solid #4f46e5 !important;
    }
    
    .table-responsive tbody.studentCoursesTableBody td[data-label="Actions"] .btn:hover {
        background: #4f46e5 !important;
        color: white !important;
    }
    
    /* ===== STUDENT PROGRESS PAGE - View Course Button ===== */
    .card-header .btn-primary {
        white-space: nowrap !important;
        min-width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .card-header > div[style*="display: flex"] {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
    }
    
    /* ===== QUIZ ATTEMPTS TABLE - Card Design ===== */
    .table-responsive tbody.quizAttemptsTableBody tr {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        min-height: 100px !important;
        overflow: visible !important;
        margin-bottom: 16px !important;
    }
    
    /* Course Name - Large text at top */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Course Name"] {
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Course Name"]::before {
        display: none !important;
    }
    
    /* Status - Top right badge */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Status"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Status"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Status"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Module Name - Second row */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Module Name"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Module Name"]::before {
        display: none !important;
    }
    
    /* Quiz Name - Third row */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Quiz Name"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Quiz Name"]::before {
        display: none !important;
    }
    
    /* Separator line after Quiz Name */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Quiz Name"]::after {
        content: '' !important;
        display: block !important;
        width: 100% !important;
        height: 1px !important;
        background-color: #e5e7eb !important;
        margin-top: 12px !important;
    }
    
    /* Final Score - Fourth row */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Final Score"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 12px 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Final Score"]::before {
        display: none !important;
    }
    
    /* Passing Score - Fifth row */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Passing Score"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 5 !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Passing Score"]::before {
        display: none !important;
    }
    
    /* Attempt - Sixth row */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Attempt"] {
        color: #1f2937 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 6 !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Attempt"]::before {
        display: none !important;
    }
    
    /* Date - Seventh row */
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Date"] {
        color: #6b7280 !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        order: 7 !important;
    }
    
    .table-responsive tbody.quizAttemptsTableBody td[data-label="Date"]::before {
        display: none !important;
    }
    
    /* Email Logs Cards */
    .table-responsive tbody.emailLogsTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .table-responsive tbody.emailLogsTableBody tr {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        position: relative !important;
    }
    
    /* ID - Large text at top */
    .table-responsive tbody.emailLogsTableBody td[data-label="ID"] {
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="ID"]::before {
        display: none !important;
    }
    
    /* Status - Top right badge */
    .table-responsive tbody.emailLogsTableBody td[data-label="Status"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
        order: 7 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Status"]::before {
        display: none !important;
    }

    /* Assigned Students Cards - Instructor Dashboard */
    .table-responsive tbody.assignedStudentsTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody tr {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        position: relative !important;
    }
    
    /* Name - Large text at top */
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Name"] {
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Name"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Name"] strong {
        font-weight: 600 !important;
    }
    
    /* Email Address - Gray text below name with separator line */
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Email Address"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Email Address"]::before {
        display: none !important;
    }
    
    /* Enrolled Courses - Bold label */
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Enrolled Courses"] {
        font-size: 16px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Enrolled Courses"]::before {
        display: none !important;
    }
    
    /* Quiz Attempts - Bold label */
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Quiz Attempts"] {
        font-size: 16px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Quiz Attempts"]::before {
        display: none !important;
    }
    
    /* Assigned On - Bold label */
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Assigned On"] {
        font-size: 16px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 5 !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Assigned On"]::before {
        display: none !important;
    }
    
    /* Actions - Right aligned button */
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        order: 6 !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Actions"] .btn {
        background: white !important;
        color: #4f46e5 !important;
        border: 2px solid #4f46e5 !important;
        padding: 10px 24px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        transition: all 0.2s !important;
        text-decoration: none !important;
        display: inline-block !important;
    }
    
    .table-responsive tbody.assignedStudentsTableBody td[data-label="Actions"] .btn:hover {
        background: #4f46e5 !important;
        color: white !important;
    }

    /* Students Table Cards - Instructor Students Page */
    .table-responsive tbody.studentsTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .table-responsive tbody.studentsTableBody tr {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        position: relative !important;
    }
    
    /* Name - Large text at top */
    .table-responsive tbody.studentsTableBody td[data-label="Name"] {
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Name"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Name"] strong {
        font-weight: 600 !important;
    }
    
    /* Email Address - Gray text below name with separator line */
    .table-responsive tbody.studentsTableBody td[data-label="Email Address"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Email Address"]::before {
        display: none !important;
    }
    
    /* Enrolled Courses - Bold label */
    .table-responsive tbody.studentsTableBody td[data-label="Enrolled Courses"] {
        font-size: 16px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Enrolled Courses"]::before {
        display: none !important;
    }
    
    /* Username - Bold label */
    .table-responsive tbody.studentsTableBody td[data-label="Username"] {
        font-size: 16px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Username"]::before {
        display: none !important;
    }
    
    /* Average Progress - Top right badge */
    .table-responsive tbody.studentsTableBody td[data-label="Average Progress"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
        order: 5 !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Average Progress"]::before {
        display: none !important;
    }
    
    /* Progress Badge Colors */
    .table-responsive tbody.studentsTableBody .badge.progress-badge-green {
        background-color: #10b981 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.studentsTableBody .badge.progress-badge-red {
        background-color: #ef4444 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.studentsTableBody .badge.progress-badge-yellow {
        background-color: #fbbf24 !important;
        color: #111827 !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    /* Actions - Right aligned button */
    .table-responsive tbody.studentsTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 20px 0 0 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        order: 6 !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Actions"] .btn {
        background: white !important;
        color: #4f46e5 !important;
        border: 2px solid #4f46e5 !important;
        padding: 10px 24px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        transition: all 0.2s !important;
        text-decoration: none !important;
        display: inline-block !important;
    }
    
    .table-responsive tbody.studentsTableBody td[data-label="Actions"] .btn:hover {
        background: #4f46e5 !important;
        color: white !important;
    }

@media (max-width: 1366px) {
    /* Search Students Page - iPad Responsive */
    
    /* Search Filters Form - Stack vertically on iPad */
    .card-body form[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .card-body form[style*="grid-template-columns"] .form-group {
        width: 100% !important;
    }
    
    .card-body form[style*="grid-template-columns"] > div:last-child {
        display: flex !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .card-body form[style*="grid-template-columns"] > div:last-child .btn {
        flex: 1 !important;
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    /* Search Students Cards */
    
    /* Hide thead specifically in search students results */
    #results-container thead {
        display: none !important;
    }
    
    /* Hide the table immediately to prevent flicker */
    #results-container table {
        display: block !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding: 20px !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody tr {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        position: relative !important;
    }
    
    /* Name - Large text at top */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Name"] {
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Name"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Name"] strong {
        font-weight: 600 !important;
    }
    
    /* Username - Gray text below name with separator line */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Username"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Username"]::before {
        display: none !important;
    }
    
    /* Email - Label and value inline */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Email"] {
        font-size: 15px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
        font-weight: 400 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Email"]::before {
        content: "Email: " !important;
        display: inline !important;
        font-weight: 600 !important;
        color: #111827 !important;
        font-size: 15px !important;
    }
    
    /* Course - Label and value inline */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Course"] {
        font-size: 15px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
        font-weight: 400 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Course"]::before {
        content: "Course: " !important;
        display: inline !important;
        font-weight: 600 !important;
        color: #111827 !important;
        font-size: 15px !important;
    }
    
    /* Instructor - Label and value inline */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Instructor"] {
        font-size: 15px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 5 !important;
        font-weight: 400 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Instructor"]::before {
        content: "Instructor: " !important;
        display: inline !important;
        font-weight: 600 !important;
        color: #111827 !important;
        font-size: 15px !important;
    }
    
    /* Class Date - Label and value inline */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Class Date"] {
        font-size: 15px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 6 !important;
        font-weight: 400 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Class Date"]::before {
        content: "Class Date: " !important;
        display: inline !important;
        font-weight: 600 !important;
        color: #111827 !important;
        font-size: 15px !important;
    }
    
    /* Account Status - Top right badge (first position) */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Account Status"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
        order: 7 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Account Status"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Account Status"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Account Status"] .badge::before {
        content: "Account Status: " !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Account Status"] .badge.badge-success {
        background-color: #10b981 !important;
        color: white !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Account Status"] .badge.badge-danger {
        background-color: #ef4444 !important;
        color: white !important;
    }
    
    /* Enrollment Status - Top right badge (second position, below account status) */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Enrollment Status"] {
        position: absolute !important;
        top: 72px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
        order: 8 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Enrollment Status"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Enrollment Status"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Enrollment Status"] .badge::before {
        content: "Enrollment Status: " !important;
        font-weight: 600 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Enrollment Status"] .badge.badge-primary {
        background-color: #4f46e5 !important;
        color: white !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Enrollment Status"] .badge.badge-success {
        background-color: #10b981 !important;
        color: white !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Enrollment Status"] .badge.badge-secondary {
        background-color: #6b7280 !important;
        color: white !important;
    }
    
    /* Actions - Right aligned button */
    .table-responsive tbody.searchStudentsTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        order: 9 !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Actions"] .btn {
        background: white !important;
        color: #4f46e5 !important;
        border: 2px solid #4f46e5 !important;
        padding: 10px 24px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        transition: all 0.2s !important;
        text-decoration: none !important;
        display: inline-block !important;
    }
    
    .table-responsive tbody.searchStudentsTableBody td[data-label="Actions"] .btn:hover {
        background: #4f46e5 !important;
        color: white !important;
    }
}

    
    .table-responsive tbody.emailLogsTableBody td[data-label="Status"] .badge {
        font-size: 15px !important;
        padding: 8px 16px !important;
    }
    
    /* Separator after Date & Time */
    .table-responsive tbody.emailLogsTableBody td[data-label="Date & Time"]::after {
        content: "" !important;
        display: block !important;
        height: 1px !important;
        background: #e5e7eb !important;
        margin: 20px 0 !important;
    }
    
    /* From - Inline label */
    .table-responsive tbody.emailLogsTableBody td[data-label="From"] {
        font-size: 16px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="From"]::before {
        content: "From: " !important;
        font-weight: 700 !important;
        color: #111827 !important;
        display: inline !important;
    }
    
    /* To - Inline label */
    .table-responsive tbody.emailLogsTableBody td[data-label="To"] {
        font-size: 16px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 5 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="To"]::before {
        content: "To: " !important;
        font-weight: 700 !important;
        color: #111827 !important;
        display: inline !important;
    }
    
    /* Subject - Inline label */
    .table-responsive tbody.emailLogsTableBody td[data-label="Subject"] {
        font-size: 16px !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 6 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Subject"]::before {
        content: "Subject: " !important;
        font-weight: 700 !important;
        color: #111827 !important;
        display: inline !important;
    }
    
    /* Date & Time - Show under ID */
    .table-responsive tbody.emailLogsTableBody td[data-label="Date & Time"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Date & Time"]::before {
        display: none !important;
    }
    
    /* Actions - Bottom right aligned */
    .table-responsive tbody.emailLogsTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 12px !important;
        order: 8 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Actions"] .btn {
        font-size: 16px !important;
        padding: 10px 20px !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        background: white !important;
        border-radius: 6px !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Actions"] .btn:first-child {
        border: 2px solid #f97316 !important;
        color: #f97316 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Actions"] .btn:first-child:hover {
        background: #fff7ed !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Actions"] .btn:last-child {
        border: 2px solid #3b82f6 !important;
        color: #3b82f6 !important;
    }
    
    .table-responsive tbody.emailLogsTableBody td[data-label="Actions"] .btn:last-child:hover {
        background: #eff6ff !important;
    }
    
    /* Email Logs Filters - Force 50/50 layout on iPad */
    .card-body .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .card-body .row.g-3 .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        display: block !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .card-body .row.g-3 .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Date inputs in filters - ensure they don't overflow on iPad */
    .card-body input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Course Progress Cards - Student Detail Page */
    .table-responsive tbody.courseProgressTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .table-responsive tbody.courseProgressTableBody tr {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        position: relative !important;
    }
    
    /* Course Name - Large text at top */
    .table-responsive tbody.courseProgressTableBody td[data-label="Course"] {
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.courseProgressTableBody td[data-label="Course"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.courseProgressTableBody td[data-label="Course"] strong {
        font-weight: 600 !important;
    }
    
    /* Enrolled Date - Gray text below course name */
    .table-responsive tbody.courseProgressTableBody td[data-label="Enrolled"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.courseProgressTableBody td[data-label="Enrolled"]::before {
        display: none !important;
    }
    
    /* Progress and Status Badges - Top right position, side by side with 12px gap */
    .table-responsive tbody.courseProgressTableBody td[data-label="Status"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        z-index: 10 !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.courseProgressTableBody td[data-label="Progress"] {
        position: absolute !important;
        top: 28px !important;
        right: 160px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        z-index: 10 !important;
        order: 3 !important;
    }
    .table-responsive tbody.courseProgressTableBody td[data-label="Progress"]::before,
    .table-responsive tbody.courseProgressTableBody td[data-label="Status"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.courseProgressTableBody td[data-label="Status"] .badge {
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.courseProgressTableBody td[data-label="Status"] .badge-success {
        background-color: #10b981 !important;
        color: white !important;
    }
    
    .table-responsive tbody.courseProgressTableBody .badge.progress-badge-green {
        background-color: #10b981 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }
    
    .table-responsive tbody.courseProgressTableBody .badge.progress-badge-red {
        background-color: #ef4444 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }
    
    .table-responsive tbody.courseProgressTableBody .badge.progress-badge-yellow {
        background-color: #fbbf24 !important;
        color: #111827 !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }

    /* Quiz Attempts Detail Cards - Student Detail Page */
    .table-responsive tbody.quizAttemptsDetailTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody tr {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        position: relative !important;
    }
    
    /* Quiz Name - Large text at top */
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Quiz"] {
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Quiz"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Quiz"] strong {
        font-weight: 600 !important;
    }
    
    /* Course - Gray text below quiz name */
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Course"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Course"]::before {
        display: none !important;
    }
    
    /* Attempt Number */
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Attempt"] {
        font-size: 16px !important;
        color: #111827 !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Attempt"]::before {
        display: none !important;
    }
    
    /* Completed Date */
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Completed"] {
        font-size: 16px !important;
        color: #111827 !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Completed"]::before {
        display: none !important;
    }
    
    /* Score Badge - Top right, first badge with 12px gap */
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Score"] {
        position: absolute !important;
        top: 28px !important;
        right: 176px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        z-index: 10 !important;
        order: 5 !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Score"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody .badge.score-badge-green {
        background-color: #10b981 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody .badge.score-badge-red {
        background-color: #ef4444 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody .badge.score-badge-yellow {
        background-color: #fbbf24 !important;
        color: #111827 !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    /* Result Badge - Top right, second badge */
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Result"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        z-index: 10 !important;
        order: 6 !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Result"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Result"] .badge {
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    /* Actions Button - Bottom right aligned */
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        order: 7 !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Actions"] .btn {
        background: white !important;
        color: #6b7280 !important;
        border: 2px solid #6b7280 !important;
        padding: 10px 24px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        transition: all 0.2s !important;
        text-decoration: none !important;
        display: inline-block !important;
    }
    
    .table-responsive tbody.quizAttemptsDetailTableBody td[data-label="Actions"] .btn:hover {
        background: #6b7280 !important;
        color: white !important;
    }

    /* Recent Completed Content - iPad Card Design */
    .table-responsive tbody.completedContentTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .table-responsive tbody.completedContentTableBody tr {
        display: block !important;
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 28px !important;
        position: relative !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }

    .table-responsive tbody.completedContentTableBody td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
    }

    .table-responsive tbody.completedContentTableBody td::before {
        content: none !important;
    }

    /* Content Title */
    .table-responsive tbody.completedContentTableBody td[data-label="Content"] {
        font-size: 24px !important;
        font-weight: 600 !important;
        color: #1e3a5f !important;
        margin-bottom: 20px !important;
        padding-right: 0 !important;
        order: 1 !important;
    }

    .table-responsive tbody.completedContentTableBody td[data-label="Content"] strong {
        font-weight: 600 !important;
    }

    /* Module */
    .table-responsive tbody.completedContentTableBody td[data-label="Module"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        margin-bottom: 12px !important;
        order: 2 !important;
    }

    /* Completed Date */
    .table-responsive tbody.completedContentTableBody td[data-label="Completed"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        margin-bottom: 0 !important;
        order: 3 !important;
    }

    /* Course Badge - Top right position */
    .table-responsive tbody.completedContentTableBody td[data-label="Course"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        z-index: 10 !important;
        order: 4 !important;
    }

    .table-responsive tbody.completedContentTableBody td[data-label="Course"] .badge {
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    .table-responsive tbody.completedContentTableBody td[data-label="Course"] .badge-primary {
        background-color: #dbeafe !important;
        color: #1e3a5f !important;
    }

    /* Recent Quiz Attempts - Accordion Style */
    .accordion-container {
        /* Container styles */
    }
    
    .accordion-item {
        transition: all 0.2s ease;
    }
    
    .accordion-header:hover {
        background: #f9fafb !important;
    }
    
    .accordion-icon {
        transition: transform 0.3s ease;
    }
    
    /* Responsive design for accordion */
    @media (max-width: 1024px) {
        .accordion-header > div:first-child {
            grid-template-columns: 1fr !important;
            gap: 8px !important;
        }
        
        .accordion-header > div:first-child > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .accordion-header > div:first-child > div:first-child {
            grid-column: 1 / -1;
            font-size: 1.125rem;
        }
    }
    
    @media (max-width: 768px) {
        .accordion-header {
            padding: 12px 16px !important;
        }
        
        .accordion-content > div {
            padding: 16px !important;
        }
        
        .accordion-content > div > div {
            grid-template-columns: 1fr !important;
        }
    }

    .table-responsive tbody.recentQuizAttemptsTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody tr {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        position: relative !important;
    }
    
    /* Student Name - Large text at top */
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Student"] {
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Student"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Student"] strong {
        font-weight: 600 !important;
    }
    
    /* Quiz - Gray text below student name */
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Quiz"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Quiz"]::before {
        display: none !important;
    }
    
    /* Completed Date */
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Completed"] {
        font-size: 16px !important;
        color: #111827 !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Completed"]::before {
        display: none !important;
    }
    
    /* Score Badge - Top right, first badge */
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Score"] {
        position: absolute !important;
        top: 28px !important;
        right: 176px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        z-index: 10 !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Score"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody .badge.score-badge-green {
        background-color: #10b981 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody .badge.score-badge-red {
        background-color: #ef4444 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody .badge.score-badge-yellow {
        background-color: #fbbf24 !important;
        color: #111827 !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    /* Result Badge - Second badge */
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Result"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        z-index: 10 !important;
        order: 5 !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Result"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Result"] .badge {
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    /* Badge colors for result */
    .table-responsive tbody.recentQuizAttemptsTableBody .badge-success {
        background-color: #10b981 !important;
        color: white !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody .badge-danger {
        background-color: #ef4444 !important;
        color: white !important;
    }
    
    /* Actions Button - Bottom right aligned */
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Actions"] {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        order: 6 !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Actions"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Actions"] .btn {
        background: white !important;
        color: #6b7280 !important;
        border: 2px solid #6b7280 !important;
        padding: 10px 24px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        transition: all 0.2s !important;
        text-decoration: none !important;
        display: inline-block !important;
    }
    
    .table-responsive tbody.recentQuizAttemptsTableBody td[data-label="Actions"] .btn:hover {
        background: #6b7280 !important;
        color: white !important;
    }

    /* Student Progress Reports - Reports Page - iPad Card Design */
    .table-responsive tbody.studentProgressReportsTableBody {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody tr {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e5e7eb !important;
        position: relative !important;
    }
    
    /* Student Name - Large text at top */
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Student"] {
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 1 !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Student"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Student"] strong {
        font-weight: 600 !important;
    }
    
    /* Course - Gray text below student name with separator */
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Course"] {
        font-size: 16px !important;
        color: #6b7280 !important;
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: block !important;
        order: 2 !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Course"]::before {
        display: none !important;
    }
    
    /* Enrolled Date */
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Enrolled"] {
        font-size: 16px !important;
        color: #111827 !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 3 !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Enrolled"]::before {
        display: none !important;
    }
    
    /* Status Badge - Top right, second badge */
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Status"] {
        position: absolute !important;
        top: 28px !important;
        right: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        z-index: 10 !important;
        order: 4 !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Status"]::before {
        display: none !important;
    }
    
    /* Content Progress */
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Content Progress"] {
        font-size: 16px !important;
        color: #111827 !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        display: block !important;
        order: 5 !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Content Progress"]::before {
        display: none !important;
    }
    
    /* Quizzes */
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Quizzes"] {
        font-size: 16px !important;
        color: #111827 !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border: none !important;
        display: block !important;
        order: 6 !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Quizzes"]::before {
        display: none !important;
    }
    
    /* Avg Quiz Score Badge - Top right, first badge */
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Avg Quiz Score"] {
        position: absolute !important;
        top: 28px !important;
        right: 160px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        z-index: 10 !important;
        order: 7 !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody td[data-label="Avg Quiz Score"]::before {
        display: none !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody .badge.score-badge-green {
        background-color: #10b981 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody .badge.score-badge-red {
        background-color: #ef4444 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody .badge.score-badge-yellow {
        background-color: #fbbf24 !important;
        color: #111827 !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody .badge.score-badge-gray {
        background-color: #9ca3af !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody .badge.status-badge-green {
        background-color: #10b981 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody .badge.status-badge-blue {
        background-color: #3b82f6 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    .table-responsive tbody.studentProgressReportsTableBody .badge.status-badge-red {
        background-color: #ef4444 !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
}


























/* Session Timeout Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
