/* Configuration Wizard Redesign CSS */

/* Root variables for consistent theming */
:root {
    --wizard-primary: #8B2784;
    --wizard-primary-light: #B63FAF;
    --wizard-secondary: #2C5CC5;
    --wizard-success: #28a745;
    --wizard-warning: #ffc107;
    --wizard-danger: #dc3545;
    --wizard-info: #17a2b8;
    --wizard-light-gray: #f8f9fa;
    --wizard-medium-gray: #6c757d;
    --wizard-dark-gray: #343a40;
    --wizard-white: #ffffff;
    --wizard-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --wizard-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --wizard-shadow-hover: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
    --wizard-border-radius: 0.375rem;
    --wizard-border-radius-lg: 0.5rem;
    --wizard-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wizard Container */
.wizard-container {
    background-color: var(--wizard-light-gray);
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Wizard Content Card */
.wizard-content {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow-lg);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

/* Wizard Header with Progress */
.wizard-header {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
    padding: 2rem 2.5rem;
    text-align: center;
}

.wizard-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wizard-white);
}

.wizard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Progress Breadcrumbs */
.wizard-progress {
    background: var(--wizard-white);
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #e9ecef;
}

.wizard-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-breadcrumb-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--wizard-medium-gray);
    transition: color 0.3s ease;
}

.wizard-breadcrumb-item.active {
    color: var(--wizard-primary);
    font-weight: 600;
}

.wizard-breadcrumb-item.completed {
    color: var(--wizard-success);
}

.wizard-breadcrumb-item.clickable {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wizard-breadcrumb-item.clickable:hover {
    color: var(--wizard-primary);
    text-decoration: underline;
    transform: translateY(-1px);
}

.wizard-breadcrumb-item.clickable:focus {
    outline: 2px solid var(--wizard-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.wizard-breadcrumb-separator {
    color: #dee2e6;
    margin: 0 0.75rem;
    font-size: 0.875rem;
}

/* Main Content Area */
.wizard-main {
    padding: 3rem 2.5rem;
}

/* Welcome Step Specific */
.welcome-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-logo-container {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    border-radius: var(--wizard-border-radius-lg);
    padding: 4rem;
    margin-bottom: 2rem;
    box-shadow: var(--wizard-shadow-lg);
}

.welcome-logo {
    max-width: 300px;
    height: auto;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 1rem;
}

.welcome-description {
    font-size: 1.1rem;
    color: var(--wizard-medium-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* School Type Selection Cards */
.school-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.school-type-card {
    background: var(--wizard-white);
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--wizard-shadow);
}

.school-type-card:hover {
    border-color: var(--wizard-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-lg);
}

.school-type-card.selected {
    border-color: var(--wizard-primary);
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
}

.school-type-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--wizard-medium-gray);
    transition: all 0.3s ease;
}

.school-type-card.selected .school-type-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--wizard-white);
}

.school-type-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Form Elements */
.wizard-form-group {
    margin-bottom: 2rem;
}

.wizard-label {
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 0.75rem;
    display: block;
}

.wizard-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wizard-input:focus {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25);
}

/* Logo Upload Area */
.logo-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: var(--wizard-border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-upload-area:hover {
    border-color: var(--wizard-primary-light);
    background: #f8f9fa;
}

.logo-upload-area.has-logo {
    border-style: solid;
    border-color: var(--wizard-success);
    background: #f8fff9;
}

.logo-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: var(--wizard-border-radius);
    margin-bottom: 1rem;
}

/* Editable List Component */
.editable-list {
    background: var(--wizard-white);
    border: 1px solid #e9ecef;
    border-radius: var(--wizard-border-radius-lg);
    overflow: hidden;
}

.editable-list-header {
    background: var(--wizard-light-gray);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.editable-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin: 0;
}

.editable-list-description {
    color: var(--wizard-medium-gray);
    margin: 0.5rem 0 0;
}

.editable-list-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.editable-list-item:hover {
    background-color: #f8f9fa;
}

.editable-list-item:last-child {
    border-bottom: none;
}

.editable-list-content {
    flex: 1;
    font-weight: 500;
    color: var(--wizard-dark-gray);
}

.editable-list-actions {
    display: flex;
    gap: 0.5rem;
}

.list-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--wizard-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-action-btn.edit {
    background: #e3f2fd;
    color: #1976d2;
}

.list-action-btn.delete {
    background: #ffebee;
    color: #d32f2f;
}

.list-action-btn:hover {
    transform: scale(1.1);
}

/* Add Item Section */
.add-item-section {
    padding: 1.5rem;
    background: #fafbfc;
    border-top: 1px solid #e9ecef;
}

/* Buttons */
.wizard-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--wizard-border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wizard-btn-primary {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-light) 100%);
    color: var(--wizard-white);
    box-shadow: var(--wizard-shadow);
}

.wizard-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--wizard-shadow-lg);
}

.wizard-btn-secondary {
    background: var(--wizard-white);
    color: var(--wizard-medium-gray);
    border: 2px solid #e9ecef;
}

.wizard-btn-secondary:hover {
    border-color: var(--wizard-primary-light);
    color: var(--wizard-primary);
}

.wizard-btn-success {
    background: linear-gradient(135deg, var(--wizard-success) 0%, #20c997 100%);
    color: var(--wizard-white);
}

.wizard-btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Navigation Footer */
.wizard-navigation {
    padding: 2rem 2.5rem;
    background: var(--wizard-light-gray);
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wizard-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* School Type Preview Modal */
.school-type-preview-modal {
    box-shadow: var(--wizard-shadow-lg);
    border: none;
}

.school-type-preview-modal .modal-header {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
    padding: 1.5rem 2rem;
}

.school-type-modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-white);
}

.preview-category-card {
    background: var(--wizard-white);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.preview-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-lg);
}

.category-header {
    font-size: 0.9rem;
    font-weight: 600;
}

.category-items {
    min-height: 120px;
}

.category-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4 !important;
    font-size: 0.9rem;
}

.category-item:last-child {
    border-bottom: none !important;
}

.blank-config-icon {
    width: 120px; 
    height: 120px;
    background: var(--wizard-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Business Model Modal */
.business-model-modal .modal-dialog {
    max-width: 800px;
}

.business-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.business-model-option {
    background: var(--wizard-white);
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.business-model-option:hover {
    border-color: var(--wizard-primary-light);
}

.business-model-option.selected {
    border-color: var(--wizard-primary);
    background: #f8f5ff;
}

.business-model-title {
    font-weight: 600;
    color: var(--wizard-primary);
    margin-bottom: 0.5rem;
}

.business-model-description {
    color: var(--wizard-medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Final Step Success */
.success-container {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--wizard-success) 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--wizard-white);
    font-size: 3rem;
}

.success-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 1rem;
}

.success-description {
    font-size: 1.1rem;
    color: var(--wizard-medium-gray);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-container {
        padding: 1rem 0.5rem;
    }
    
    .wizard-header {
        padding: 1.5rem 1rem;
    }
    
    .wizard-title {
        font-size: 2rem;
    }
    
    .wizard-progress {
        padding: 1rem;
    }
    
    .wizard-breadcrumb {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wizard-breadcrumb-separator {
        display: none;
    }
    
    .wizard-main {
        padding: 2rem 1rem;
    }
    
    .school-type-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .school-type-card {
        padding: 1.5rem 1rem;
    }
    
    .school-type-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .wizard-navigation {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .wizard-nav-left,
    .wizard-nav-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .school-type-grid {
        grid-template-columns: 1fr;
    }
    
    .business-model-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Potential Customer Dialog Styling */
.potential-customer-dialog .e-dialog {
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow-lg);
    overflow: hidden;
}

.potential-customer-dialog .e-dlg-header {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.potential-customer-dialog .e-dlg-header-content {
    color: var(--wizard-white);
    font-size: 1.25rem;
    font-weight: 600;
}

.potential-customer-dialog .e-dlg-closeicon-btn {
    color: var(--wizard-white) !important;
    opacity: 0.8;
}

.potential-customer-dialog .e-dlg-closeicon-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.potential-customer-dialog .e-dlg-content {
    padding: 2rem;
    background: var(--wizard-white);
}

.potential-customer-dialog .e-dlg-footer {
    padding: 1.5rem 2rem;
    background: var(--wizard-light-gray);
    border-top: 1px solid #e9ecef;
}

/* Potential Customer Modal - Bootstrap Implementation */
.potential-customer-modal .modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

.potential-customer-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.potential-customer-header {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
    border: none;
    padding: 1.5rem 2rem;
}

.potential-customer-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.potential-customer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--wizard-white);
}

.potential-customer-close {
    background: none;
    border: none;
    color: var(--wizard-white);
    font-size: 1.5rem;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
    transition: var(--wizard-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.potential-customer-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wizard-white);
}

.potential-customer-body {
    padding: 1.5rem 2rem;
    background: #fafcff;
    max-height: 70vh;
    overflow-y: auto;
}

.potential-customer-footer {
    background: var(--wizard-white);
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
}

/* Potential Customer Accordion Styling */
.potential-customer-accordion {
    border: none;
}

.potential-customer-accordion .accordion-item {
    border: 1px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.potential-customer-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.potential-customer-accordion .accordion-header {
    margin-bottom: 0;
}

.potential-customer-accordion .accordion-button {
    background: var(--wizard-light-gray);
    color: var(--wizard-dark-gray);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    box-shadow: none;
    transition: var(--wizard-transition);
}

.potential-customer-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
    box-shadow: none;
}

.potential-customer-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.25rem rgba(139, 39, 132, 0.25);
}

.potential-customer-accordion .accordion-button.disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.potential-customer-accordion .accordion-body {
    padding: 1.5rem;
    background: var(--wizard-white);
}

/* Form Controls in Potential Customer Modal */
.potential-customer-body .form-floating > .form-control,
.potential-customer-body .form-floating > .form-select {
    border: 1px solid #ced4da;
    border-radius: var(--wizard-border-radius);
    transition: var(--wizard-transition);
    background: var(--wizard-white);
}

.potential-customer-body .form-floating > .form-control:focus,
.potential-customer-body .form-floating > .form-select:focus {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25);
}

.potential-customer-body .form-floating > label {
    color: var(--wizard-medium-gray);
    font-weight: 500;
}

/* Disabled accordion styling */
.potential-customer-accordion .accordion-item.disabled {
    opacity: 0.6;
}

.potential-customer-accordion .accordion-item.disabled .accordion-button {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Mobile responsive adjustments for potential customer modal */
@media (max-width: 768px) {
    .potential-customer-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .potential-customer-header {
        padding: 1rem 1.5rem;
    }
    
    .potential-customer-body {
        padding: 1rem 1.5rem;
        max-height: calc(100vh - 200px);
    }
    
    .potential-customer-footer {
        padding: 1rem 1.5rem;
    }
    
    .potential-customer-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .potential-customer-title {
        font-size: 1.1rem;
    }
    
    .potential-customer-accordion .accordion-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .potential-customer-accordion .accordion-body {
        padding: 1rem;
    }
    
    /* Ensure form elements are visible on mobile */
    .potential-customer-body .form-control, 
    .potential-customer-body .form-select {
        background: var(--wizard-white, #ffffff) !important;
        border: 1px solid #ced4da !important;
        color: var(--wizard-dark-gray, #333) !important;
    }
}

.potential-customer-dialog .e-accordion .e-acrdn-content {
    padding: 1.5rem;
    background: var(--wizard-white);
}

.potential-customer-dialog .btn-primary {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-light) 100%);
    border: none;
    border-radius: var(--wizard-border-radius);
    color: var(--wizard-white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.potential-customer-dialog .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--wizard-shadow-lg);
}

.potential-customer-dialog .btn-warning {
    background: linear-gradient(135deg, var(--wizard-warning) 0%, #ff9800 100%);
    border: none;
    border-radius: var(--wizard-border-radius);
    color: var(--wizard-white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.potential-customer-dialog .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: var(--wizard-shadow-lg);
}

.potential-customer-dialog .btn-danger {
    background: linear-gradient(135deg, var(--wizard-danger) 0%, #c62828 100%);
    border: none;
    border-radius: var(--wizard-border-radius);
    color: var(--wizard-white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.potential-customer-dialog .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--wizard-shadow-lg);
}

.potential-customer-dialog .e-input-group {
    margin-bottom: 1.5rem;
}

.potential-customer-dialog .e-input-group .e-input {
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.potential-customer-dialog .e-input-group .e-input:focus {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25);
}

.potential-customer-dialog .e-input-group .e-float-text {
    color: var(--wizard-medium-gray);
    font-weight: 500;
}

.potential-customer-dialog .e-input-group .e-float-text.e-label-top {
    color: var(--wizard-primary);
    font-weight: 600;
}

/* QR Code Button Styling */
.potential-customer-dialog .btn-adjust-font {
    background: linear-gradient(135deg, var(--wizard-secondary) 0%, #1976d2 100%);
    border: none;
    border-radius: var(--wizard-border-radius);
    color: var(--wizard-white);
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    transition: all 0.3s ease;
}

.potential-customer-dialog .btn-adjust-font:hover {
    transform: translateY(-1px);
    box-shadow: var(--wizard-shadow-lg);
}

/* Card Action Buttons for Shareable Links */
.shareable-link-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.shareable-link-actions .wizard-btn {
    flex-grow: 1;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--wizard-border-radius);
    transition: all 0.3s ease;
}

.shareable-link-actions .wizard-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--wizard-shadow);
}

.shareable-link-actions .wizard-btn-secondary {
    background: var(--wizard-white);
    color: var(--wizard-medium-gray);
    border: 1px solid #e9ecef;
}

.shareable-link-actions .wizard-btn-secondary:hover {
    border-color: var(--wizard-primary-light);
    color: var(--wizard-primary);
    background: #f8f5ff;
}

/* Loading States */
.wizard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--wizard-medium-gray);
}

.wizard-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--wizard-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Editable List Step Styles */
.wizard-editable-list-container {
    max-width: 1000px;
    margin: 0 auto;
}

.editable-list {
    background: var(--wizard-white);
}

.editable-list-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.editable-list-item:hover {
    background-color: #f8f9fa;
}

.editable-list-item:last-child {
    border-bottom: none;
}

.editable-list-item.editing {
    background-color: #fff3cd;
    border-left: 4px solid var(--wizard-warning);
}

.editable-list-item.new-item {
    background-color: #d4edda;
    border-left: 4px solid var(--wizard-success);
}

.item-content {
    width: 100%;
}

.placeholder-logo {
    width: 80px;
    height: 80px;
    background: var(--wizard-light-gray);
    border-radius: var(--wizard-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Final Step Styles */
.wizard-final-step {
    max-width: 1000px;
    margin: 0 auto;
}

.final-step-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    border-radius: 50%;
    color: var(--wizard-white);
    box-shadow: var(--wizard-shadow-lg);
}

.wizard-btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    border-radius: var(--wizard-border-radius-lg);
}

/* Configuration Summary Cards */
.configuration-summary-card {
    background: var(--wizard-white);
    border: 1px solid #e9ecef;
    border-radius: var(--wizard-border-radius-lg);
    transition: all 0.3s ease;
}

.configuration-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-white);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Progress Stats */
.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--wizard-border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.synced {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.new {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Enhanced Card Styles */
.wizard-card {
    background: var(--wizard-white);
    border: 1px solid #e9ecef;
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
    overflow: hidden;
}

.wizard-card-header {
    background: var(--wizard-light-gray);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.wizard-card-body {
    padding: 1.5rem;
}

.wizard-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

/* Input Group Enhancements */
.wizard-input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.wizard-input-group .wizard-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.wizard-input-group .wizard-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Alert Enhancements */
.wizard-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--wizard-border-radius);
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.wizard-alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wizard-alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.wizard-alert-info {
    background: #cce5ff;
    border-color: #b3d7ff;
    color: #004085;
}

/* Responsive Grid Enhancements */
@media (max-width: 768px) {
    .wizard-editable-list-container,
    .wizard-final-step {
        padding: 0 1rem;
    }
    
    .progress-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .editable-list-item .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .editable-list-item .col-md-3 {
        text-align: left !important;
    }
    
    .final-step-icon {
        width: 80px;
        height: 80px;
    }
    
    .wizard-btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Animation for New Items */
.new-item-animation {
    animation: slideInFromTop 0.5s ease-out;
}

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

/* Focus States Enhancement */
.wizard-input:focus,
.wizard-input:focus-visible {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25);
}

.wizard-btn:focus,
.wizard-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25);
}

