/* Common CSS Module - Shared styles across all pages */

/* ====================================== */
/* SHARED GRADIENTS AND COLORS */
/* ====================================== */

.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-secondary {
    background: var(--gradient-secondary);
}

/* Force pink gradient theme for ALL components */
.pink-gradient,
.header-pink,
.table-header-pink {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    color: white !important;
}

/* ====================================== */
/* SHARED PAGE LAYOUT AND STRUCTURE */
/* ====================================== */

/* Unified content section styling */
.content-section {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    background: var(--background-color, #f8f9fa);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Fix for instructors container visibility - only when active */
#instructorsContainer.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: 600px !important;
    background-color: #f5f5f5 !important;
    transform: none !important;
}

/* Force table visibility when container is active */
#instructorsContainer.active .material-card,
#instructorsContainer.active .table-responsive,
#instructorsContainer.active table,
#instructorsContainer.active tbody {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

#instructorsContainer.active table {
    display: table !important;
}

#instructorsContainer.active tbody {
    display: table-row-group !important;
}

#instructorsContainer.active tr {
    display: table-row !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#instructorsContainer.active td,
#instructorsContainer.active th {
    display: table-cell !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Page wrapper for consistent spacing */
.page-wrapper {
    padding: 0;
    background: var(--background-color, #f8f9fa);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Dashboard main container improvements */
.dashboard-main {
    position: relative;
    background: var(--background-color, #f8f9fa);
    padding: 0;
    transition: all 0.3s ease;
    flex: 1;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
}


.dashboard-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 88, 120, 0.02) 0%, rgba(241, 174, 146, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above background */
.content-section > * {
    position: relative;
    z-index: 1;
}

/* Improved spacing between sections */
.content-section > .material-card:not(:last-child) {
    margin-bottom: 5px;
}

.content-section > .material-stats-grid + .material-card {
    margin-top: 3px;
}

/* ====================================== */
/* SHARED CARD STYLES */
/* ====================================== */

.material-card {
    background: white;
    border-radius: var(--border-radius-large, 12px);
    box-shadow: var(--shadow-light, 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24));
    margin-bottom: 5px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.material-card:hover {
    box-shadow: var(--shadow-raised, 0 8px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1));
    transform: none;
}

.material-card-header {
    background: var(--main-gradient, linear-gradient(135deg, #ff6589, #e91e63));
    color: white;
    padding: 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    flex-shrink: 0;
}

.material-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.material-card-header.info {
    background: linear-gradient(135deg, var(--info-color, #ff6589), var(--info-light, #e91e63));
}

.material-card-header.success {
    background: linear-gradient(135deg, var(--success-color, #4caf50), var(--success-light, #c8e6c9));
}

.material-card-header.warning {
    background: linear-gradient(135deg, var(--warning-color, #ff9800), var(--warning-light, #ffe0b2));
}

.material-card-header.error,
.material-card-header.danger {
    background: linear-gradient(135deg, var(--error-color, #f44336), var(--error-light, #ffcdd2));
}

.material-card-title {
    margin: 0 0 2px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-align: left;
}

.material-card-category {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    line-height: 1.3;
    text-align: left;
}

.material-card-body {
    padding: 16px 20px !important;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 64px;
}
.material-card-body-demo {
    padding: 16px 20px !important;
    position: relative;
    flex: 1;
    /* display: flex; */
    /* flex-direction: row;
    align-items: center; */
    width: 100%;
    box-sizing: border-box;
    min-height: 64px;
}
.material-card-body > * {
    width: 100%;
    box-sizing: border-box;
}

.material-card-body .table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 0;
}

.material-card-body .filters-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: flex-end;
}

/* ====================================== */
/* SHARED DASHBOARD HEADER */
/* ====================================== */
/* Dashboard header styles moved to layout.css for DRY principle */
/* All pages use the same header styles from layout.css */

/* User info container for dashboard */
.user-info-container {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ============================================
   AVATAR STYLES - CONSOLIDATED 
   All avatar-related styles in one place
   ============================================ */

/* Base Avatar Container */
.user-avatar {
    position: relative;
}

/* Avatar Circle - Base Style */
.avatar-circle {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

/* Dashboard Header Avatar */
.dashboard-header .user-avatar {
    position: relative;
    flex-shrink: 0;
}

.dashboard-header .avatar-circle {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: var(--header-avatar-gradient);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--header-avatar-border);
    transition: var(--transition);
    overflow: hidden;
}

.dashboard-header .avatar-circle:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* User Management Avatar (Approval Cards) */
.approval-card-header .user-avatar,
#user-managementContainer .user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(247, 8, 128, 0.12);
    overflow: hidden;
}

/* Trainer Avatar - Large */
.trainer-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.trainer-avatar i {
    font-size: 40px;
    color: white;
}

/* Trainer Card Avatar - Medium */
.trainer-card .trainer-avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(255,0,128,0.06), rgba(254,173,139,0.06));
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

/* Online Indicator */
.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border: 2px solid white;
    border-radius: 50%;
}

.dashboard-header .online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success-color);
    border: 2px solid white;
    border-radius: 50%;
}

/* End Avatar Styles */
/* ============================================ */

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

.user-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.user-actions {
    display: flex;
    gap: 2px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* ====================================== */
/* SHARED STATS GRID STYLES */
/* ====================================== */

.material-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5px;
    padding: 0;
}

.material-stats-grid .material-card {
    background: transparent;
    border-radius: var(--border-radius-lg, 12px);
    box-shadow: none;
    overflow: visible;
    transition: all 0.3s ease;
    margin-bottom: 0;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.material-stats-grid .material-card:hover {
    transform: none;
    box-shadow: none;
}

.material-stats-grid .material-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
    min-height: 120px;
    position: relative;
    flex: 1;
    width: 100%;
    border-radius: var(--border-radius-lg, 12px);
    box-shadow: var(--shadow-card, 0 2px 8px rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.material-stats-grid .material-card:hover .material-card-header {
    transform: translateY(-2px);
    box-shadow: var(--shadow-raised, 0 8px 25px rgba(0, 0, 0, 0.15));
}

.material-stats-grid .material-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.material-stats-grid .material-card-header.info {
    background: linear-gradient(135deg, var(--info-color, #ff6589), var(--info-light, #e91e63));
}

.material-stats-grid .material-card-header.success {
    background: linear-gradient(135deg, var(--success-color, #4caf50), var(--success-light, #81c784));
}

.material-stats-grid .material-card-header.warning {
    background: linear-gradient(135deg, var(--warning-color, #ff9800), var(--warning-light, #ffb74d));
}

.material-stats-grid .material-card-header.error,
.material-stats-grid .material-card-header.danger {
    background: linear-gradient(135deg, var(--error-color, #f44336), var(--error-light, #e57373));
}

.material-stats-grid .material-card-header.primary {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--primary-light, #764ba2));
}

.material-stats-grid .card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.material-stats-grid .card-icon i {
    font-size: 28px;
}

.material-stats-grid .card-content {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.material-stats-grid .card-category {
    margin: 0 0 2px 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.material-stats-grid .card-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.material-stats-grid .material-card-footer {
    padding: 3px 5px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.material-stats-grid .stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
    font-weight: 500;
}

.material-stats-grid .stats i {
    font-size: 18px;
}

.material-stats-grid .text-success {
    color: var(--success-color, #4caf50);
}

.material-stats-grid .text-danger {
    color: var(--error-color, #f44336);
}

.material-stats-grid .text-warning {
    color: var(--warning-color, #ff9800);
}

/* ====================================== */
/* SHARED TABLE STYLES */
/* ====================================== */

/* Force pink gradient for ALL table headers across the entire app */
table thead,
.table thead,
.table-material thead,
.mdc-data-table__header-row,
.content-section table thead,
#dashboardContent table thead,
#studentsContainer table thead,
#instructorsContainer table thead,
#lessonsContainer table thead,
#paymentsContainer table thead,
#user-managementContainer table thead,
[id$="Container"] table thead {
    background: var(--main-gradient) !important;
}

table thead th,
.table thead th,
.table-material thead th,
.mdc-data-table__header-cell,
.content-section table thead th {
    background: transparent !important;
    color: white !important;
    padding: 3px 5px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    border: none !important;
    letter-spacing: 0.02em;
}

.table-responsive {
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-card, 0 2px 8px rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    margin-top: 3px;
}

.table-material {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.table-material tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-material tbody tr:hover {
    background-color: rgba(230, 88, 120, 0.04);
    transform: scale(1.001);
}

.table-material tbody tr:last-child {
    border-bottom: none;
}

.table-material tbody td {
    padding: 3px;
    vertical-align: middle;
    border: none;
    font-weight: 500;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 5px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    font-weight: 500;
}

.page-info {
    color: var(--text-secondary, #666);
}

.pagination-controls {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* ====================================== */
/* ENHANCED FILTER AND SEARCH STYLES */
/* ====================================== */

.filters-content {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 3px 0;
}

.search-field {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.search-field .mdc-text-field__input {
    padding: 5px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: white;
}

.search-field .mdc-text-field__input:focus {
    border-color: var(--primary-color, #E65878);
    box-shadow: none !important;
    outline: none !important;
}

.filter-controls {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    align-items: center;
}

.form-select {
    padding: 3px 5px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: var(--text-primary, #333);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 150px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none !important;
    border-color: var(--primary-color, #E65878);
    box-shadow: none !important;
}

.form-select:hover {
    border-color: #bdbdbd;
}

/* ====================================== */
/* STUDENT DATA FOCUSED STYLING */
/* ====================================== */

/* Status badges and tags */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.status-active,
.status-badge.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactive,
.status-badge.status-inactive {
    background: #ffebee;
    color: #c62828;
}

.status-pending,
.status-badge.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-scheduled,
.status-badge.status-scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.status-completed,
.status-badge.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled,
.status-badge.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.status-paid,
.status-badge.status-paid,
.status-package_paid,
.status-badge.status-package_paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-unpaid,
.status-badge.status-unpaid,
.status-overdue,
.status-badge.status-overdue {
    background: #ffebee;
    color: #c62828;
}

.status-pending_verification,
.status-badge.status-pending_verification {
    background: #fff8e1;
    color: #f57c00;
}

.status-not_billed,
.status-badge.status-not_billed,
.status-refunded,
.status-badge.status-refunded {
    background: #eceff1;
    color: #546e7a;
}

.instrument-tag {
    background: rgba(230, 88, 120, 0.1);
    color: var(--primary-color, #E65878);
    padding: 2px 3px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.level-badge {
    padding: 2px 3px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.level-beginner {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.level-intermediate {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.level-advanced {
    background: rgba(255, 101, 137, 0.1);
    color: #ff6589;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.action-buttons .mdc-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-secondary, #666);
}

.action-buttons .mdc-icon-button:hover {
    background: rgba(230, 88, 120, 0.1);
    color: var(--primary-color, #E65878);
    transform: scale(1.1);
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 5px;
    color: var(--text-secondary, #666);
}

.empty-state i {
    display: block;
    margin-bottom: 3px;
    opacity: 0.3;
}

.empty-state p {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: var(--text-secondary, #666);
}

/* ====================================== */
/* MATERIAL DESIGN ENHANCEMENTS */
/* ====================================== */

/* Enhanced material card animations */
.material-card {
    transform-origin: center center;
    will-change: transform, box-shadow;
}

.material-card:active {
    transform: scale(0.98);
}

/* Improved button styling */
.mdc-button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 3px 5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mdc-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.mdc-button--raised {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.mdc-button--outlined {
    border-width: 2px !important;
}

/* Enhanced focus states for accessibility */
.mdc-button:focus,
.mdc-icon-button:focus,
.form-select:focus,
.mdc-text-field__input:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Loading states */
.mdc-circular-progress {
    color: var(--primary-color, #E65878);
}

/* Notification styling */
.notification,
.snackbar {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

/* Enhanced snackbar styling for different types */
.mdc-snackbar {
    z-index: 10000 !important;
}

.mdc-snackbar.error {
    background-color: #f44336 !important;
    color: white !important;
}

.mdc-snackbar.error .mdc-snackbar__surface {
    background-color: #f44336 !important;
    color: white !important;
    border-left: 4px solid #f44336 !important;
}

.mdc-snackbar.error .mdc-snackbar__label {
    color: white !important;
    font-weight: 500 !important;
}

.mdc-snackbar.error .mdc-snackbar__action .mdc-button {
    color: #ffebee !important;
}

.mdc-snackbar.error .mdc-snackbar__action .mdc-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.mdc-snackbar.success {
    background-color: #388e3c !important;
    color: white !important;
}

.mdc-snackbar.success .mdc-snackbar__surface {
    background-color: #388e3c !important;
    color: white !important;
    border-left: 4px solid #2e7d32 !important;
}

.mdc-snackbar.success .mdc-snackbar__label {
    color: white !important;
    font-weight: 500 !important;
}

.mdc-snackbar.warning {
    background-color: #f57c00 !important;
    color: white !important;
}

.mdc-snackbar.warning .mdc-snackbar__surface {
    background-color: #f57c00 !important;
    color: white !important;
    border-left: 4px solid #ef6c00 !important;
}

.mdc-snackbar.warning .mdc-snackbar__label {
    color: white !important;
    font-weight: 500 !important;
}

.mdc-snackbar.info {
    background-color: #1976d2 !important;
    color: white !important;
}

.mdc-snackbar.info .mdc-snackbar__surface {
    background-color: #1976d2 !important;
    color: white !important;
    border-left: 4px solid #1565c0 !important;
}

.mdc-snackbar.info .mdc-snackbar__label {
    color: white !important;
    font-weight: 500 !important;
}

/* Enhanced search field styling */
.mdc-text-field--outlined .mdc-notched-outline__leading,
.mdc-text-field--outlined .mdc-notched-outline__notch,
.mdc-text-field--outlined .mdc-notched-outline__trailing {
    border-width: 2px;
    border-color: #e0e0e0;
    transition: border-color 0.3s ease;
}

.mdc-text-field--focused .mdc-notched-outline__leading,
.mdc-text-field--focused .mdc-notched-outline__notch,
.mdc-text-field--focused .mdc-notched-outline__trailing {
    border-color: var(--primary-color, #E65878) !important;
    border-width: 2px !important;
}

/* ====================================== */
/* RESPONSIVE DESIGN */
/* ====================================== */

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Dashboard header styles in layout.css */
    
    .material-card-body {
        padding: 3px;
    }
}

@media (max-width: 480px) {
    /* Dashboard header styles in layout.css */
    
    .page-actions .mdc-button .mdc-button__label {
        display: none;
    }
    
    .table-pagination {
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }
}

/* ====================================== */
/* SHARED ACCESSIBILITY IMPROVEMENTS */
/* ====================================== */

/* Focus indicators */
.mdc-button:focus,
.form-select:focus,
.mdc-text-field__input:focus {
    outline: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dashboard-header {
        border: 2px solid var(--text-primary);
    }
    
    .material-card {
        border: 1px solid var(--border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================== */
/* ENHANCED MATERIAL CARD TEXT ALIGNMENT */
/* ====================================== */

/* Ensure proper text alignment within cards */
.material-card p,
.material-card .card-text,
.material-card .description {
    margin: 0 0 2px 0;
    line-height: 1.5;
    color: var(--text-secondary, #666);
    text-align: left;
}

.material-card p:last-child,
.material-card .card-text:last-child {
    margin-bottom: 0;
}

/* Ensure proper spacing for card content elements */
.material-card-body > *:not(:last-child) {
    margin-bottom: 3px;
}

.material-card-body > *:first-child {
    margin-top: 0;
}

.material-card-body > *:last-child {
    margin-bottom: 0;
}

/* Enhanced table container within cards */
.material-card .table-responsive {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Filters within cards */
.material-card .filters-content {
    padding: 3px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius, 8px);
    margin-bottom: 3px;
}

/* Enhanced alignment for action sections */
.material-card .page-actions,
.material-card .card-actions {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Students directory specific styling */
.material-card .students-directory-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.material-card .students-search-filters {
    padding: 3px;
    background: #f8f9fa;
    border-radius: var(--border-radius, 8px);
    margin-bottom: 3px;
}

.material-card .students-table-container {
    flex: 1;
    overflow: hidden;
}

/* Enhanced spacing for form elements within cards */
.material-card .form-group {
    margin-bottom: 3px;
}

.material-card .form-group:last-child {
    margin-bottom: 0;
}

.material-card label {
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
    color: var(--text-primary, #333);
}

.material-card input,
.material-card select,
.material-card textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Enhanced heading alignment within cards */
.material-card h1,
.material-card h2,
.material-card h3,
.material-card h4,
.material-card h5,
.material-card h6 {
    margin: 0 0 3px 0;
    line-height: 1.3;
    color: var(--text-primary, #333);
    text-align: left;
}

.material-card h1:first-child,
.material-card h2:first-child,
.material-card h3:first-child,
.material-card h4:first-child {
    margin-top: 0;
}

/* List styling within cards */
.material-card ul,
.material-card ol {
    margin: 0 0 3px 0;
    padding-left: 5px;
}

.material-card li {
    margin-bottom: 2px;
    line-height: 1.5;
}

.material-card li:last-child {
    margin-bottom: 0;
}

/* Enhanced button alignment within cards */
.material-card .mdc-button {
    margin-right: 2px;
    margin-bottom: 2px;
}

.material-card .mdc-button:last-child {
    margin-right: 0;
}

/* ====================================== */
/* STUDENTS PAGE SPECIFIC OPTIMIZATIONS */
/* ====================================== */

/* Page containers layout optimization - CONSISTENT ACROSS ALL PAGES */
#dashboardContent,
#studentsContainer,
#instructorsContainer,
#lessonsContainer,
#paymentsContainer,
#paymentContainer,
#demo-sessionsContainer,
#class-schedulerContainer,
#user-managementContainer,
#video-resourcesContainer,
#trainer-dashboardContainer,
#student-dashboardContainer,
#settingsContainer,
#supportContainer,
#reportsContainer,
#announcementsContainer,
#course-progressContainer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 100%;
    padding: 0 20px; /* Horizontal padding for spacing from sidebar */
    margin-top: 8px; /* Consistent top spacing */
}

/* Students stats grid enhancement */
#studentsContainer .material-stats-grid {
    margin-bottom: 5px;
}

/* Students directory card specific styling */
#studentsContainer .material-card {
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex child to shrink */
}

#studentsContainer .material-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* Students filters section - override for compact */
#studentsContainer .compact-filters .filters-content {
    padding: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    height: 40px !important;
}

#studentsContainer .filters-content {
    padding: 5px 5px 3px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Students table wrapper */
#studentsContainer .table-responsive {
    flex: 1;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: white;
    overflow: auto;
}

/* Students table specific styling */
#studentsContainer .table-material {
    margin: 0;
}

#studentsContainer .table-material tbody td {
    padding: 3px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Enhanced email and phone display */
#studentsContainer .table-material tbody td[data-column="email"],
#studentsContainer .table-material tbody td[data-column="phone"] {
    max-width: 180px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Student name styling */
#studentsContainer .table-material tbody td[data-column="name"] {
    font-weight: 600;
    color: var(--text-primary, #333);
    max-width: 150px;
}

/* Instrument and level styling */
#studentsContainer .table-material tbody td[data-column="instrument"] .instrument-tag,
#studentsContainer .table-material tbody td[data-column="level"] .level-badge {
    display: inline-block;
    white-space: nowrap;
}

/* Status column styling */
#studentsContainer .table-material tbody td[data-column="status"] .status-badge {
    display: inline-block;
    white-space: nowrap;
}

/* Actions column styling */
#studentsContainer .table-material tbody td[data-column="actions"] {
    width: 120px;
    min-width: 120px;
    text-align: center;
}

/* Enhanced pagination for students */
#studentsContainer .table-pagination {
    padding: 3px 5px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
}

/* Students loading and empty states */
#studentsContainer .loading-container,
#studentsContainer .empty-state {
    padding: 5px;
    text-align: center;
    color: var(--text-secondary, #666);
}

/* Search field optimization for students */
#studentsContainer .search-field {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

#studentsContainer .search-field input {
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius, 8px);
    padding: 3px 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#studentsContainer .search-field input:focus {
    border-color: var(--primary-color, #E65878);
    box-shadow: none !important;
    outline: none !important;
}

/* Filter controls for students - but not compact */
#studentsContainer .filter-controls select:not(.compact-filters .filter-controls select) {
    min-width: 140px;
    padding: 3px 5px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius, 8px);
    background: white;
    font-size: 0.9rem;
}

#studentsContainer .filter-controls select:focus:not(.compact-filters .filter-controls select:focus) {
    border-color: var(--primary-color, #E65878);
    box-shadow: none !important;
    outline: none !important;
}

/* Override responsive for compact filters */
@media (max-width: 768px) {
    #studentsContainer .filters-content:not(.compact-filters .filters-content) {
        flex-direction: column;
        gap: 3px;
    }
    
    #studentsContainer .search-field:not(.compact-filters .search-field) {
        min-width: 100%;
        max-width: 100%;
    }
    
    #studentsContainer .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    
    #studentsContainer .filter-controls select {
        min-width: 100%;
    }
    
    #studentsContainer .table-material tbody td {
        padding: 2px;
        max-width: 120px;
        font-size: 0.85rem;
    }
}

/* ====================================== */
/* HORIZONTAL COMPACT BAR - ALL PAGES */
/* =================================== */

/* Enhanced Single Horizontal Compact Filters Bar */
.compact-filters {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: white !important;
    /* Enhanced gradient border box shadow to match header */
    box-shadow: 
        0 0 0 1px rgba(247, 8, 128, 0.12),
        0 1px 4px rgba(247, 8, 128, 0.08),
        0 2px 8px rgba(255, 133, 82, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.05) !important;
    min-height: 52px !important;
    max-height: 52px !important;
    height: 52px !important;
    overflow: hidden !important;
    width: 100% !important;
    border-radius: 12px !important;
    border: 1px solid rgba(247, 8, 128, 0.1) !important;
    transition: all 0.2s ease !important;
}

.compact-filters:hover {
    box-shadow: 
        0 0 0 1px rgba(247, 8, 128, 0.15),
        0 2px 6px rgba(247, 8, 128, 0.12),
        0 4px 12px rgba(255, 133, 82, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.compact-filters .material-card-body {
    padding: 8px 16px !important;
    margin: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    background: white !important;
    border: none !important;
    border-radius: 12px !important;
}

/* Optimized Single Horizontal Bar filters content */
.compact-filters .filters-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
}

/* Enhanced search field in horizontal bar - GLOBAL */
.compact-filters .search-field {
    flex: 1 1 300px !important;
    min-width: 250px !important;
    max-width: 400px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.compact-filters .mdc-text-field {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.compact-filters .mdc-text-field__input {
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    font-size: 14px !important;
    border: 1px solid rgba(247, 8, 128, 0.2) !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    background: rgba(247, 8, 128, 0.02) !important;
    transition: all 0.2s ease !important;
}

.compact-filters .mdc-text-field__input:focus {
    border-color: rgba(247, 8, 128, 0.4) !important;
    background: rgba(247, 8, 128, 0.05) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Horizontal bar filter controls - GLOBAL */
/* Optimized filter controls for single horizontal bar */
.compact-filters .filter-controls {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    height: 36px !important;
    overflow: visible !important;
}

/* Enhanced compact selects with theme styling */
.compact-filters .filter-controls select,
.compact-filters .form-select {
    flex: 0 0 auto !important;
    width: 150px !important;
    min-width: 130px !important;
    max-width: 170px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border: 1px solid rgba(247, 8, 128, 0.2) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    background: white !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    display: inline-block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: rgba(31, 41, 55, 0.9) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.compact-filters .filter-controls select:hover,
.compact-filters .form-select:hover {
    border-color: rgba(247, 8, 128, 0.3) !important;
    background: rgba(247, 8, 128, 0.05) !important;
}

.compact-filters .filter-controls select:focus,
.compact-filters .form-select:focus {
    border-color: rgba(247, 8, 128, 0.4) !important;
    background: rgba(247, 8, 128, 0.08) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove ALL MDC styling that could cause extra space - GLOBAL */
.compact-filters .mdc-text-field--outlined {
    margin: 0 !important;
    padding: 0 !important;
    height: 36px !important;
}

.compact-filters .mdc-notched-outline {
    display: none !important;
}

.compact-filters .mdc-floating-label {
    display: none !important;
}

/* Force remove any possible extra elements - GLOBAL */
.compact-filters .mdc-text-field .mdc-notched-outline__leading,
.compact-filters .mdc-text-field .mdc-notched-outline__notch,
.compact-filters .mdc-text-field .mdc-notched-outline__trailing {
    display: none !important;
}

/* Remove any ::before or ::after pseudo elements - GLOBAL */
.compact-filters *::before,
.compact-filters *::after {
    display: none !important;
    content: none !important;
}

/* Force all child elements to have no margin or padding - GLOBAL */
.compact-filters * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.compact-filters .filters-content *,
.compact-filters .filter-controls * {
    margin: 0 !important;
    vertical-align: middle !important;
    float: none !important;
}

/* Override any inherited styles - GLOBAL */
.compact-filters,
.compact-filters * {
    line-height: normal !important;
    font-family: inherit !important;
}

/* Apply to ALL containers - not just students */
[id$="Container"] .compact-filters {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[id$="Container"] .compact-filters .material-card-body {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
}

/* Ensure no extra space in any container filters */
[id$="Container"] .compact-filters .filters-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force all containers search and filters to stay on one line */
[id$="Container"] .compact-filters .search-field {
    flex-shrink: 0 !important;
}

[id$="Container"] .compact-filters .filter-controls {
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* Remove any possible inherited padding from any container */
[id$="Container"] .material-card .filters-content {
    padding: 0 !important;
}

/* Override all containers responsive behavior for compact filters */
@media (min-width: 769px) {
    [id$="Container"] .compact-filters .filters-content {
        flex-wrap: nowrap !important;
        height: 36px !important;
    }
    
    [id$="Container"] .compact-filters .search-field {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }
    
    [id$="Container"] .compact-filters .filter-controls {
        width: auto !important;
        flex-direction: row !important;
    }
    
    [id$="Container"] .compact-filters .filter-controls select {
        width: 125px !important;
        min-width: 125px !important;
        max-width: 125px !important;
    }
}

/* Responsive - only for very small screens - GLOBAL */
@media (max-width: 600px) {
    .compact-filters .filters-content {
        flex-wrap: wrap !important;
        gap: 4px !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .compact-filters .search-field {
        flex: 1 1 100% !important;
        margin-bottom: 4px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .compact-filters .filter-controls {
        flex: 1 1 100% !important;
        justify-content: space-between !important;
        margin-left: 0 !important;
    }
    
    .compact-filters .filter-controls select {
        flex: 1 !important;
        min-width: auto !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* ====================================== */

/* Global Material Icons Support - Ensure proper font loading */
.material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    direction: ltr !important;
    -webkit-font-feature-settings: 'liga' !important;
    font-feature-settings: 'liga' !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    vertical-align: middle !important;
    user-select: none !important;
}

/* Trainers Page Specific Enhancements with Enhanced Theme Integration */
/* ===================================================================== */

#instructorsContainer .compact-filters .material-card-body .filters-content {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
    min-height: 48px !important;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Follow material-card pattern for proper element visibility */
#instructorsContainer .compact-filters.material-card {
    margin-bottom: 20px !important;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14) !important;
}

#instructorsContainer .compact-filters .material-card-body {
    padding: 16px 20px !important;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 64px;
    width: 100%;
    box-sizing: border-box;
}

#instructorsContainer .compact-filters .material-card-body .search-field {
    position: relative;
    flex: 1 1 300px !important;
    max-width: 350px !important;
    min-width: 250px !important;
    display: flex;
    align-items: center;
    margin-right: 16px;
    height: 48px;
    visibility: visible !important;
    opacity: 1 !important;
}

#instructorsContainer .compact-filters .material-card-body .filter-controls {
    display: flex;
    align-items: center;
    gap: 12px !important;
    flex: 0 0 auto;
    margin: 0 16px 0 0;
    min-width: fit-content;
    height: 48px;
    visibility: visible !important;
    opacity: 1 !important;
}

#instructorsContainer .compact-filters .material-card-body .action-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    min-width: fit-content !important;
    height: 48px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ====================================== */
/* ====================================== */
/* SCHEDULER SPECIFIC STYLES */
/* ====================================== */

/* Scheduler specific styles */
.scheduler-calendar {
    width: 100%;
    min-height: 420px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
}

/* Disable hover effects on schedule list table */
.schedule-list-table tbody tr:hover,
.schedule-list-table .mdc-data-table__row:hover,
#scheduleListTable tbody tr:hover,
#scheduleListTable .mdc-data-table__row:hover {
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.schedule-list-table tbody tr,
.schedule-list-table .mdc-data-table__row,
#scheduleListTable tbody tr,
#scheduleListTable .mdc-data-table__row {
    transition: none !important;
}

.calendar-header {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.calendar-header .time-column {
    font-weight: 600;
    color: var(--text-secondary, #666);
}
.calendar-body {
    max-height: 560px;
    overflow: auto;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.calendar-row {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 6px;
    align-items: stretch;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 6px 0;
}
.time-slot { padding: 6px 8px; color: #555; }
.day-slot {
    min-height: 48px;
    border-radius: 6px;
    background: rgba(0,0,0,0.02);
    padding: 4px;
    box-sizing: border-box;
    transition: background 0.2s;
}
.day-slot:hover:not(.occupied) {
    background: rgba(25, 118, 210, 0.08);
}
.day-slot.occupied { 
    background: rgba(230,88,120,0.06); 
}
.scheduled-lesson {
    background: linear-gradient(135deg, rgba(230,88,120,0.12), rgba(241,174,146,0.08));
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    border-left: 3px solid #e65878;
    transition: all 0.2s;
}
.scheduled-lesson:hover {
    background: linear-gradient(135deg, rgba(230,88,120,0.18), rgba(241,174,146,0.12));
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.scheduled-lesson .lesson-student { 
    font-weight: 700; 
    color: #333;
    font-size: 13px;
    margin-bottom: 2px;
}
.scheduled-lesson .lesson-trainer {
    color: #666;
    font-size: 11px;
    margin-bottom: 2px;
}
.scheduled-lesson .lesson-instrument,
.scheduled-lesson .lesson-duration {
    color: #999;
    font-size: 10px;
}
.scheduled-lesson .lesson-time {
    font-weight: 600;
    color: #1976d2;
    font-size: 12px;
    margin-bottom: 4px;
}

/* Month View Styling */
.month-view { 
    display: block; 
    width: 100%;
}
.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 8px 4px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 8px;
}
.month-header .weekday {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 13px;
}
.month-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 4px; 
    width: 100%;
}
.month-day { 
    min-height: 90px; 
    background: #fafafa; 
    padding: 6px; 
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    overflow-y: auto;
    transition: all 0.2s;
}
.month-day:hover:not(.empty) {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.month-day.empty { 
    background: transparent;
    border: none;
    cursor: default;
}
.month-day.occupied {
    background: #e3f2fd;
}

/* Day View Styling */
.day-view {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.day-view .day-header {
    background: #1976d2;
    color: white;
    padding: 12px 16px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
}
.day-view .day-schedule {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}
.day-view .time-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    border-bottom: 1px solid #f0f0f0;
    min-height: 60px;
}
.day-view .time-row:last-child {
    border-bottom: none;
}
.day-view .time-label {
    padding: 12px;
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e0e0e0;
    font-size: 14px;
}
.day-view .time-content {
    padding: 8px 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}
.day-view .time-content:hover:not(.occupied) {
    background: #f5f5f5;
}
.day-view .time-content.occupied {
    background: #e8f5e9;
}

/* Timeline Compact Styling */
.timeline-date-group {
    margin-bottom: 20px;
}
.timeline-date-group h4 {
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}
.timeline-lessons {
    display: grid;
    gap: 6px;
}
.timeline-lesson-card {
    transition: all 0.15s;
}
.timeline-lesson-card:hover {
    transform: translateX(2px);
}
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge.status-scheduled {
    background: #e3f2fd;
    color: #1976d2;
}
.status-badge.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-badge.status-cancelled {
    background: #ffebee;
    color: #c62828;
}
.status-badge.status-pending {
    background: #fff3e0;
    color: #f57c00;
}
.status-badge.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-badge.status-inactive {
    background: #ffebee;
    color: #c62828;
}

/* Modal styles used across scheduler */
/* ===================================================================
   MODAL STYLES MOVED TO modal.css - 2026-02-14
   =================================================================== */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.form-grid label { font-weight:600; font-size:0.9rem; }
.form-control { width:100%; padding:8px; border:1px solid #e0e0e0; border-radius:6px; }
.lesson-list .lesson-row { padding:6px 0; border-bottom:1px dashed rgba(0,0,0,0.04); }


/* MDC Button Labels for Trainers */
.trainers-btn-primary .mdc-button__label,
.trainers-btn-secondary .mdc-button__label,
#instructorsContainer .mdc-button__label {
    font-weight: 600 !important;
    letter-spacing: 0.025em !important;
}

/* Focus states for accessibility */
.trainers-btn-primary:focus,
.trainers-btn-secondary:focus,
#instructorsContainer .mdc-button:focus {
    outline: 2px solid rgba(247, 8, 128, 0.4) !important;
    outline-offset: 2px !important;
}

.trainers-btn-secondary:focus,
#instructorsContainer .mdc-button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive adjustments for trainers buttons */
@media (max-width: 768px) {
    .trainers-btn-primary,
    .trainers-btn-secondary,
    #instructorsContainer .mdc-button {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .trainers-btn-primary .mdc-button__icon,
    .trainers-btn-secondary .mdc-button__icon,
    #instructorsContainer .mdc-button__icon {
        font-size: 16px !important;
        margin-right: 6px !important;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================================= */
/* STUDENTS CONTROLS CONSOLIDATED CARD */
/* ================================= */

/* Students Controls Consolidated Card */
.students-controls-card {
    margin-bottom: 16px !important;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    flex: none; /* Override the flex: 1 from #studentsContainer .material-card */
}

.students-controls-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: none;
}

.students-controls-card .material-card-body {
    padding: 10px 14px !important;
}

.students-controls-grid {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    min-height: 38px;
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Search Section - MDC Components */
.students-controls-card .search-field-enhanced {
    flex: 0 1 300px !important;
    min-width: 200px !important;
    height: 38px !important;
}

.students-controls-card .search-field-enhanced .mdc-text-field__input {
    height: 38px !important;
    padding: 0 12px 0 40px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    color: #495057 !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
}

.students-controls-card .search-field-enhanced .mdc-text-field__input::placeholder {
    color: #adb5bd !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 38px !important;
    opacity: 1 !important;
}

.students-controls-card .search-field-enhanced .mdc-text-field__icon--leading {
    left: 8px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.students-controls-card .search-field-enhanced .mdc-floating-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Filters Section */
.students-controls-card .filter-chips {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.students-controls-card .filter-select {
    height: 38px !important;
    padding: 6px 32px 6px 10px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 4px !important;
    background: white !important;
    min-width: 140px !important;
    cursor: pointer !important;
}

/* Actions Section */
.students-controls-card .actions-section {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

.students-controls-card .actions-section .mdc-button {
    height: 36px;
    min-width: auto;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 5px !important;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    border-width: 2px;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.students-controls-card .actions-section .mdc-button .mdc-button__icon {
    font-size: 18px;
    margin-right: 4px;
    margin-left: 0;
}

.students-controls-card .actions-section .mdc-button .mdc-button__label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Enhanced Theme Colors for Students Buttons in Controls Card */
.students-controls-card .students-btn-primary {
    background-color: var(--primary-color, #E65878) !important;
    border-color: var(--primary-color, #E65878) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(230, 88, 120, 0.2);
}

.students-controls-card .students-btn-primary:hover {
    background-color: #d94868 !important;
    border-color: #d94868 !important;
    box-shadow: 0 4px 12px rgba(230, 88, 120, 0.3) !important;
    transform: translateY(-1px);
}

.students-controls-card .students-btn-secondary {
    background-color: transparent !important;
    border-color: var(--primary-color, #E65878) !important;
    color: var(--primary-color, #E65878) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.students-controls-card .students-btn-secondary:hover {
    background-color: rgba(230, 88, 120, 0.08) !important;
    border-color: #d94868 !important;
    color: #d94868 !important;
    box-shadow: 0 2px 8px rgba(230, 88, 120, 0.15) !important;
    transform: translateY(-1px);
}

/* Responsive Design for Students Controls */
@media (max-width: 1200px) {
    .students-controls-grid {
        flex-direction: column;
        gap: 16px;
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }
    
    .students-controls-card .search-section,
    .students-controls-card .filters-section,
    .students-controls-card .actions-section {
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .students-controls-card .search-section .search-field {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .students-controls-card .filters-section {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .students-controls-card .filters-section .compact-select {
        min-width: 120px;
        flex: 1 1 auto;
        max-width: 200px;
    }
    
    .students-controls-card .actions-section {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .students-controls-card .actions-section .mdc-button {
        flex: 1 1 auto;
        min-width: 120px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .students-controls-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .students-controls-card .material-card-body {
        padding: 16px 20px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .students-controls-grid {
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .students-controls-card .search-section .search-field,
    .students-controls-card .filters-section .compact-select,
    .students-controls-card .actions-section .mdc-button {
        height: 40px;
    }
    
    .students-controls-card .actions-section .mdc-button .mdc-button__label {
        display: none;
    }
    
    .students-controls-card .actions-section .mdc-button .mdc-button__icon {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .students-controls-card .material-card-body {
        padding: 12px 16px !important;
    }
    
    .students-controls-card .filters-section .compact-select {
        min-width: 100px;
        font-size: 13px;
    }
    
    .students-controls-card .search-section .compact-search-input {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .students-controls-grid {
        padding: 12px;
        gap: 12px;
    }
    
    .students-controls-card .filters-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .students-controls-card .filters-section .compact-select {
        width: 100%;
        margin: 0;
    }
    
    .students-controls-card .actions-section .mdc-button .mdc-button__label {
        display: none;
    }
    
    .students-controls-card .actions-section .mdc-button .mdc-button__icon {
        margin: 0;
    }
    
    .students-controls-card .actions-section .mdc-button {
        min-width: 44px;
        padding: 0 8px;
    }
}

/* ====================================== */
/* UNIFIED SEARCH FIELD STYLES */
/* ====================================== */

/* All search field enhanced inputs - unified styling with perfect vertical centering */
.search-field-enhanced .mdc-text-field__input {
    height: 38px !important;
    padding: 0 12px 0 40px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    color: #495057 !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
}

/* All search field placeholders - unified styling */
.search-field-enhanced .mdc-text-field__input::placeholder {
    color: #adb5bd !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 38px !important;
    opacity: 1 !important;
}

/* All search field icons - unified positioning */
.search-field-enhanced .mdc-text-field__icon--leading {
    left: 8px !important;
    color: #6c757d !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* All search field floating labels - unified styling */
.search-field-enhanced .mdc-floating-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Specific overrides for different containers to maintain consistency */
#studentsContainer .search-field-enhanced .mdc-text-field__input,
#instructorsContainer .search-field-enhanced .mdc-text-field__input,
#demo-sessionsContainer .search-field-enhanced .mdc-text-field__input,
#user-managementContainer .search-field-enhanced .mdc-text-field__input,
#videoResourcesContainer .search-field-enhanced .mdc-text-field__input,
#paymentContainer .search-field-enhanced .mdc-text-field__input {
    height: 38px !important;
    padding: 0 12px 0 40px !important;
    font-size: 14px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
}

#studentsContainer .search-field-enhanced .mdc-text-field__input::placeholder,
#instructorsContainer .search-field-enhanced .mdc-text-field__input::placeholder,
#demo-sessionsContainer .search-field-enhanced .mdc-text-field__input::placeholder,
#user-managementContainer .search-field-enhanced .mdc-text-field__input::placeholder,
#videoResourcesContainer .search-field-enhanced .mdc-text-field__input::placeholder,
#paymentContainer .search-field-enhanced .mdc-text-field__input::placeholder {
    color: #adb5bd !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 38px !important;
    opacity: 1 !important;
}

/* ====================================== */
/* GLOBAL INPUT PLACEHOLDER FIX */
/* ====================================== */

/* Ensure search field containers maintain proper structure */
.search-field-enhanced,
.mdc-text-field--with-leading-icon,
.mdc-text-field--outlined {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 8px !important;
}

/* Force all search field icons to be properly positioned */
.search-field-enhanced .mdc-text-field__icon--leading,
.mdc-text-field--with-leading-icon .mdc-text-field__icon--leading,
.mdc-text-field__icon--leading {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
    font-size: 20px !important;
    color: #6c757d !important;
}

/* Force all input fields to have consistent height and line-height */
input[type="text"]:not(#username):not(#password),
input[type="email"]:not(#username):not(#password),
input[type="tel"]:not(#username):not(#password),
input[type="number"]:not(#username):not(#password),
input[type="password"]:not(#password),
input[type="url"]:not(#username):not(#password),
input.form-input,
input.mdc-text-field__input {
    height: 38px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Search filter inputs need extra left padding for search icon */
#studentSearch,
#trainersSearch,
#demoSearch,
#paymentsSearch,
#videoSearch,
#userSearch {
    height: 38px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 48px !important;
    padding-right: 12px !important;
}

/* Force all input placeholders to align properly */
input[type="text"]:not(#username):not(#password)::placeholder,
input[type="email"]:not(#username):not(#password)::placeholder,
input[type="tel"]:not(#username):not(#password)::placeholder,
input[type="number"]:not(#username):not(#password)::placeholder,
input[type="password"]:not(#password)::placeholder,
input[type="url"]:not(#username):not(#password)::placeholder,
input.form-input::placeholder,
input.mdc-text-field__input::placeholder,
#studentSearch::placeholder,
#trainersSearch::placeholder,
#demoSearch::placeholder,
#paymentsSearch::placeholder,
#videoSearch::placeholder,
#userSearch::placeholder {
    line-height: 38px !important;
    opacity: 1 !important;
}

/* ---------------------------------------------------------------------- */
/* Admin — Reports & Analytics: table alignment */
/* ---------------------------------------------------------------------- */
#reportsContainer .reports-table-wrap {
    margin: 0;
}

#reportsContainer .reports-data-table {
    width: 100%;
    border-collapse: collapse;
}

#reportsContainer .reports-data-table th,
#reportsContainer .reports-data-table td {
    vertical-align: middle;
    padding: 10px 14px;
}

#reportsContainer .reports-data-table thead th {
    font-weight: 600;
}

/* Reports tables reuse .table-material; global table.css assigns 4%/18%/… widths
   and ellipsis for student lists — reset here so Month / Trainer labels stay readable. */
#reportsContainer .reports-data-table.table-material {
    table-layout: auto !important;
}

#reportsContainer .reports-data-table.table-material thead th,
#reportsContainer .reports-data-table.table-material tbody td {
    width: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

#reportsContainer .reports-data-table.table-material tbody td {
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: default !important;
    text-decoration: none !important;
}

/* Revenue by month: Month | Revenue | Growth */
#reportsContainer .reports-table-revenue-by-month thead th:nth-child(1),
#reportsContainer .reports-table-revenue-by-month tbody td:nth-child(1) {
    text-align: left !important;
    min-width: 9rem;
    font-weight: 500 !important;
}

#reportsContainer .reports-table-revenue-by-month thead th:nth-child(2),
#reportsContainer .reports-table-revenue-by-month tbody td:nth-child(2),
#reportsContainer .reports-table-revenue-by-month thead th:nth-child(3),
#reportsContainer .reports-table-revenue-by-month tbody td:nth-child(3) {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#reportsContainer .reports-table-revenue-by-month tbody td:nth-child(3) {
    font-family: inherit !important;
}

/* Trainer rankings */
#reportsContainer .reports-table-trainer-rankings thead th:nth-child(1),
#reportsContainer .reports-table-trainer-rankings tbody td:nth-child(1) {
    text-align: center !important;
    width: 4.5rem;
}

#reportsContainer .reports-table-trainer-rankings thead th:nth-child(2),
#reportsContainer .reports-table-trainer-rankings tbody td:nth-child(2) {
    text-align: left !important;
    min-width: 10rem;
    font-weight: 600 !important;
}

#reportsContainer .reports-table-trainer-rankings thead th:nth-child(3),
#reportsContainer .reports-table-trainer-rankings tbody td:nth-child(3),
#reportsContainer .reports-table-trainer-rankings thead th:nth-child(4),
#reportsContainer .reports-table-trainer-rankings tbody td:nth-child(4),
#reportsContainer .reports-table-trainer-rankings thead th:nth-child(6),
#reportsContainer .reports-table-trainer-rankings tbody td:nth-child(6) {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

#reportsContainer .reports-table-trainer-rankings thead th:nth-child(5),
#reportsContainer .reports-table-trainer-rankings tbody td:nth-child(5) {
    text-align: center !important;
}

/* Demos by trainer */
#reportsContainer .reports-table-demo-by-trainer thead th:nth-child(1),
#reportsContainer .reports-table-demo-by-trainer tbody td:nth-child(1) {
    text-align: left !important;
    min-width: 11rem;
    max-width: 42%;
    font-weight: 600 !important;
}

#reportsContainer .reports-table-demo-by-trainer thead th:nth-child(2),
#reportsContainer .reports-table-demo-by-trainer tbody td:nth-child(2),
#reportsContainer .reports-table-demo-by-trainer thead th:nth-child(3),
#reportsContainer .reports-table-demo-by-trainer tbody td:nth-child(3),
#reportsContainer .reports-table-demo-by-trainer thead th:nth-child(4),
#reportsContainer .reports-table-demo-by-trainer tbody td:nth-child(4) {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Reports — paginated table cards & pagination controls */
#reportsContainer .reports-split-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

#reportsContainer .reports-split-grid--table-first {
    grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
    #reportsContainer .reports-split-grid--table-first {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: start;
    }
}

#reportsContainer .reports-paginated-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#reportsContainer .reports-paginated-card-body {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

#reportsContainer .reports-paginated-card-body .reports-table-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

#reportsContainer .reports-table-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 0;
    padding: 12px 16px;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    width: 100%;
}

#reportsContainer .reports-table-pagination--empty {
    justify-content: center;
    background: transparent;
    border-top: none;
    padding: 8px 0 0;
}

#reportsContainer .reports-pagination-info,
#reportsContainer .reports-pagination-info span,
#reportsContainer .reports-pagination-info strong {
    display: inline;
    white-space: nowrap;
}

#reportsContainer .reports-pagination-info {
    flex: 0 0 auto;
    min-width: max-content;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

#reportsContainer .reports-pagination-info strong {
    color: #333;
    font-weight: 600;
}

#reportsContainer .reports-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 220px;
    min-width: 0;
}

#reportsContainer .reports-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
}

#reportsContainer .reports-pagination-btn,
#reportsContainer .reports-pagination-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#reportsContainer .reports-pagination-btn {
    width: 32px;
    padding: 0;
}

#reportsContainer .reports-pagination-btn--text {
    width: auto;
    padding: 0 12px;
    gap: 4px;
}

#reportsContainer .reports-pagination-btn .material-icons {
    font-size: 20px;
    line-height: 1;
}

#reportsContainer .reports-pagination-page-btn:hover:not(.active):not(:disabled),
#reportsContainer .reports-pagination-btn:hover:not(:disabled) {
    background: #fff5f9;
    border-color: #f70880;
    color: #f70880;
}

#reportsContainer .reports-pagination-page-btn.active {
    background: linear-gradient(135deg, #f70880 0%, #ff8552 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 6px rgba(247, 8, 128, 0.25);
}

#reportsContainer .reports-pagination-btn:disabled,
#reportsContainer .reports-pagination-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

#reportsContainer .reports-pagination-ellipsis {
    padding: 0 2px;
    color: #9e9e9e;
    user-select: none;
    line-height: 32px;
}

@media (max-width: 640px) {
    #reportsContainer .reports-table-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    #reportsContainer .reports-pagination-nav {
        justify-content: center;
    }
}

/* ---------------------------------------------------------------------- */
/* Admin — All payments: column widths & alignment */
/* ---------------------------------------------------------------------- */
/* paymentContainer cards use overflow:hidden in demo-sessions.css — allow table/actions to paint */
#paymentContainer #all-payments .material-card,
#paymentContainer #all-payments .material-card-body {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

#paymentContainer #all-payments .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

#paymentContainer #all-payments .admin-all-payments-table.mdc-data-table__table .mdc-data-table__cell,
#paymentContainer #all-payments .admin-all-payments-table.mdc-data-table__table .mdc-data-table__header-cell {
    vertical-align: middle !important;
}

#all-payments .admin-all-payments-table .admin-payments-col-sn {
    width: 3.5rem;
    min-width: 3.25rem;
    max-width: 4.5rem;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    font-variant-numeric: tabular-nums;
}

#all-payments .admin-all-payments-table .admin-payments-col-student {
    min-width: 11rem;
    width: 28%;
    text-align: left;
}

#all-payments .admin-all-payments-table .admin-payments-col-amount,
#all-payments .admin-all-payments-table .admin-payments-col-date {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#all-payments .admin-all-payments-table .admin-payments-col-status {
    text-align: center;
}

#all-payments .admin-all-payments-table .admin-payments-col-method {
    text-align: left;
}

#all-payments .admin-all-payments-table .admin-payments-col-actions {
    text-align: center;
    vertical-align: middle !important;
    width: 100px;
    min-width: 100px;
    overflow: visible !important;
    padding: 4px !important;
    white-space: nowrap;
}

#all-payments .admin-all-payments-table th,
#all-payments .admin-all-payments-table td {
    vertical-align: middle;
}

/* ---------------------------------------------------------------------- */
/* Payment — Trainer Earnings table + themed pagination */
/* ---------------------------------------------------------------------- */
#paymentContainer #trainer-earnings .trainer-earnings-data-card,
#paymentContainer #trainer-earnings .trainer-earnings-table-body {
    overflow: visible !important;
}

#paymentContainer #trainer-earnings .trainer-earnings-data-card .material-card-body {
    padding: 0 !important;
}

#paymentContainer #trainer-earnings .trainer-earnings-data-card .table-responsive {
    padding: 12px 16px 0;
    overflow-x: auto !important;
}

#paymentContainer #trainer-earnings .trainer-earnings-data-card,
#paymentContainer #trainer-earnings .trainer-earnings-table-body {
    overflow: visible !important;
}

#paymentContainer .payment-table-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 0;
    padding: 12px 16px;
    border-top: 1px solid #e8e8e8;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    width: 100%;
}

#paymentContainer .payment-table-pagination--compact {
    justify-content: center;
}

#paymentContainer .payment-pagination-info,
#paymentContainer .payment-pagination-info span,
#paymentContainer .payment-pagination-info strong {
    display: inline;
    white-space: nowrap;
}

#paymentContainer .payment-pagination-info {
    flex: 0 0 auto;
    min-width: max-content;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

#paymentContainer .payment-pagination-info strong {
    color: #333;
    font-weight: 600;
}

#paymentContainer .payment-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 220px;
    min-width: 0;
}

#paymentContainer .payment-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
}

#paymentContainer .payment-pagination-btn,
#paymentContainer .payment-pagination-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#paymentContainer .payment-pagination-btn {
    width: 32px;
    padding: 0;
}

#paymentContainer .payment-pagination-btn .material-icons {
    font-size: 20px;
    line-height: 1;
}

#paymentContainer .payment-pagination-page-btn:hover:not(.active):not(:disabled),
#paymentContainer .payment-pagination-btn:hover:not(:disabled) {
    background: #fff5f9;
    border-color: #f70880;
    color: #f70880;
}

#paymentContainer .payment-pagination-page-btn.active {
    background: linear-gradient(135deg, #f70880 0%, #ff8552 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 6px rgba(247, 8, 128, 0.25);
}

#paymentContainer .payment-pagination-btn:disabled,
#paymentContainer .payment-pagination-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

#paymentContainer .payment-pagination-ellipsis {
    padding: 0 2px;
    color: #9e9e9e;
    user-select: none;
    line-height: 32px;
}

@media (max-width: 640px) {
    #paymentContainer .payment-table-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    #paymentContainer .payment-pagination-nav {
        justify-content: center;
    }
}

/* ====================================== */
/* END OF COMMON CSS */
/* ====================================== */