/* Hover States for Interactive Elements */
.editable-list-item .btn:hover {
    transform: scale(1.05);
}

.wizard-card:hover {
    box-shadow: var(--wizard-shadow-lg);
}

/* Loading State for Buttons */
.wizard-btn.loading {
    position: relative;
    color: transparent;
}

.wizard-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: var(--wizard-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Course List Design System */
.course-list-container {
    background-color: var(--wizard-light-gray);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.course-list-header {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--wizard-border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--wizard-shadow-lg);
}

.course-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.course-list-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wizard-white);
}

.course-list-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.course-action-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.course-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wizard-shadow-lg);
}

.course-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.course-card-title-section {
    flex: 1;
}

.course-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin: 0 0 1rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.course-card-title:hover {
    color: var(--wizard-primary);
}

.course-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-card-actions {
    display: flex;
    gap: 0.5rem;
}

.course-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--wizard-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.course-action-btn.expand {
    background: #e3f2fd;
    color: #1976d2;
}

.course-action-btn.edit {
    background: #f3e5f5;
    color: var(--wizard-primary);
}

.course-action-btn.enable {
    background: #e8f5e8;
    color: var(--wizard-success);
}

.course-action-btn.disable {
    background: #fff3e0;
    color: var(--wizard-warning);
}

.course-action-btn:hover {
    transform: scale(1.1);
}

.course-card-summary {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #f1f3f4;
}

.course-summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

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

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wizard-primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--wizard-medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-variants-section {
    padding: 1.5rem;
}

.variants-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 1rem;
}

.variants-grid {
    display: grid;
    gap: 1rem;
}

.variant-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
}

.variant-card:hover {
    background: #e9ecef;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.variant-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin: 0;
}

.variant-hours {
    background: var(--wizard-primary);
    color: var(--wizard-white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--wizard-border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.variant-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.variant-detail {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--wizard-medium-gray);
}

.course-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
}

.empty-state-icon {
    margin-bottom: 2rem;
}

.empty-state-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 1rem;
}

.empty-state-description {
    font-size: 1.1rem;
    color: var(--wizard-medium-gray);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.course-loading-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
}

.course-dialog .e-dialog {
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow-lg);
}

/* Responsive Design for Course List */
@media (max-width: 768px) {
    .course-list-container {
        padding: 1rem 0.5rem;
    }
    
    .course-list-header {
        padding: 2rem 1rem;
    }
    
    .course-list-title {
        font-size: 2rem;
    }
    
    .course-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .course-card-actions {
        justify-content: center;
    }
    
    .course-summary-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .summary-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .course-action-bar {
        padding: 0 1rem;
    }
    
    .wizard-btn-large {
        width: 100%;
        justify-content: center;
    }
}

/* Course Edit Form Design System */
.course-edit-container {
    background-color: var(--wizard-light-gray);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.course-edit-header {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
    padding: 2rem;
    border-radius: var(--wizard-border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--wizard-shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-edit-header-content {
    flex: 1;
}

.course-edit-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--wizard-white);
}

.course-edit-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.course-edit-actions {
    display: flex;
    gap: 1rem;
}

.course-edit-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.course-main-card,
.course-variants-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.course-main-header,
.course-variants-header {
    background: var(--wizard-light-gray);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin: 0;
}

.course-main-body,
.course-variants-body {
    padding: 2rem;
}

.course-form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.course-form-group {
    display: flex;
    flex-direction: column;
}

.course-form-label {
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.course-form-input {
    padding: 0.75rem 1rem !important;
    border: 2px solid #e9ecef !important;
    border-radius: var(--wizard-border-radius) !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease !important;
}

.course-form-input:focus {
    border-color: var(--wizard-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25) !important;
}

.course-status-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-status-toggle {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--wizard-border-radius);
    border: 2px solid #e9ecef;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.variant-edit-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--wizard-border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.variant-edit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow);
}

.variant-edit-header {
    background: var(--wizard-white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-edit-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin: 0;
}

.variant-edit-actions {
    display: flex;
    gap: 0.5rem;
}

.variant-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--wizard-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.variant-action-btn.enable {
    background: #e8f5e8;
    color: var(--wizard-success);
}

.variant-action-btn.disable {
    background: #fff3e0;
    color: var(--wizard-warning);
}

.variant-action-btn:hover {
    transform: scale(1.1);
}

.variant-edit-body {
    padding: 1.5rem;
}

.variant-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.variant-form-group {
    display: flex;
    flex-direction: column;
}

.variant-form-label {
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.variant-form-input {
    padding: 0.75rem 1rem !important;
    border: 2px solid #e9ecef !important;
    border-radius: var(--wizard-border-radius) !important;
    font-size: 0.95rem !important;
    transition: border-color 0.3s ease !important;
}

.variant-form-input:focus {
    border-color: var(--wizard-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25) !important;
}

.variants-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: var(--wizard-border-radius-lg);
    border: 2px dashed #dee2e6;
}

.empty-variants-icon {
    margin-bottom: 1.5rem;
}

.empty-variants-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 1rem;
}

.empty-variants-description {
    font-size: 1rem;
    color: var(--wizard-medium-gray);
    margin-bottom: 2rem;
}

/* Responsive Design for Course Edit */
@media (max-width: 768px) {
    .course-edit-container {
        padding: 1rem 0.5rem;
    }
    
    .course-edit-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .course-edit-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .course-edit-actions {
        justify-content: center;
    }
    
    .course-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .variant-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-main-body,
    .course-variants-body {
        padding: 1rem;
    }
    
    .course-main-header,
    .course-variants-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .variant-edit-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .variant-edit-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .course-edit-actions {
        flex-direction: column;
    }
    
    .wizard-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--wizard-medium-gray) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

/* Customer Management Styles */
.hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: var(--wizard-shadow-lg) !important;
    transform: translateY(-2px);
}

.customer-details {
    font-size: 0.9rem;
}

/* ===============================================
   KPI Dashboard Styles (School Performance V3.0)
   =============================================== */

/* KPI Grid Container */
.kpi-grid-container {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0;
    width: 100%;
}

/* Responsive Grid Layouts */
.grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-two-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-three-col {
    grid-template-columns: repeat(3, 1fr);
}

.grid-four-col {
    grid-template-columns: repeat(4, 1fr);
}

.grid-fixed-1 { grid-template-columns: 1fr; }
.grid-fixed-2 { grid-template-columns: repeat(2, 1fr); }
.grid-fixed-3 { grid-template-columns: repeat(3, 1fr); }
.grid-fixed-4 { grid-template-columns: repeat(4, 1fr); }
.grid-fixed-5 { grid-template-columns: repeat(5, 1fr); }
.grid-fixed-6 { grid-template-columns: repeat(6, 1fr); }

/* KPI Card Base Styles */
.kpi-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
    transition: var(--wizard-transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 1px solid transparent;
    min-height: 140px;
}

.kpi-card:hover {
    box-shadow: var(--wizard-shadow-hover);
    transform: translateY(-2px);
}

.kpi-card-base.primary {
    border-top: 4px solid var(--wizard-primary);
}

.kpi-card-base.success {
    border-top: 4px solid var(--wizard-success);
}

.kpi-card-base.warning {
    border-top: 4px solid var(--wizard-warning);
}

.kpi-card-base.danger {
    border-top: 4px solid var(--wizard-danger);
}

.kpi-card-base.info {
    border-top: 4px solid var(--wizard-info);
}

.kpi-card-base.loading {
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}

.kpi-card-base.error {
    border-top: 4px solid var(--wizard-danger);
    background: #fff5f5;
}

/* KPI Card Content */
.kpi-card-content {
    padding: 1.5rem;
}

.kpi-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--wizard-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-primary {
    background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-light));
    color: var(--wizard-white);
}

.icon-success {
    background: linear-gradient(135deg, var(--wizard-success), #32cd32);
    color: var(--wizard-white);
}

.icon-warning {
    background: linear-gradient(135deg, var(--wizard-warning), #ffd700);
    color: var(--wizard-dark-gray);
}

.icon-danger {
    background: linear-gradient(135deg, var(--wizard-danger), #ff6b6b);
    color: var(--wizard-white);
}

.icon-info {
    background: linear-gradient(135deg, var(--wizard-info), #20c997);
    color: var(--wizard-white);
}

.kpi-icon.error {
    background: var(--wizard-danger);
    color: var(--wizard-white);
}

.kpi-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.kpi-subtitle {
    font-size: 0.875rem;
    color: var(--wizard-medium-gray);
    margin: 0;
    margin-top: 0.25rem;
}

/* KPI Value Section */
.kpi-value-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.value-primary { color: var(--wizard-primary); }
.value-success { color: var(--wizard-success); }
.value-warning { color: var(--wizard-warning); }
.value-danger { color: var(--wizard-danger); }
.value-info { color: var(--wizard-info); }

.kpi-value.error {
    color: var(--wizard-danger);
    font-size: 1.5rem;
}

/* Trend Indicator Styles */
.trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.trend-base {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-arrow {
    font-size: 1rem;
    font-weight: bold;
    transition: var(--wizard-transition);
}

.trend-animated .trend-arrow {
    animation: bounce 2s infinite;
}

.trend-up, .trend-positive {
    color: var(--wizard-success);
}

.trend-down, .trend-negative {
    color: var(--wizard-danger);
}

.trend-stable, .trend-neutral {
    color: var(--wizard-medium-gray);
}

.arrow-base {
    margin-right: 0.25rem;
}

.arrow-up { color: var(--wizard-success); }
.arrow-down { color: var(--wizard-danger); }
.arrow-stable { color: var(--wizard-medium-gray); }

.trend-percentage {
    font-weight: 600;
}

.trend-comparison {
    color: var(--wizard-medium-gray);
    font-weight: 400;
}

/* Loading States */
.kpi-card-loading {
    padding: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.kpi-header-skeleton {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kpi-icon-skeleton {
    width: 48px;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    border-radius: var(--wizard-border-radius);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.kpi-title-skeleton {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    border-radius: 4px;
    flex: 1;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.kpi-value-skeleton {
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.kpi-trend-skeleton {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    border-radius: 4px;
    width: 60%;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Error States */
.kpi-card-error {
    padding: 1.5rem;
    text-align: center;
}

.kpi-card-error .kpi-value.error {
    margin: 1rem 0;
}

.kpi-trend.error {
    color: var(--wizard-danger);
    font-style: italic;
}

/* Grid Item Modifiers */
.grid-item-base {
    position: relative;
}

.item-priority {
    order: -1;
}

.item-students .kpi-card-base {
    border-top-color: var(--wizard-primary);
}

.item-revenue .kpi-card-base {
    border-top-color: var(--wizard-success);
}

.item-classes .kpi-card-base {
    border-top-color: var(--wizard-info);
}

.item-completion .kpi-card-base {
    border-top-color: var(--wizard-warning);
}

.item-general .kpi-card-base {
    border-top-color: var(--wizard-medium-gray);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-1px); }
}

/* Responsive Design for KPIs */
@media (max-width: 1200px) {
    .grid-four-col {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-fixed-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .grid-three-col,
    .grid-four-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-fixed-3,
    .grid-fixed-4,
    .grid-fixed-5,
    .grid-fixed-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kpi-grid-container {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .grid-responsive,
    .grid-two-col,
    .grid-three-col,
    .grid-four-col,
    .grid-fixed-2,
    .grid-fixed-3,
    .grid-fixed-4,
    .grid-fixed-5,
    .grid-fixed-6 {
        grid-template-columns: 1fr;
    }
    
    .kpi-card-content {
        padding: 1rem;
    }
    
    .kpi-value {
        font-size: 1.75rem;
    }
    
    .kpi-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .kpi-grid-container {
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .kpi-header {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
    
    .trend-indicator {
        font-size: 0.8rem;
    }
}

/* Dashboard Layout Integration */
.dashboard-v3-kpi-section {
    margin: 2rem 0;
}

.dashboard-v3-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-v3-kpi-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin: 0;
}

.dashboard-v3-kpi-subtitle {
    font-size: 1rem;
    color: var(--wizard-medium-gray);
    margin: 0;
    margin-top: 0.25rem;
}

/* Accessibility Enhancements */
.kpi-card:focus {
    outline: 2px solid var(--wizard-primary);
    outline-offset: 2px;
}

.kpi-card[aria-expanded="true"] {
    background: var(--wizard-light-gray);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .kpi-card {
        border: 2px solid var(--wizard-dark-gray);
    }
    
    .trend-indicator {
        font-weight: 700;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .kpi-card,
    .trend-arrow,
    .kpi-card-loading,
    .kpi-icon-skeleton,
    .kpi-title-skeleton,
    .kpi-value-skeleton,
    .kpi-trend-skeleton {
        animation: none;
        transition: none;
    }
    
    .kpi-card:hover {
        transform: none;
    }
}

.detail-item {
    display: flex;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--wizard-border-radius);
    font-weight: 500;
}

.badge-primary {
    background-color: var(--wizard-primary);
    color: var(--wizard-white);
}

.badge-success {
    background-color: var(--wizard-success);
    color: var(--wizard-white);
}

.badge-info {
    background-color: var(--wizard-secondary);
    color: var(--wizard-white);
}

.badge-warning {
    background-color: var(--wizard-warning);
    color: var(--wizard-dark-gray);
}

.badge-secondary {
    background-color: var(--wizard-medium-gray);
    color: var(--wizard-white);
}

.badge-light {
    background-color: var(--wizard-light-gray);
    color: var(--wizard-dark-gray);
}

.bg-light-blue {
    background-color: #e3f2fd !important;
}

/* Enhanced dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: var(--wizard-shadow-lg);
    border-radius: var(--wizard-border-radius);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--wizard-border-radius);
    margin: 0.25rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--wizard-light-gray);
    color: var(--wizard-primary);
    transform: translateX(2px);
}

/* Statistics cards styling */
.card.bg-light {
    background-color: var(--wizard-light-gray) !important;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.card.bg-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow);
}

/* Form enhancements */
.wizard-form-group .wizard-input:focus {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25);
}

/* Gap utility */
.gap-2 {
    gap: 0.5rem !important;
}

/* ===============================
   STUDENT ANALYTICS V3.0 STYLES
   =============================== */

/* Analytics container */
.student-analytics-container {
    padding: 1.5rem;
    background-color: var(--wizard-light-gray);
    min-height: 100vh;
}

/* Analytics header */
.analytics-header {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    color: var(--wizard-white);
    padding: 2rem 2.5rem;
    border-radius: var(--wizard-border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--wizard-shadow-lg);
}

.analytics-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analytics-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    opacity: 0.9;
}

.date-range {
    font-size: 1rem;
    font-weight: 500;
}

.total-students {
    font-size: 1rem;
    font-weight: 600;
}

/* Key metrics grid */
.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    padding: 2rem;
    box-shadow: var(--wizard-shadow);
    transition: var(--wizard-transition);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid;
}

.metric-card.primary {
    border-left-color: var(--wizard-primary);
}

.metric-card.success {
    border-left-color: var(--wizard-success);
}

.metric-card.info {
    border-left-color: var(--wizard-info);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wizard-shadow-hover);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--wizard-white);
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
}

.metric-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--wizard-dark-gray);
}

.metric-content p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--wizard-medium-gray);
}

.metric-trend {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-trend.positive {
    color: var(--wizard-success);
}

.metric-trend.negative {
    color: var(--wizard-danger);
}

.metric-trend.neutral {
    color: var(--wizard-medium-gray);
}

.metric-subtitle {
    font-size: 0.9rem;
    color: var(--wizard-medium-gray);
    font-weight: 500;
}

/* Analytics sections */
.analytics-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.analytics-section {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
    overflow: hidden;
}

.section-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(139, 39, 132, 0.1) 0%, rgba(44, 92, 197, 0.1) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--wizard-dark-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header p {
    margin: 0;
    color: var(--wizard-medium-gray);
    font-size: 1rem;
}

/* Demographics specific styles */
.demographics-container, 
.lifecycle-container, 
.journey-container {
    padding: 2rem 2.5rem;
}

.demographics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.chart-section {
    background: var(--wizard-white);
}

.chart-header {
    margin-bottom: 1.5rem;
}

.chart-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--wizard-dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header p {
    margin: 0;
    color: var(--wizard-medium-gray);
    font-size: 0.9rem;
}

.chart-container {
    margin-bottom: 1.5rem;
}

/* Age statistics */
.age-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--wizard-border-radius);
    background-color: rgba(139, 39, 132, 0.05);
}

.stat-bar {
    width: 80px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.stat-fill.age-18to25 {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-fill.age-26to35 {
    background: linear-gradient(90deg, #007bff, #6610f2);
}

.stat-fill.age-36to45 {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.stat-fill.age-46plus {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.stat-label {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.age-range {
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

.count, .percentage {
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
}

/* Location statistics */
.location-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--wizard-border-radius);
    background-color: rgba(44, 92, 197, 0.05);
    transition: var(--wizard-transition);
}

.location-item:hover {
    background-color: rgba(44, 92, 197, 0.1);
    transform: translateX(3px);
}

.location-flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-white);
}

.location-info {
    flex: 1;
}

.country-name {
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 0.25rem;
}

.country-stats {
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
}

.location-bar {
    width: 100px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.location-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wizard-primary), var(--wizard-secondary));
    border-radius: 3px;
    transition: width 1.2s ease;
}

/* Demographics summary */
.demographics-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-card {
    padding: 1.5rem;
    background-color: rgba(139, 39, 132, 0.05);
    border-radius: var(--wizard-border-radius);
    border-left: 4px solid var(--wizard-primary);
}

.summary-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wizard-dark-gray);
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-card li {
    margin-bottom: 0.5rem;
    color: var(--wizard-medium-gray);
    font-size: 0.9rem;
}

.summary-card strong {
    color: var(--wizard-primary);
    font-weight: 600;
}

/* Lifecycle specific styles */
.lifecycle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.growth-metrics {
    margin-top: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.metric-item {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(139, 39, 132, 0.05);
    border-radius: var(--wizard-border-radius);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wizard-dark-gray);
    margin-bottom: 0.5rem;
}

.metric-value.positive {
    color: var(--wizard-success);
}

.metric-value.negative {
    color: var(--wizard-danger);
}

.metric-value.neutral {
    color: var(--wizard-medium-gray);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--wizard-medium-gray);
    font-weight: 500;
}

/* Activity patterns */
.activity-patterns {
    padding: 2rem 2.5rem;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pattern-card {
    background: var(--wizard-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--wizard-border-radius);
    padding: 1.5rem;
    transition: var(--wizard-transition);
}

.pattern-card:hover {
    border-color: var(--wizard-primary);
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow);
}

.pattern-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.pattern-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wizard-info), var(--wizard-secondary));
    border-radius: 4px;
    transition: width 1.5s ease;
}

.pattern-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--wizard-dark-gray);
}

.pattern-count {
    font-size: 0.9rem;
    color: var(--wizard-medium-gray);
    margin-right: 0.5rem;
}

.pattern-percent {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wizard-info);
}

/* Activity summary */
.activity-summary {
    margin-top: 2rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 39, 132, 0.1) 0%, rgba(44, 92, 197, 0.1) 100%);
    border-radius: var(--wizard-border-radius);
    border: 1px solid rgba(139, 39, 132, 0.2);
}

.stat-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--wizard-dark-gray);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wizard-primary);
    margin-bottom: 0.5rem;
}

.stat-detail {
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
}

/* Lifecycle insights */
.lifecycle-insights {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(139, 39, 132, 0.05) 0%, rgba(44, 92, 197, 0.05) 100%);
    border-radius: var(--wizard-border-radius-lg);
}

.insights-header {
    margin-bottom: 2rem;
}

.insights-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-dark-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: 1.5rem;
    box-shadow: var(--wizard-shadow);
    display: flex;
    gap: 1rem;
    transition: var(--wizard-transition);
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-hover);
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--wizard-white);
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
}

.insight-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--wizard-dark-gray);
}

.insight-content p {
    margin: 0;
    color: var(--wizard-medium-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.insight-content .positive {
    color: var(--wizard-success);
    font-weight: 600;
}

.insight-content .negative {
    color: var(--wizard-danger);
    font-weight: 600;
}

.insight-content .neutral {
    color: var(--wizard-info);
    font-weight: 600;
}

/* Customer Journey specific styles */
.journey-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.course-details {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
}

.details-header {
    margin-bottom: 2rem;
}

.details-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-dark-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
    padding: 2rem;
    transition: var(--wizard-transition);
    border-left: 4px solid;
}

.course-card.excellent {
    border-left-color: var(--wizard-success);
}

.course-card.good {
    border-left-color: var(--wizard-info);
}

.course-card.average {
    border-left-color: var(--wizard-warning);
}

.course-card.needs-attention {
    border-left-color: var(--wizard-danger);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wizard-shadow-hover);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.course-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    flex: 1;
}

.course-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-badge.most-popular {
    background-color: var(--wizard-success);
    color: var(--wizard-white);
}

.course-badge.very-popular {
    background-color: var(--wizard-info);
    color: var(--wizard-white);
}

.course-badge.popular {
    background-color: var(--wizard-warning);
    color: var(--wizard-white);
}

.course-badge.standard {
    background-color: var(--wizard-medium-gray);
    color: var(--wizard-white);
}

.course-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-metrics .metric {
    text-align: center;
}

.course-metrics .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-primary);
    margin-bottom: 0.25rem;
}

.course-metrics .metric-label {
    font-size: 0.8rem;
    color: var(--wizard-medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-progress {
    margin-bottom: 1.5rem;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--wizard-medium-gray);
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wizard-primary), var(--wizard-secondary));
    border-radius: 4px;
    transition: width 1.5s ease;
}

.course-insights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.insight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

.insight.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--wizard-success);
}

.insight.good {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--wizard-info);
}

.insight.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--wizard-warning);
}

.insight.popular {
    background-color: rgba(139, 39, 132, 0.1);
    color: var(--wizard-primary);
}

/* Journey summary */
.journey-summary {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(139, 39, 132, 0.05) 0%, rgba(44, 92, 197, 0.05) 100%);
    border-radius: var(--wizard-border-radius-lg);
}

.summary-header {
    margin-bottom: 2rem;
}

.summary-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-dark-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: 1.5rem;
    box-shadow: var(--wizard-shadow);
    text-align: center;
    transition: var(--wizard-transition);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-hover);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: var(--wizard-white);
    font-size: 1.5rem;
}

.summary-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--wizard-dark-gray);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-primary);
    margin-bottom: 0.5rem;
}

.summary-detail {
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
}

/* Progression recommendations */
.progression-recommendations {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
}

.recommendations-header {
    margin-bottom: 2rem;
}

.recommendations-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-dark-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recommendation-item {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: 1.5rem;
    box-shadow: var(--wizard-shadow);
    display: flex;
    gap: 1rem;
    border-left: 4px solid;
    transition: var(--wizard-transition);
}

.recommendation-item.success {
    border-left-color: var(--wizard-success);
}

.recommendation-item.warning {
    border-left-color: var(--wizard-warning);
}

.recommendation-item.info {
    border-left-color: var(--wizard-info);
}

.recommendation-item:hover {
    transform: translateX(3px);
    box-shadow: var(--wizard-shadow-hover);
}

.recommendation-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--wizard-white);
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
}

.recommendation-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--wizard-dark-gray);
}

.recommendation-content p {
    margin: 0;
    color: var(--wizard-medium-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Analytics footer */
.analytics-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wizard-medium-gray);
    font-size: 0.9rem;
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

/* Loading and error states */
.analytics-loading,
.analytics-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
}

.analytics-error .error-content {
    text-align: center;
    color: var(--wizard-medium-gray);
}

.error-content i {
    font-size: 3rem;
    color: var(--wizard-danger);
    margin-bottom: 1rem;
}

.error-content h3 {
    margin-bottom: 1rem;
    color: var(--wizard-dark-gray);
}

.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow);
    margin: 2rem 0;
}

.no-data-content {
    text-align: center;
    color: var(--wizard-medium-gray);
}

.no-data-content i {
    font-size: 3rem;
    color: var(--wizard-info);
    margin-bottom: 1rem;
}

.no-data-content h4 {
    margin-bottom: 1rem;
    color: var(--wizard-dark-gray);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--wizard-medium-gray);
}

.empty-state i {
    font-size: 3rem;
    color: var(--wizard-info);
    margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 1200px) {
    .demographics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .student-analytics-container {
        padding: 1rem;
    }
    
    .analytics-header {
        padding: 1.5rem;
    }
    
    .analytics-title {
        font-size: 1.5rem;
    }
    
    .analytics-summary {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .analytics-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .course-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .analytics-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-header,
    .demographics-container,
    .lifecycle-container,
    .journey-container,
    .activity-patterns {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .patterns-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   STUDENT DIALOG MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* Student Dialog Modal - Bootstrap Implementation */
.student-dialog-modal {
    z-index: 1055 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.student-dialog-modal .modal-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1056 !important;
}

.student-dialog-content {
    border: none;
    border-radius: 0 !important; /* No border radius for fullscreen */
    box-shadow: none !important; /* No shadow for fullscreen */
    overflow: hidden;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.student-dialog-header {
    background: linear-gradient(135deg, var(--wizard-primary, #8B2784) 0%, var(--wizard-secondary, #2C5CC5) 100%);
    color: var(--wizard-white, #ffffff);
    padding: 1.5rem 2rem;
    border-bottom: none;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.student-dialog-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--wizard-white, #ffffff);
}

.student-dialog-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wizard-white, #ffffff);
    margin: 0;
}

.student-dialog-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-white, #ffffff);
    transition: all 0.3s ease;
    margin-left: auto;
}

.student-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.student-dialog-body {
    padding: 2rem;
    height: calc(100vh - 120px); /* Account for header height */
    max-height: none !important;
    overflow-y: auto;
}

/* Mobile responsive adjustments for student dialog */
@media (max-width: 768px) {
    .student-dialog-modal .modal-dialog {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        margin: 0 !important;
    }
    
    .student-dialog-body {
        height: calc(100vh - 100px) !important; /* Smaller header on mobile */
        max-height: none !important;
        padding: 1.5rem !important;
    }
    
    .student-dialog-header {
        padding: 1rem 1.5rem !important;
    }
    
    /* Ensure form elements are visible on mobile */
    .student-dialog-body .form-control, 
    .student-dialog-body .form-select, 
    .student-dialog-body .e-input-group, 
    .student-dialog-body .e-dropdownlist {
        background: var(--wizard-white, #ffffff) !important;
        border: 1px solid #ced4da !important;
        color: #495057 !important;
        opacity: 1 !important;
    }
}

/* ==================================================
   CONFIRMATION MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* Confirmation Modal - Centered Dialog for Confirmations */
.confirmation-dialog-modal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.confirmation-dialog-content {
    border: none;
    border-radius: var(--wizard-border-radius-lg, 0.5rem);
    box-shadow: var(--wizard-shadow-lg, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    overflow: hidden;
}

.confirmation-dialog-header {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.confirmation-dialog-icon {
    width: 40px;
    height: 40px;
    background: rgba(114, 28, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #721c24;
}

.confirmation-dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #721c24;
    margin: 0;
}

.confirmation-dialog-body {
    padding: 1.5rem;
    background: var(--wizard-white, #ffffff);
}

/* Mobile adjustments for confirmation dialog */
@media (max-width: 768px) {
    .confirmation-dialog-modal .modal-dialog {
        max-width: 95vw !important;
        margin: 1rem !important;
    }
    
    .confirmation-dialog-header {
        padding: 1rem !important;
    }
    
    .confirmation-dialog-body {
        padding: 1rem !important;
    }
    
    .confirmation-dialog-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
    }
    
    .confirmation-dialog-title {
        font-size: 1.1rem !important;
    }
}

/* ==================================================
   QR GENERATOR MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* QR Generator Modal - Small Centered Dialog */
.qr-generator-modal .modal-dialog {
    max-width: 350px;
    margin: 1.75rem auto;
}

.qr-generator-content {
    border: none;
    border-radius: var(--wizard-border-radius-lg, 0.5rem);
    box-shadow: var(--wizard-shadow-lg, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    overflow: hidden;
}

.qr-generator-header {
    background: linear-gradient(135deg, var(--wizard-primary, #8B2784) 0%, var(--wizard-secondary, #2C5CC5) 100%);
    color: var(--wizard-white, #ffffff);
    padding: 1rem 1.25rem;
    border-bottom: none;
}

.qr-generator-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--wizard-white, #ffffff);
}

.qr-generator-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wizard-white, #ffffff);
    margin: 0;
}

.qr-generator-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-white, #ffffff);
    transition: all 0.3s ease;
    margin-left: auto;
    font-size: 0.9rem;
}

.qr-generator-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.qr-generator-body {
    padding: 1.5rem;
    background: var(--wizard-white, #ffffff);
    text-align: center;
}

/* Mobile adjustments for QR generator */
@media (max-width: 768px) {
    .qr-generator-modal .modal-dialog {
        max-width: 95vw !important;
        margin: 1rem !important;
    }
    
    .qr-generator-header {
        padding: 0.875rem 1rem !important;
    }
    
    .qr-generator-body {
        padding: 1rem !important;
    }
    
    .qr-generator-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .qr-generator-title {
        font-size: 1rem !important;
    }
    
    .qr-generator-close {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
}

/* ==================================================
   USER PROMOTOR MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* User Promotor Modal - Fullscreen Management Interface */
.user-promotor-modal .modal-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    position: relative !important;
}

.user-promotor-content {
    border: none;
    border-radius: 0 !important; /* No border radius for fullscreen */
    box-shadow: none !important; /* No shadow for fullscreen */
    overflow: hidden;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.user-promotor-header {
    background: linear-gradient(135deg, var(--wizard-primary, #8B2784) 0%, var(--wizard-secondary, #2C5CC5) 100%);
    color: var(--wizard-white, #ffffff);
    padding: 1.5rem 2rem;
    border-bottom: none;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.user-promotor-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--wizard-white, #ffffff);
}

.user-promotor-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wizard-white, #ffffff);
    margin: 0;
}

.user-promotor-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-white, #ffffff);
    transition: all 0.3s ease;
    margin-left: auto;
}

.user-promotor-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.user-promotor-body {
    padding: 2rem;
    height: calc(100vh - 120px); /* Account for header height */
    max-height: none !important;
    overflow-y: auto;
    background: #f8f9fa;
}

/* Mobile responsive adjustments for user promotor */
@media (max-width: 768px) {
    .user-promotor-modal .modal-dialog {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        margin: 0 !important;
    }
    
    .user-promotor-body {
        height: calc(100vh - 100px) !important; /* Smaller header on mobile */
        max-height: none !important;
        padding: 1rem !important;
    }
    
    .user-promotor-header {
        padding: 1rem 1.5rem !important;
    }
    
    .user-promotor-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
    }
    
    .user-promotor-title {
        font-size: 1.2rem !important;
    }
}

/* ==================================================
   COMPOSE MESSAGE MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* Compose Message Modal - Larger Dialog for Rich Content */
.compose-message-modal .modal-dialog {
    max-width: 1200px;
}

.compose-message-body {
    max-height: 75vh;
    overflow-y: auto;
}

/* Message Status Modal - Simple Info Dialog */
.message-status-modal .modal-dialog {
    max-width: 500px;
}

/* Mobile adjustments for compose message */
@media (max-width: 768px) {
    .compose-message-modal .modal-dialog {
        max-width: 95vw !important;
        margin: 0.5rem !important;
    }
    
    .compose-message-body {
        max-height: 70vh !important;
        padding: 1rem !important;
    }
    
    .message-status-modal .modal-dialog {
        max-width: 95vw !important;
        margin: 1rem !important;
    }
}

/* ==================================================
   USER DIALOG MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* User Dialog Modal - Medium Size for User Management */
.user-dialog-modal .modal-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
}

.user-dialog-content {
    border: none;
    border-radius: 0 !important; /* No border radius for fullscreen */
    box-shadow: none !important; /* No shadow for fullscreen */
    overflow: hidden;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.user-dialog-header {
    background: linear-gradient(135deg, var(--wizard-primary, #8B2784) 0%, var(--wizard-secondary, #2C5CC5) 100%);
    color: var(--wizard-white, #ffffff);
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.user-dialog-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-dialog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.user-dialog-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--wizard-white, #ffffff);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--wizard-white, #ffffff);
    transform: scale(1.1);
}

.user-dialog-body {
    background: var(--wizard-white, #ffffff);
    height: calc(100vh - 120px); /* Account for header height */
    max-height: none !important;
    overflow-y: auto;
    flex: 1;
}

.user-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Mobile adjustments for user dialog */
@media (max-width: 768px) {
    .user-dialog-modal .modal-dialog {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        margin: 0 !important;
    }
    
    .user-dialog-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .user-dialog-header {
        padding: 1rem !important;
        flex-shrink: 0;
    }
    
    .user-dialog-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
    }
    
    .user-dialog-title {
        font-size: 1.2rem !important;
    }
    
    .user-dialog-body {
        flex: 1;
        height: calc(100vh - 100px) !important; /* Smaller header on mobile */
        max-height: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure form elements are visible on mobile */
    .user-dialog-body .form-control, 
    .user-dialog-body .form-select, 
    .user-dialog-body .e-input-group, 
    .user-dialog-body .e-dropdownlist {
        background: var(--wizard-white, #ffffff) !important;
        border: 1px solid #ced4da !important;
        color: #495057 !important;
        opacity: 1 !important;
    }
}

/* ==================================================
   PAYMENT DIALOG MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* Payment Dialog Modal - Extra Large Size for Payment Details */
.payment-dialog-modal .modal-dialog {
    max-width: 1200px;
    margin: 1rem auto;
}

.payment-dialog-content {
    border: none;
    border-radius: var(--wizard-border-radius-lg, 0.5rem);
    box-shadow: var(--wizard-shadow-lg, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    overflow: hidden;
}

.payment-dialog-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--wizard-white, #ffffff);
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
}

.payment-dialog-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.payment-dialog-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.payment-dialog-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--wizard-white, #ffffff);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--wizard-white, #ffffff);
    transform: scale(1.1);
}

.payment-dialog-body {
    background: var(--wizard-white, #ffffff);
    padding: 2rem;
    min-height: 500px;
    max-height: 75vh;
    overflow-y: auto;
}

.payment-dialog-footer {
    background: var(--wizard-light-gray, #f8f9fa);
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
    justify-content: center;
}

.payment-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Mobile adjustments for payment dialog */
@media (max-width: 768px) {
    .payment-dialog-modal .modal-dialog {
        max-width: 95vw !important;
        margin: 0.5rem !important;
        height: calc(100vh - 1rem);
    }
    
    .payment-dialog-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .payment-dialog-header {
        padding: 1rem !important;
        flex-shrink: 0;
    }
    
    .payment-dialog-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
    }
    
    .payment-dialog-title {
        font-size: 1.1rem !important;
    }
    
    .payment-dialog-body {
        flex: 1;
        padding: 1rem !important;
        max-height: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .payment-dialog-footer {
        padding: 1rem !important;
        flex-shrink: 0;
    }
    
    /* Ensure grids are mobile responsive */
    .payment-dialog-body .e-grid {
        font-size: 0.9rem !important;
    }
}

/* ==================================================
   COURSE DIALOG MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* Course Dialog Modal - Extra Large Size for Course Management */
.course-dialog-modal .modal-dialog {
    max-width: 1200px;
    margin: 1rem auto;
}

.course-dialog-content {
    border: none;
    border-radius: var(--wizard-border-radius-lg, 0.5rem);
    box-shadow: var(--wizard-shadow-lg, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    overflow: hidden;
}

.course-dialog-header {
    background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
    color: var(--wizard-white, #ffffff);
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
}

.course-dialog-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.course-dialog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.course-dialog-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--wizard-white, #ffffff);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--wizard-white, #ffffff);
    transform: scale(1.1);
}

.course-dialog-body {
    background: var(--wizard-white, #ffffff);
    min-height: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.course-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Mobile adjustments for course dialog */
@media (max-width: 768px) {
    .course-dialog-modal .modal-dialog {
        max-width: 95vw !important;
        margin: 0.5rem !important;
        height: calc(100vh - 1rem);
    }
    
    .course-dialog-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .course-dialog-header {
        padding: 1rem !important;
        flex-shrink: 0;
    }
    
    .course-dialog-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
    }
    
    .course-dialog-title {
        font-size: 1.2rem !important;
    }
    
    .course-dialog-body {
        flex: 1;
        max-height: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure form elements are visible on mobile */
    .course-dialog-body .form-control, 
    .course-dialog-body .form-select, 
    .course-dialog-body .e-input-group, 
    .course-dialog-body .e-dropdownlist {
        background: var(--wizard-white, #ffffff) !important;
        border: 1px solid #ced4da !important;
        color: #495057 !important;
        opacity: 1 !important;
    }
}

/* ==================================================
   GEAR DIALOG MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* Gear Dialog Modal - Large Size for Equipment Management */
.gear-dialog-modal .modal-dialog {
    max-width: 900px;
    margin: 1rem auto;
}

.gear-dialog-content {
    border: none;
    border-radius: var(--wizard-border-radius-lg, 0.5rem);
    box-shadow: var(--wizard-shadow-lg, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    overflow: hidden;
}

.gear-dialog-header {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    color: var(--wizard-white, #ffffff);
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
}

.gear-dialog-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.gear-dialog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.gear-dialog-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--wizard-white, #ffffff);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gear-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--wizard-white, #ffffff);
    transform: scale(1.1);
}

.gear-dialog-body {
    background: var(--wizard-white, #ffffff);
    min-height: 500px;
    max-height: 75vh;
    overflow-y: auto;
}

.gear-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Mobile adjustments for gear dialog */
@media (max-width: 768px) {
    .gear-dialog-modal .modal-dialog {
        max-width: 95vw !important;
        margin: 0.5rem !important;
        height: calc(100vh - 1rem);
    }
    
    .gear-dialog-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .gear-dialog-header {
        padding: 1rem !important;
        flex-shrink: 0;
    }
    
    .gear-dialog-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
    }
    
    .gear-dialog-title {
        font-size: 1.2rem !important;
    }
    
    .gear-dialog-body {
        flex: 1;
        max-height: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure form elements are visible on mobile */
    .gear-dialog-body .form-control, 
    .gear-dialog-body .form-select, 
    .gear-dialog-body .e-input-group, 
    .gear-dialog-body .e-dropdownlist {
        background: var(--wizard-white, #ffffff) !important;
        border: 1px solid #ced4da !important;
        color: #495057 !important;
        opacity: 1 !important;
    }
}

/* ==================================================
   LABEL MANAGEMENT MODAL STYLES (Bootstrap Migration)
   ================================================== */

/* Label Modal - Tag Management with Green/Blue Gradient Theme */
.label-dialog-modal .modal-dialog {
    max-width: 520px;
    width: 100%;
    position: relative;
    margin: 1.75rem auto;
    z-index: 1060;
}

.label-dialog-content {
    border: none;
    border-radius: var(--wizard-border-radius-lg, 0.5rem);
    box-shadow: var(--wizard-shadow-lg, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    overflow: hidden;
}

.label-dialog-header {
    background: linear-gradient(135deg, #28a745 0%, #17a2b8 100%);
    color: var(--wizard-white, #ffffff);
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
}

.label-dialog-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--wizard-white, #ffffff);
    margin-right: 1rem;
}

.label-dialog-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wizard-white, #ffffff);
    margin: 0;
}

.label-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-white, #ffffff);
    transition: all 0.3s ease;
    cursor: pointer;
}

.label-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.label-dialog-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--wizard-white, #ffffff);
}

.label-type-selector {
    background: #f8f9fa;
    border-radius: var(--wizard-border-radius, 0.375rem);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.label-type-selector .form-label {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label-search-section {
    background: #f8f9fa;
    border-radius: var(--wizard-border-radius, 0.375rem);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.label-chips-container {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--wizard-white, #ffffff);
    border: 1px solid #e9ecef;
    border-radius: var(--wizard-border-radius, 0.375rem);
    margin-bottom: 1rem;
}

.label-create-panel {
    background: #f8f9fa;
    border-radius: var(--wizard-border-radius, 0.375rem);
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    border-left: 4px solid #28a745;
}

.label-create-panel .form-label {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.label-dialog-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
}

.label-dialog-footer .btn {
    min-width: 120px;
}

/* Mobile responsive adjustments for label dialog */
@media (max-width: 768px) {
    .label-dialog-modal .modal-dialog {
        max-width: 95vw;
        margin: 0.5rem;
        height: calc(100vh - 1rem);
    }
    
    .label-dialog-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .label-dialog-header {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
    }
    
    .label-dialog-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .label-dialog-title {
        font-size: 1.2rem;
    }
    
    .label-dialog-body {
        flex: 1;
        max-height: none;
        overflow-y: auto;
        padding: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .label-chips-container {
        max-height: 200px;
    }
    
    .label-dialog-footer {
        flex-shrink: 0;
        padding: 1rem 1.5rem;
    }
    
    /* Ensure form elements are visible on mobile */
    .label-dialog-body .form-control, 
    .label-dialog-body .form-select, 
    .label-dialog-body .e-input-group, 
    .label-dialog-body .e-dropdownlist {
        background: var(--wizard-white, #ffffff) !important;
        border: 1px solid #ced4da !important;
        color: #495057 !important;
        opacity: 1 !important;
    }
}

/* ================================================================
   LABEL MANAGEMENT MODAL V2 STYLES - Green/Blue Theme (Bootstrap Modal)
   ================================================================ */

/* Label Management Modal Theme - Green/Blue Gradient */
.label-modal-header {
    background: linear-gradient(135deg, #28a745 0%, #17a2b8 100%);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.label-modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.modal-label-filter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.label-chips-container {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    border: 2px dashed #28a745 !important;
    background: #f8fff9 !important;
}

.new-label-form {
    background: linear-gradient(135deg, #f8fff9 0%, #e8f4f8 100%) !important;
    border: 1px solid #28a745 !important;
}

.label-management-modal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.label-management-modal .form-floating > label {
    color: #6c757d;
    font-weight: 500;
}

.label-management-modal .form-control:focus,
.label-management-modal .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Label Modal Responsive Adjustments */
@media (max-width: 768px) {
    .label-modal-header {
        padding: 1rem;
    }
    
    .label-modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .label-management-modal .modal-title {
        font-size: 1.3rem !important;
    }
}

/* ===================================== */
/* === STUDENT MANAGEMENT V2 STYLES === */
/* ===================================== */

/* Modern Student Container */
.modern-student-container {
    background: linear-gradient(135deg, #8B2784 0%, #2C5CC5 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(139, 39, 132, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-student-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="1.5"/></g></g></svg>');
    pointer-events: none;
}

/* Section Headers - Modern Design */
.modern-section-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-header-modern {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.section-header-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.section-icon-modern {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 16px;
}

.section-title-modern {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.section-toggle-modern {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.section-content-modern {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Filter Panel */
.modern-filter-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
    overflow: hidden;
}

.filter-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
}

.filter-title {
    display: flex;
    align-items: center;
    margin: 0;
}

.filter-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.btn-filter-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.btn-filter-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Primary Search Row */
.filter-row-primary {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-primary-container {
    display: flex;
    align-items: center;
}

.modern-search-input-group {
    position: relative;
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    pointer-events: none;
}

.modern-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.modern-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.qr-scan-button {
    margin-left: 12px;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.qr-scan-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Advanced Filters Panel */
.filter-advanced-panel {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item-wide {
    grid-column: span 2;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.modern-select, .modern-date-input {
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.modern-select:focus, .modern-date-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.modern-select option {
    background: #2C5CC5;
    color: white;
}

/* Modern Grid Container */
.modern-grid-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 24px;
}

.grid-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff0f8 100%);
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2C5CC5;
    display: flex;
    align-items: center;
}

.student-count-badge {
    background: linear-gradient(135deg, #8B2784 0%, #2C5CC5 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 12px;
}

/* Enhanced Grid Styling */
.modern-data-grid {
    background: white;
}

.modern-student-grid .e-grid .e-content .e-row:nth-child(even) {
    background-color: #fafcff;
}

.modern-student-grid .e-grid .e-content .e-row:hover {
    background: linear-gradient(90deg, #f8f4ff 0%, #fff4f8 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 39, 132, 0.1);
    transition: all 0.2s ease;
}

.modern-student-grid .e-grid .e-headercell {
    background: linear-gradient(135deg, #8B2784 0%, #2C5CC5 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 16px;
}

.modern-student-grid .e-grid .e-content .e-row td {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px;
    vertical-align: middle;
}

/* Student Name Cell */
.student-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B2784 0%, #2C5CC5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(139, 39, 132, 0.3);
}

.student-info {
    flex: 1;
}

.student-name {
    font-weight: 600;
    color: #2C5CC5;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 4px;
}

.student-name:hover {
    color: #8B2784;
    text-decoration: underline;
}

.student-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.age-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.sync-badge {
    background: #fff3e0;
    color: #f57c00;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sync-badge i {
    font-size: 10px;
    animation: spin 1s linear infinite;
}

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

/* Nationality Cell */
.nationality-cell {
    text-align: center;
}

.nationality-badge {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    color: #2C5CC5;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(44, 92, 197, 0.2);
}

/* Labels Cell */
.labels-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.modern-label-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modern-label-primary { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.modern-label-secondary { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); }
.modern-label-success { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.modern-label-danger { background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%); }
.modern-label-warning { background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%); color: #212529; }
.modern-label-info { background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%); }
.modern-label-light { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); color: #212529; }
.modern-label-dark { background: linear-gradient(135deg, #343a40 0%, #1d2124 100%); }

.no-labels-text {
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
}

/* Enhanced Modal Styles */
.modern-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modern-modal-header {
    background: linear-gradient(135deg, #8B2784 0%, #2C5CC5 100%);
    color: white;
    border: none;
    padding: 20px 24px;
}

.modal-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

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

.modern-close-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-close-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.modern-modal-body {
    padding: 0;
    background: #fafcff;
}

/* Loading Container */
.modern-loading-container {
    background: linear-gradient(135deg, #8B2784 0%, #2C5CC5 100%);
    border-radius: 16px;
    padding: 60px;
    margin: 20px 0;
    text-align: center;
    color: white;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .modern-student-container {
        margin: 10px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-item-wide {
        grid-column: span 1;
    }
    
    .modern-search-input-group {
        max-width: none;
    }
    
    .student-name-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .student-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .grid-title {
        font-size: 18px;
    }
    
    .student-count-badge {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .labels-cell {
        max-width: 200px;
    }
    
    .modern-label-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .section-header-modern {
        padding: 12px 16px;
    }
    
    .section-title-modern {
        font-size: 16px;
    }
    
    .filter-header {
        padding: 12px 16px;
    }
    
    .filter-row-primary {
        padding: 12px 16px;
    }
    
    .filter-advanced-panel {
        padding: 16px;
    }
    
    .grid-header {
        padding: 16px;
    }
    
    .modern-student-grid .e-grid .e-content .e-row td {
        padding: 12px 8px;
    }
    
    .student-name-cell {
        gap: 6px;
    }
    
    .modern-search-input {
        font-size: 14px;
        padding: 10px 14px 10px 40px;
    }
    
    .qr-scan-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* === START STUDENT MANAGEMENT V3 ENHANCED SECTIONS STYLES === */

/* Common Variables for Enhanced Sections */
:root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
}

/* Section styling updates */
.section-subtitle {
    font-size: 0.9rem;
    color: var(--wizard-medium-gray);
    margin: 0;
    font-style: italic;
}

/* Modern button variations */
.modern-btn-primary {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-light) 100%);
    border: none;
    color: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--wizard-transition);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-hover);
}

.modern-btn-secondary {
    background: linear-gradient(135deg, var(--wizard-secondary) 0%, var(--wizard-info) 100%);
    border: none;
    color: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--wizard-transition);
}

.modern-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-hover);
}

/* === OVERVIEW SECTION - LESSON HISTORY === */

/* Filter Controls */
.overview-filters {
    background: var(--wizard-white);
    padding: var(--space-lg);
    border-radius: var(--wizard-border-radius);
    box-shadow: var(--wizard-shadow);
    border-left: 4px solid var(--wizard-primary);
}

.overview-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: end;
    height: 100%;
}

.custom-bootstrap-select {
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    transition: var(--wizard-transition);
}

.custom-bootstrap-select:focus {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25);
}

.modern-input {
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    transition: var(--wizard-transition);
}

.modern-input:focus {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 39, 132, 0.25);
}

/* Lesson History Cards */
.lesson-history-container {
    background: #f8f9fa;
    border-radius: var(--wizard-border-radius-lg);
    padding: var(--space-lg);
    border: 2px dashed #dee2e6;
    min-height: 300px;
}

.lesson-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.lesson-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    box-shadow: var(--wizard-shadow);
    border: 2px solid transparent;
    transition: var(--wizard-transition);
    cursor: pointer;
    overflow: hidden;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-hover);
    border-color: var(--wizard-primary-light);
}

.lesson-card.lesson-active {
    border-left: 4px solid var(--wizard-success);
}

.lesson-card.lesson-cancelled {
    border-left: 4px solid var(--wizard-danger);
    opacity: 0.8;
}

.lesson-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--space-md);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background: var(--wizard-success);
    color: white;
}

.status-badge.scheduled {
    background: var(--wizard-info);
    color: white;
}

.status-badge.cancelled {
    background: var(--wizard-danger);
    color: white;
}

.lesson-card-body {
    padding: var(--space-lg);
}

.lesson-title {
    color: var(--wizard-primary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
}

.lesson-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--wizard-medium-gray);
}

.lesson-notes {
    background: #fff9c4;
    padding: var(--space-sm);
    border-radius: var(--wizard-border-radius);
    border-left: 3px solid var(--wizard-warning);
}

.lesson-card-actions {
    padding: var(--space-md);
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
    border-top: 1px solid #e9ecef;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wizard-transition);
    cursor: pointer;
}

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

.duplicate-btn {
    background: var(--wizard-secondary);
    color: white;
}

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

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.no-lessons-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--wizard-medium-gray);
    margin-bottom: var(--space-lg);
}

.empty-state-title {
    color: var(--wizard-dark-gray);
    margin-bottom: var(--space-md);
}

.empty-state-text {
    color: var(--wizard-medium-gray);
    margin-bottom: var(--space-lg);
}

/* === RESUME SECTION - PROGRESS TRACKING === */

/* Progress Overview Cards */
.progress-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.progress-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--wizard-shadow);
    border-left: 4px solid var(--wizard-primary);
    transition: var(--wizard-transition);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.progress-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-hover);
}

.progress-card.total-hours {
    border-left-color: var(--wizard-primary);
}

.progress-card.used-hours {
    border-left-color: var(--wizard-success);
}

.progress-card.remaining-hours {
    border-left-color: var(--wizard-warning);
}

.progress-card.completion-rate {
    border-left-color: var(--wizard-info);
}

.progress-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--wizard-white);
    flex-shrink: 0;
}

.total-hours .progress-card-icon {
    background: var(--wizard-primary);
}

.used-hours .progress-card-icon {
    background: var(--wizard-success);
}

.remaining-hours .progress-card-icon {
    background: var(--wizard-warning);
}

.completion-rate .progress-card-icon {
    background: var(--wizard-info);
}

.progress-card-content {
    flex: 1;
}

.progress-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--wizard-dark-gray);
    line-height: 1;
}

.progress-label {
    margin: 0;
    color: var(--wizard-medium-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Course Progress Section */
.course-progress-section {
    background: #f8f9fa;
    border-radius: var(--wizard-border-radius-lg);
    padding: var(--space-lg);
    border: 1px solid #e9ecef;
}

.subsection-title {
    color: var(--wizard-dark-gray);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--wizard-primary);
}

.course-progress-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.course-progress-item {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: var(--space-lg);
    box-shadow: var(--wizard-shadow);
    border: 1px solid #e9ecef;
}

.course-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.course-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wizard-primary);
    margin: 0;
}

.course-package {
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
    margin: 0;
    font-style: italic;
}

.course-stats {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.hours-fraction {
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

.completion-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.completion-badge.low {
    background: var(--wizard-danger);
    color: white;
}

.completion-badge.medium {
    background: var(--wizard-warning);
    color: white;
}

.completion-badge.high {
    background: var(--wizard-success);
    color: white;
}

/* Animated Progress Bars */
.progress-container {
    margin-bottom: var(--space-md);
}

.modern-progress {
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-progress .progress-bar {
    height: 100%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: width 1s ease-in-out;
    background: linear-gradient(135deg, var(--wizard-success) 0%, #20c997 100%);
}

.progress-bar.low-progress {
    background: linear-gradient(135deg, var(--wizard-danger) 0%, #e74c3c 100%);
}

.progress-bar.medium-progress {
    background: linear-gradient(135deg, var(--wizard-warning) 0%, #f39c12 100%);
}

.progress-bar.high-progress {
    background: linear-gradient(135deg, var(--wizard-success) 0%, #27ae60 100%);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--wizard-medium-gray);
    margin-top: var(--space-xs);
}

/* Package Details */
.package-details {
    background: #f8f9fa;
    border-radius: var(--wizard-border-radius);
    padding: var(--space-md);
    border: 1px solid #e9ecef;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--wizard-medium-gray);
}

.detail-value {
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

.detail-value.expiring-soon {
    color: var(--wizard-danger);
    font-weight: 700;
}

.detail-value.expired {
    color: var(--wizard-danger);
    text-decoration: line-through;
}

/* Quick Actions */
.resume-actions .btn {
    padding: 0.75rem 1rem;
    font-weight: 600;
}

/* Empty State for Resume */
.no-packages-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--wizard-medium-gray);
}

.no-packages-state .empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    color: var(--wizard-medium-gray);
}

/* === ADD COURSE SECTION - PURCHASE WORKFLOW === */

/* Course Selection Area */
.course-selection-area,
.package-selection-area,
.purchase-summary-area {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    border: 1px solid #e9ecef;
    box-shadow: var(--wizard-shadow);
}

.selection-title {
    color: var(--wizard-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--wizard-primary);
    font-weight: 600;
}

/* Course Selection Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.course-selection-card {
    background: var(--wizard-white);
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    padding: var(--space-lg);
    cursor: pointer;
    transition: var(--wizard-transition);
    position: relative;
}

.course-selection-card:hover {
    border-color: var(--wizard-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-hover);
}

.course-selection-card.selected {
    border-color: var(--wizard-primary);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f8ff 100%);
    box-shadow: 0 0 0 3px rgba(139, 39, 132, 0.1);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.course-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-white);
    font-size: 1.2rem;
}

.course-selection-indicator {
    font-size: 1.5rem;
}

.course-selection-card .course-selection-indicator i {
    color: #ccc;
    transition: var(--wizard-transition);
}

.course-selection-card.selected .course-selection-indicator i {
    color: var(--wizard-primary);
}

.course-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: var(--space-sm);
}

.course-description {
    font-size: 0.9rem;
    color: var(--wizard-medium-gray);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
}

/* Package Selection Grid */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.package-card {
    background: var(--wizard-white);
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    padding: var(--space-lg);
    cursor: pointer;
    transition: var(--wizard-transition);
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    border-color: var(--wizard-success);
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-hover);
}

.package-card.selected {
    border-color: var(--wizard-success);
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.package-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: var(--space-xs);
}

.popular-badge {
    background: var(--wizard-warning);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-success);
    display: block;
    line-height: 1;
}

.price-per {
    font-size: 0.75rem;
    color: var(--wizard-medium-gray);
}

.package-details {
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.detail-item.primary {
    color: var(--wizard-dark-gray);
    font-weight: 600;
}

.detail-item.instructor-fee {
    padding: var(--space-xs);
    background: #fff9c4;
    border-radius: var(--wizard-border-radius);
    border-left: 3px solid var(--wizard-warning);
}

.package-benefits {
    padding-top: var(--space-md);
    border-top: 1px solid #e9ecef;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
}

/* Purchase Summary */
.summary-card {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e9ecef;
}

.student-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin: 0;
}

.student-id {
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
    margin: 0;
}

.date-label {
    font-size: 0.8rem;
    color: var(--wizard-medium-gray);
    display: block;
}

.date-value {
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

.summary-content {
    padding: var(--space-lg);
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-md) 0;
    border-bottom: 1px solid #f8f9fa;
}

.item-row:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    color: var(--wizard-dark-gray);
    display: block;
}

.item-details {
    font-size: 0.85rem;
    color: var(--wizard-medium-gray);
}

.item-price .price {
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-top: 2px solid var(--wizard-primary);
    margin-top: var(--space-md);
}

.total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

.total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wizard-success);
}

/* Payment Options */
.payment-options {
    padding: var(--space-lg);
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.payment-title {
    margin-bottom: var(--space-md);
    color: var(--wizard-dark-gray);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
}

.payment-method {
    cursor: pointer;
    margin: 0;
}

.payment-method input {
    display: none;
}

.method-content {
    padding: var(--space-md);
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    text-align: center;
    transition: var(--wizard-transition);
    background: var(--wizard-white);
}

.payment-method:hover .method-content {
    border-color: var(--wizard-primary-light);
}

.payment-method input:checked + .method-content {
    border-color: var(--wizard-primary);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f8ff 100%);
}

.method-content i {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--wizard-medium-gray);
    display: block;
}

.payment-method input:checked + .method-content i {
    color: var(--wizard-primary);
}

.method-content span {
    font-weight: 600;
    color: var(--wizard-dark-gray);
}

/* Action Buttons */
.purchase-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn-purchase {
    min-width: 180px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.btn-purchase:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

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

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

/* Animation on Load for Progress Bars */
@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: var(--final-width);
    }
}

.progress-bar[data-animate="true"] {
    animation: progressFill 1.5s ease-out;
}

/* Empty States for Course Section */
.no-courses-state {
    text-align: center;
    padding: var(--space-3xl);
}

.no-courses-state .empty-state-icon {
    font-size: 4rem;
    color: var(--wizard-medium-gray);
    margin-bottom: var(--space-lg);
}

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

/* Mobile Responsiveness for Overview Section */
@media (max-width: 768px) {
    .lesson-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .lesson-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .overview-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .overview-actions .btn {
        flex: 1;
    }

    /* Resume Section Mobile */
    .progress-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .course-progress-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
    
    .course-stats {
        align-self: flex-end;
        text-align: right;
    }
    
    .progress-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .progress-number {
        font-size: 1.5rem;
    }

    /* Add Course Section Mobile */
    .course-grid,
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .purchase-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .purchase-actions .btn {
        width: 100%;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .wizard-container {
        padding: 1rem 0.5rem;
    }
    
    .section-content {
        padding: 1.5rem 1rem;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .progress-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .progress-number {
        font-size: 1.3rem;
    }
    
    .lesson-card-actions {
        justify-content: center;
    }
}

/* === END STUDENT MANAGEMENT V3 ENHANCED SECTIONS STYLES === */

/* === END STUDENT MANAGEMENT V2 STYLES === */

/* === COLLAPSIBLE WIZARD SECTIONS STYLES === */

/* Wizard Section - Collapsible Sections */
.wizard-section {
    margin-bottom: 2rem;
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    box-shadow: var(--wizard-shadow);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: var(--wizard-transition);
}

.wizard-section:hover {
    box-shadow: var(--wizard-shadow-hover);
    transform: translateY(-2px);
}

.wizard-section .section-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 39, 132, 0.05) 0%, rgba(44, 92, 197, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: var(--wizard-transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-section .section-header:hover {
    background: linear-gradient(135deg, rgba(139, 39, 132, 0.1) 0%, rgba(44, 92, 197, 0.1) 100%);
}

.wizard-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--wizard-dark-gray);
    display: flex;
    align-items: center;
    flex: 1;
}

.wizard-section .section-subtitle {
    font-size: 0.875rem;
    color: var(--wizard-medium-gray);
    margin: 0;
    margin-top: 0.25rem;
    font-style: italic;
}

.wizard-section .section-content {
    padding: 1.5rem;
    transition: var(--wizard-transition);
}

/* Collapse Icon */
.collapse-icon {
    color: var(--wizard-primary);
    font-size: 1rem;
    transition: var(--wizard-transition);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.collapse-icon:hover {
    background: rgba(139, 39, 132, 0.1);
    transform: scale(1.1);
}

/* Section States */
.wizard-section.collapsed .section-content {
    display: none;
}

.wizard-section.collapsed {
    box-shadow: var(--wizard-shadow);
    transform: none;
}

.wizard-section.collapsed .section-header {
    border-bottom: none;
}

/* Responsive adjustments for collapsible sections */
@media (max-width: 768px) {
    .wizard-section .section-header {
        padding: 1rem;
    }
    
    .wizard-section .section-content {
        padding: 1rem;
    }
    
    .wizard-section .section-title {
        font-size: 1rem;
    }
}

/* === END COLLAPSIBLE WIZARD SECTIONS STYLES === */

/* === GEAR SELECTION MODAL STYLES === */

/* Gear Selection Modal Base */
.gear-selection-modal .modal-dialog {
    max-width: 900px;
    margin: 1.75rem auto;
}

.gear-selection-content {
    border: none;
    border-radius: var(--wizard-border-radius-lg);
    box-shadow: var(--wizard-shadow-lg);
    overflow: hidden;
}

/* Gear Selection Header with Orange/Yellow Gradient */
.gear-selection-header {
    background: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
    border-bottom: none;
    padding: 1.5rem 2rem;
    position: relative;
}

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

.gear-selection-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--wizard-white);
}

.gear-selection-title h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Gear Selection Body */
.gear-selection-body {
    padding: 2rem;
    background-color: #fafafa;
    max-height: 70vh;
    overflow-y: auto;
}

/* Filter Section */
.gear-filter-section {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: 1.5rem;
    box-shadow: var(--wizard-shadow);
    border-left: 4px solid #FF8C00;
}

.gear-section-title {
    color: var(--wizard-dark-gray);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.gear-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
    border-radius: 2px;
    margin-right: 0.75rem;
}

/* Gear Type Multiselect Dropdown */
.gear-type-multiselect .dropdown-toggle {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--wizard-white);
    border: 1px solid #ced4da;
    border-radius: var(--wizard-border-radius);
    transition: var(--wizard-transition);
}

.gear-type-multiselect .dropdown-toggle:hover,
.gear-type-multiselect .dropdown-toggle:focus {
    border-color: #FF8C00;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.gear-type-multiselect .dropdown-menu {
    border: 1px solid #FF8C00;
    border-radius: var(--wizard-border-radius);
    box-shadow: var(--wizard-shadow-lg);
    z-index: 1050;
}

.gear-type-multiselect .dropdown-item {
    padding: 0.75rem 1rem;
    transition: var(--wizard-transition);
}

.gear-type-multiselect .dropdown-item:hover {
    background-color: rgba(255, 140, 0, 0.1);
}

.gear-type-multiselect .form-check-input:checked {
    background-color: #FF8C00;
    border-color: #FF8C00;
}

/* Quick Time Selection */
.gear-quick-time .btn-group .btn {
    border-color: #FF8C00;
    color: #FF8C00;
    transition: var(--wizard-transition);
}

.gear-quick-time .btn-group .btn:hover,
.gear-quick-time .btn-group .btn:focus {
    background-color: #FF8C00;
    border-color: #FF8C00;
    color: var(--wizard-white);
}

/* Gear Selection Section */
.gear-selection-section {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: 1.5rem;
    box-shadow: var(--wizard-shadow);
    border-left: 4px solid #FFD700;
}

/* Gear Cards Container */
.gear-cards-container {
    border: 1px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    padding: 1rem;
    background-color: #f8f9fa;
}

/* Gear Category Headers */
.gear-category-header {
    color: var(--wizard-dark-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFD700;
    position: relative;
}

.gear-category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FF8C00;
}

/* Individual Gear Cards */
.gear-card {
    background: var(--wizard-white);
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--wizard-transition);
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.gear-card:hover {
    border-color: #FF8C00;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
    transform: translateY(-2px);
}

.gear-card.selected {
    border-color: #FF8C00;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.gear-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gear-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.gear-card-checkbox {
    font-size: 1.25rem;
    color: var(--wizard-medium-gray);
}

.gear-card.selected .gear-card-checkbox {
    color: #FF8C00;
}

.gear-card-body {
    flex: 1;
}

.gear-card-title {
    font-weight: 600;
    color: var(--wizard-dark-gray);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.gear-card-text {
    color: var(--wizard-medium-gray);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Selected Gear Tags */
.selected-gear-tags {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius);
    padding: 1.5rem;
    box-shadow: var(--wizard-shadow);
    border-left: 4px solid #28a745;
}

.gear-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gear-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: var(--wizard-white);
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    transition: var(--wizard-transition);
}

.gear-tag:hover {
    background: linear-gradient(135deg, #218838 0%, #28a745 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.gear-tag-remove {
    background: none;
    border: none;
    color: var(--wizard-white);
    font-size: 0.75rem;
    padding: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wizard-transition);
}

.gear-tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Gear Selection Footer */
.gear-selection-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 2rem;
}

.gear-selection-summary {
    font-weight: 500;
    color: var(--wizard-medium-gray);
}

.gear-selection-actions .btn {
    min-width: 100px;
    font-weight: 500;
    transition: var(--wizard-transition);
}

.gear-selection-actions .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.gear-selection-actions .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

.gear-selection-actions .btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* Gear Modal Backdrop */
.gear-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

/* Alert Styles for Gear Selection */
.gear-selection-body .alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: #0c5460;
    border-radius: var(--wizard-border-radius);
    padding: 0.75rem 1rem;
}

.gear-selection-body .alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Form Controls in Gear Selection */
.gear-selection-body .form-floating > .form-control,
.gear-selection-body .form-floating > .form-select {
    border: 1px solid #ced4da;
    border-radius: var(--wizard-border-radius);
    transition: var(--wizard-transition);
}

.gear-selection-body .form-floating > .form-control:focus,
.gear-selection-body .form-floating > .form-select:focus {
    border-color: #FF8C00;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.gear-selection-body .form-floating > label {
    color: var(--wizard-medium-gray);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .gear-selection-modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .gear-selection-modal.modal-fullscreen .modal-dialog {
        margin: 0;
        max-width: none;
        height: 100vh;
    }
    
    .gear-selection-body {
        padding: 1rem;
        max-height: calc(100vh - 200px);
    }
    
    .gear-filter-section,
    .gear-selection-section,
    .selected-gear-tags {
        padding: 1rem;
    }
    
    .gear-selection-header {
        padding: 1rem 1.5rem;
    }
    
    .gear-selection-footer {
        padding: 1rem 1.5rem;
    }
    
    .gear-card {
        padding: 0.75rem;
        min-height: 80px;
    }
    
    .gear-cards-container .col-12 {
        margin-bottom: 0.75rem;
    }
    
    .gear-quick-time .btn-group {
        display: flex;
        width: 100%;
    }
    
    .gear-quick-time .btn-group .btn {
        flex: 1;
        font-size: 0.875rem;
        padding: 0.5rem 0.25rem;
    }
    
    .gear-tags-container {
        gap: 0.25rem;
    }
    
    .gear-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .gear-card {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .gear-card:hover {
        transform: none; /* Disable hover transforms on touch devices */
    }
    
    .gear-tag:hover {
        transform: none;
    }
    
    .gear-selection-actions .btn:hover {
        transform: none;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gear-selection-icon {
        background-size: contain;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .gear-card,
    .gear-tag,
    .gear-selection-actions .btn,
    .gear-quick-time .btn-group .btn,
    .gear-type-multiselect .dropdown-toggle {
        transition: none;
    }
}

/* Dark Mode Support - Restricted to Desktop Only */
@media (prefers-color-scheme: dark) and (min-width: 992px) {
    .gear-selection-body {
        background-color: #2d3748;
    }
    
    .gear-filter-section,
    .gear-selection-section,
    .selected-gear-tags {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .gear-card {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .gear-card:hover {
        border-color: #FF8C00;
    }
    
    .gear-selection-body .form-floating > .form-control,
    .gear-selection-body .form-floating > .form-select {
        background-color: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}

/* Mobile-specific gear card styling - Force light wizard theme */
@media (max-width: 991px) {
    .gear-card {
        background: var(--wizard-light-gray, #f8f9fa) !important;
        border: 2px solid #e9ecef !important;
        color: var(--wizard-dark-gray, #343a40) !important;
    }
    
    .gear-card:hover {
        border-color: #FF8C00 !important;
        background: var(--wizard-white, #ffffff) !important;
        box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15) !important;
        transform: translateY(-2px) !important;
    }
    
    .gear-card.selected {
        border-color: #FF8C00 !important;
        background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
        color: var(--wizard-dark-gray, #343a40) !important;
    }
    
    .gear-card-title,
    .gear-card-text {
        color: var(--wizard-dark-gray, #343a40) !important;
    }
    
    /* Ensure form elements match wizard styling on mobile */
    .gear-selection-body .form-floating > .form-control,
    .gear-selection-body .form-floating > .form-select {
        background: var(--wizard-white, #ffffff) !important;
        border: 1px solid #ced4da !important;
        color: var(--wizard-dark-gray, #343a40) !important;
    }
}

/* === END GEAR SELECTION MODAL STYLES === */

/* ========================================= */
/* === USER MANAGEMENT V2 STYLES === */
/* ========================================= */

/* User Management Color Theme Variables */
:root {
    --user-primary: #6f42c1;        /* Professional purple */
    --user-primary-light: #8a6ad8;
    --user-primary-dark: #5a2d9e;
    --user-secondary: #495057;       /* Professional gray */
    --user-secondary-light: #6c757d;
    --user-accent: #fd7e14;          /* Professional orange accent */
    --user-accent-light: #ff922b;
    --user-success: #198754;         /* Professional green */
    --user-warning: #fd7e14;         /* Professional orange */
    --user-danger: #dc3545;          /* Professional red */
    --user-info: #0dcaf0;           /* Professional cyan */
    --user-light: #f8f9fa;
    --user-dark: #212529;
    --user-card-shadow: 0 0.25rem 0.75rem rgba(111, 66, 193, 0.15);
    --user-card-shadow-hover: 0 0.5rem 1.5rem rgba(111, 66, 193, 0.25);
    --user-border-radius: 0.5rem;
    --user-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================= */
/* === INSTRUCTOR KPI DASHBOARD STYLES === */
/* ========================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--wizard-white);
    border-radius: var(--user-border-radius);
    padding: 1.5rem;
    box-shadow: var(--user-card-shadow);
    transition: var(--user-transition);
    border: 1px solid rgba(111, 66, 193, 0.1);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--user-primary), var(--user-accent));
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--user-card-shadow-hover);
    border-color: var(--user-primary);
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--wizard-white);
    transition: var(--user-transition);
}

.kpi-icon.bg-success {
    background: linear-gradient(135deg, var(--user-success), #20c997);
}

.kpi-icon.bg-primary {
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-light));
}

.kpi-icon.bg-warning {
    background: linear-gradient(135deg, var(--user-warning), var(--user-accent-light));
}

.kpi-icon.bg-info {
    background: linear-gradient(135deg, var(--user-info), #3dd5f3);
}

.kpi-content h3.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--user-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.kpi-content p.kpi-label {
    font-size: 0.875rem;
    color: var(--user-secondary);
    margin-bottom: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* KPI Responsive Adjustments */
@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .kpi-card {
        padding: 1rem;
    }
    
    .kpi-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .kpi-content h3.kpi-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ========================================= */
/* === USER INDEX V2 GRID ENHANCEMENTS === */
/* ========================================= */

.modern-data-grid {
    background: var(--wizard-white);
    border-radius: var(--user-border-radius);
    box-shadow: var(--user-card-shadow);
    overflow: hidden;
}

.grid-header {
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-light));
    color: var(--wizard-white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.grid-header .section-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.grid-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.grid-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-actions .modern-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--wizard-white);
    padding: 0.5rem 1rem;
    border-radius: var(--user-border-radius);
    font-weight: 500;
    transition: var(--user-transition);
}

.header-actions .modern-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.header-actions .modern-btn-primary {
    background: var(--user-accent);
    border: 1px solid var(--user-accent);
    color: var(--wizard-white);
    padding: 0.5rem 1rem;
    border-radius: var(--user-border-radius);
    font-weight: 600;
    transition: var(--user-transition);
}

.header-actions .modern-btn-primary:hover {
    background: var(--user-accent-light);
    transform: translateY(-1px);
}

/* Enhanced Filter Section */
.grid-filters {
    background: var(--user-light);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(111, 66, 193, 0.1);
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.grid-filters .form-floating {
    position: relative;
}

.grid-filters .form-floating label {
    color: var(--user-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.grid-filters .modern-input,
.grid-filters .custom-bootstrap-select {
    border: 2px solid #e9ecef;
    border-radius: var(--user-border-radius);
    transition: var(--user-transition);
    background: var(--wizard-white);
}

.grid-filters .modern-input:focus,
.grid-filters .custom-bootstrap-select:focus {
    border-color: var(--user-primary);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Enhanced Grid Content */
.grid-content {
    padding: 0;
    background: var(--wizard-white);
}

.modern-sf-grid.user-grid {
    border: none;
    background: transparent;
}

.modern-sf-grid.user-grid .e-gridheader {
    background: var(--user-light);
    border-bottom: 2px solid var(--user-primary);
    font-weight: 600;
    color: var(--user-dark);
}

.modern-sf-grid.user-grid .e-gridcontent {
    background: var(--wizard-white);
}

.modern-sf-grid.user-grid .e-row:hover {
    background: rgba(111, 66, 193, 0.05);
}

.modern-grid-link {
    color: var(--user-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--user-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.modern-grid-link:hover {
    color: var(--user-primary-dark);
    text-decoration: underline;
}

/* Role Badges */
.role-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.role-badges .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Tags Container */
.tags-container {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.modern-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Grid Loading State */
.grid-loading {
    padding: 3rem;
    text-align: center;
    background: var(--wizard-white);
}

/* ========================================= */
/* === USER CREATE/EDIT V2 WIZARD STYLES === */
/* ========================================= */

/* Enhanced Wizard Sections for User Management - Colors Removed for Simple Styling */

/* Enhanced Section Content for User Management */
.wizard-section .section-content {
    padding: 2rem;
    background: var(--wizard-white);
}

/* Current Skills Grid */
.current-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-card {
    background: var(--wizard-white);
    border: 2px solid #e9ecef;
    border-radius: var(--user-border-radius);
    padding: 1.5rem;
    transition: var(--user-transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--user-primary);
}

.skill-card:hover {
    border-color: var(--user-primary);
    transform: translateY(-2px);
    box-shadow: var(--user-card-shadow-hover);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--user-dark);
    margin: 0;
}

.skill-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.skill-details p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--user-secondary);
}

.skill-details strong {
    color: var(--user-dark);
}

.skill-sync {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Skills Assignment Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-option-card {
    background: var(--wizard-white);
    border: 2px solid #e9ecef;
    border-radius: var(--user-border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--user-transition);
}

.skill-option-card:hover {
    border-color: var(--user-primary);
    box-shadow: var(--user-card-shadow);
}

.skill-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--user-dark);
    margin-bottom: 1rem;
}

.skill-option-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-option-actions .modern-btn-secondary,
.skill-option-actions .modern-btn-primary {
    padding: 0.5rem 1rem;
    border-radius: var(--user-border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--user-transition);
    border: none;
    cursor: pointer;
}

.skill-option-actions .modern-btn-secondary {
    background: var(--user-light);
    color: var(--user-secondary);
    border: 1px solid #dee2e6;
}

.skill-option-actions .modern-btn-secondary:hover {
    background: var(--user-secondary);
    color: var(--wizard-white);
}

.skill-option-actions .modern-btn-primary {
    background: var(--user-primary);
    color: var(--wizard-white);
}

.skill-option-actions .modern-btn-primary:hover {
    background: var(--user-primary-dark);
    transform: translateY(-1px);
}

/* Enhanced Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--user-secondary);
}

.empty-state i {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* User Management Button Styles */
.modern-btn-info {
    background: var(--user-info);
    border: 1px solid var(--user-info);
    color: var(--wizard-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--user-border-radius);
    font-weight: 500;
    transition: var(--user-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.modern-btn-info:hover {
    background: #0bb4d6;
    transform: translateY(-1px);
    box-shadow: var(--user-card-shadow);
}

.modern-btn-warning {
    background: var(--user-warning);
    border: 1px solid var(--user-warning);
    color: var(--wizard-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--user-border-radius);
    font-weight: 500;
    transition: var(--user-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.modern-btn-warning:hover {
    background: var(--user-accent-light);
    transform: translateY(-1px);
    box-shadow: var(--user-card-shadow);
}

.modern-btn-success {
    background: var(--user-success);
    border: 1px solid var(--user-success);
    color: var(--wizard-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--user-border-radius);
    font-weight: 500;
    transition: var(--user-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.modern-btn-success:hover {
    background: #157347;
    transform: translateY(-1px);
    box-shadow: var(--user-card-shadow);
}

/* ========================================= */
/* === USER MANAGEMENT RESPONSIVE STYLES === */
/* ========================================= */

@media (max-width: 768px) {
    .grid-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
    
    .grid-header .d-flex {
        justify-content: center;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-row .col-md-4,
    .filter-row .col-md-6 {
        width: 100%;
    }
    
    .current-skills-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-card,
    .skill-option-card {
        padding: 1rem;
    }
    
    .skill-option-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .skill-option-actions .modern-btn-secondary,
    .skill-option-actions .modern-btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wizard-container {
        padding: 1rem 0.5rem;
    }
    
    .wizard-section .section-content {
        padding: 1rem;
    }
    
    .grid-filters {
        padding: 1rem;
    }
    
    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .modern-btn-info,
    .modern-btn-warning,
    .modern-btn-success {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================= */
/* === USER MANAGEMENT ACCESSIBILITY === */
/* ========================================= */

/* Focus styles for better keyboard navigation */
.modern-grid-link:focus,
.skill-card:focus,
.skill-option-card:focus {
    outline: 2px solid var(--user-primary);
    outline-offset: 2px;
}

.modern-btn-secondary:focus,
.modern-btn-primary:focus,
.modern-btn-info:focus,
.modern-btn-warning:focus,
.modern-btn-success:focus {
    outline: 2px solid var(--user-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .kpi-card,
    .skill-card,
    .skill-option-card {
        border-width: 2px;
        border-color: var(--user-dark);
    }
    
    .modern-grid-link {
        text-decoration: underline;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .kpi-card,
    .skill-card,
    .skill-option-card,
    .modern-btn-secondary,
    .modern-btn-primary,
    .modern-btn-info,
    .modern-btn-warning,
    .modern-btn-success,
    .modern-grid-link {
        transition: none;
    }
    
    .kpi-card:hover,
    .skill-card:hover,
    .modern-btn-secondary:hover,
    .modern-btn-primary:hover,
    .modern-btn-info:hover,
    .modern-btn-warning:hover,
    .modern-btn-success:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .wizard-container {
        background: white;
        box-shadow: none;
    }
    
    .kpi-card,
    .skill-card,
    .skill-option-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .header-actions {
        display: none;
    }
}


/* === END SYNCFUSION + BOOTSTRAP FORM-FLOATING INTEGRATION FIXES === */

/* === END USER MANAGEMENT V2 STYLES === */