/* 
 * CIPD AI Engine - Modern Dashboard Design
 * Complete redesign with modern UI principles
 * Version: 3.0 - Modern & Responsive
 */

/* =================================
   CSS RESET & MODERN BASE STYLES
   ================================= */

.cipd-student-dashboard *,
.cipd-group-leader-dashboard * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =================================
   MODERN DASHBOARD CONTAINER
   ================================= */

.cipd-student-dashboard,
.cipd-group-leader-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 0;
}

/* Modern Dashboard Header */
.cipd-dashboard-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 3rem 2rem;
    margin: 0 0 2rem 0;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cipd-dashboard-header::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"><path d="m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.1;
}

.cipd-dashboard-header h1,
.cipd-dashboard-header h2 {
    position: relative;
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cipd-user-info {
    position: relative;
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

/* =================================
   ENHANCED SUBMISSIONS SECTION - MODERN HORIZONTAL LAYOUT
   ================================= */

.cipd-modern-submissions {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.cipd-submissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.cipd-submissions-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cipd-submissions-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cipd-filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cipd-filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.cipd-select-modern {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    min-width: 140px;
    transition: all 0.2s ease;
}

.cipd-select-modern:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cipd-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.cipd-submissions-controls {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cipd-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cipd-filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.cipd-select-modern {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    min-width: 140px;
    transition: all 0.3s ease;
}

.cipd-select-modern:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cipd-btn-new-submission {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
}

/* =================================
   FANCY ANALYTICS GRID
   ================================= */

.cipd-modern-team-progress {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.cipd-team-progress-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cipd-team-progress-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

/* Enhanced Team Progress Analytics - Horizontal Layout */
.cipd-analytics-fancy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .cipd-analytics-fancy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cipd-analytics-fancy-grid {
        grid-template-columns: 1fr;
    }
}

.cipd-analytics-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cipd-analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cipd-analytics-card:hover::before {
    transform: scaleX(1);
}

.cipd-analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #c7d2fe;
}

.cipd-analytics-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.cipd-analytics-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cipd-analytics-title {
    text-align: left;
    flex: 1;
}

.cipd-analytics-title h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.cipd-learner-count {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.cipd-analytics-progress {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
}

.cipd-progress-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cipd-circle-svg {
    transform: rotate(-90deg);
}

.cipd-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cipd-percentage {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.cipd-analytics-actions {
    margin-top: auto;
}

.cipd-btn-analytics {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.cipd-btn-analytics:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cipd-progress-circle {
    position: relative;
    display: inline-block;
}

.cipd-circle-svg {
    transform: rotate(-90deg);
    transition: all 0.6s ease;
}

.cipd-circle-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    0% { stroke-dashoffset: 188.5; }
}

.cipd-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.cipd-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.cipd-btn-analytics {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cipd-btn-analytics:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* =================================
   ENHANCED PROGRESS INSIGHTS
   ================================= */

.cipd-progress-insights-enhanced {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.cipd-insights-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cipd-insights-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

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

@media (max-width: 1024px) {
    .cipd-insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cipd-insights-grid {
        grid-template-columns: 1fr;
    }
}

.cipd-insight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.cipd-insight-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cipd-insight-card.trending-up {
    border-left: 4px solid #10b981;
}

.cipd-insight-card.attention-needed {
    border-left: 4px solid #f59e0b;
}

.cipd-insight-card.milestone {
    border-left: 4px solid #8b5cf6;
}

.cipd-insight-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    flex-shrink: 0;
}

.cipd-insight-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.cipd-insight-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.cipd-insight-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cipd-btn-icon {
    margin-right: 0.5rem;
}

/* =================================
   ENHANCED EMPTY STATES
   ================================= */

.cipd-empty-state-enhanced {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.cipd-empty-state-enhanced .cipd-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.cipd-empty-state-enhanced h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.cipd-empty-state-enhanced p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* =================================
   COURSE LINKS & INTERACTIVE ELEMENTS
   ================================= */

.cipd-course-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.cipd-course-link:hover {
    color: #1d4ed8;
    border-bottom-color: #3b82f6;
    text-decoration: none;
}

/* =================================
   MODAL SYSTEM
   ================================= */

.cipd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.cipd-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

.cipd-modal-large {
    max-width: 800px;
}

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

.cipd-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cipd-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cipd-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cipd-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.cipd-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.cipd-modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Modal Content Styles */
.cipd-submission-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cipd-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cipd-detail-label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
    flex-shrink: 0;
}

.cipd-detail-value {
    color: #0f172a;
    flex: 1;
}

.cipd-grade {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

/* Session Form Styles */
.cipd-session-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cipd-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cipd-form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.cipd-form-group input,
.cipd-form-group select,
.cipd-form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cipd-form-group input:focus,
.cipd-form-group select:focus,
.cipd-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =================================
   NOTIFICATION SYSTEM
   ================================= */

.cipd-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10001;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cipd-notification-success {
    border-left-color: #10b981;
}

.cipd-notification-error {
    border-left-color: #ef4444;
}

.cipd-notification-warning {
    border-left-color: #f59e0b;
}

.cipd-notification-info {
    border-left-color: #3b82f6;
}

.cipd-notification-message {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.cipd-notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cipd-notification-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* =================================
   LOADING STATES
   ================================= */

.cipd-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.cipd-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.cipd-page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.cipd-page-loading::before {
    content: 'Loading...';
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

/* Modal open body styles */
body.cipd-modal-open {
    overflow: hidden;
}

/* =================================
   TAB IMPROVEMENTS
   ================================= */

.cipd-tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.cipd-tab-btn.active {
    color: #3b82f6;
    font-weight: 600;
}

.cipd-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

.cipd-tab-pane {
    animation: tabFadeIn 0.3s ease-out;
}

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

/* =================================
   RESPONSIVE IMPROVEMENTS
   ================================= */

@media (max-width: 768px) {
    .cipd-modal {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .cipd-modal-header,
    .cipd-modal-body,
    .cipd-modal-footer {
        padding: 1.5rem;
    }
    
    .cipd-analytics-fancy-grid {
        grid-template-columns: 1fr;
    }
    
    .cipd-submissions-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cipd-filter-group {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .cipd-insight-actions {
        flex-direction: column;
    }
    
    .cipd-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* =================================
   MODERN STATS CARDS
   ================================= */

.cipd-progress-stats,
.cipd-leader-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.cipd-stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cipd-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.cipd-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cipd-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cipd-stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cipd-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.cipd-stat-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cipd-stat-change {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cipd-stat-change.negative {
    color: #ef4444;
}

/* Horizontal Stats Layout (as requested) */
.cipd-stat-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cipd-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    line-height: 1;
}

.cipd-stat-info {
    flex: 1;
}

.cipd-stat-title {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cipd-stat-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* =================================
   MODERN TAB NAVIGATION
   ================================= */

.cipd-dashboard-nav {
    background: white;
    border-radius: 16px;
    padding: 0.5rem;
    margin: -1rem 1rem 3rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cipd-dashboard-nav::-webkit-scrollbar {
    display: none;
}

.cipd-tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    min-width: max-content;
}

.cipd-tab-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
    transform: translateY(-1px);
}

.cipd-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cipd-tab-btn.active::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Tab Content */
.cipd-tab-content {
    margin: 0 1rem;
}

.cipd-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.cipd-tab-pane.active {
    display: block;
}

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

/* =================================
   MODERN SECTION CARDS
   ================================= */

.cipd-dashboard-section {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.cipd-dashboard-section h3 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cipd-dashboard-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* =================================
   MODERN PROGRESS BARS
   ================================= */

.cipd-progress-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.cipd-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cipd-progress-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.cipd-progress-percentage {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.1rem;
}

.cipd-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.cipd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 8px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cipd-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =================================
   MODERN BUTTON STYLES
   ================================= */

.cipd-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cipd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.cipd-btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cipd-btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.cipd-btn-outline {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cipd-btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* =================================
   MODERN GRID LAYOUTS
   ================================= */

.cipd-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cipd-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* =================================
   MODERN SESSION CARDS
   ================================= */

.cipd-session-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cipd-session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cipd-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cipd-session-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cipd-session-date .date {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.cipd-session-date .time {
    font-size: 0.875rem;
    color: #64748b;
}

.cipd-session-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cipd-session-status.status-confirmed {
    background: #dcfce7;
    color: #16a34a;
}

.cipd-session-status.status-scheduled {
    background: #fef3c7;
    color: #d97706;
}

.cipd-session-status.status-completed {
    background: #dbeafe;
    color: #1d4ed8;
}

/* =================================
   MODERN TABS
   ================================= */

.cipd-session-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
}

.cipd-session-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cipd-session-tab.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =================================
   MODERN ACTIVITY FEED
   ================================= */

.cipd-activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.cipd-activity-item:hover {
    background: #f8fafc;
}

.cipd-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    flex-shrink: 0;
}

.cipd-activity-content {
    flex: 1;
}

.cipd-activity-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cipd-activity-time {
    font-size: 0.875rem;
    color: #64748b;
}

/* =================================
   MODERN EMPTY STATES
   ================================= */

.cipd-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.cipd-empty-state h4 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.cipd-empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cipd-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #94a3b8;
}

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

@media (max-width: 768px) {
    .cipd-dashboard-header {
        padding: 2rem 1rem;
        border-radius: 0 0 24px 24px;
    }
    
    .cipd-dashboard-header h1,
    .cipd-dashboard-header h2 {
        font-size: 2rem;
    }
    
    .cipd-dashboard-content {
        padding: 0 1rem;
    }
    
    .cipd-progress-stats,
    .cipd-leader-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .cipd-analytics-grid,
    .cipd-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cipd-dashboard-section {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .cipd-stat-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .cipd-dashboard-header {
        padding: 1.5rem 1rem;
    }
    
    .cipd-dashboard-header h1,
    .cipd-dashboard-header h2 {
        font-size: 1.75rem;
    }
    
    .cipd-stat-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cipd-session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* =================================
   MODERN ANIMATIONS
   ================================= */

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

.cipd-stat-card,
.cipd-dashboard-section {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cipd-stat-card:nth-child(1) { animation-delay: 0.1s; }
.cipd-stat-card:nth-child(2) { animation-delay: 0.2s; }
.cipd-stat-card:nth-child(3) { animation-delay: 0.3s; }
.cipd-stat-card:nth-child(4) { animation-delay: 0.4s; }

/* =================================
   MODERN UTILITIES
   ================================= */

.cipd-text-primary { color: #3b82f6; }
.cipd-text-success { color: #10b981; }
.cipd-text-warning { color: #f59e0b; }
.cipd-text-danger { color: #ef4444; }
.cipd-text-muted { color: #64748b; }

.cipd-bg-primary { background: #3b82f6; }
.cipd-bg-success { background: #10b981; }
.cipd-bg-warning { background: #f59e0b; }
.cipd-bg-danger { background: #ef4444; }
.cipd-bg-light { background: #f8fafc; }

.cipd-rounded { border-radius: 8px; }
.cipd-rounded-lg { border-radius: 12px; }
.cipd-rounded-xl { border-radius: 16px; }
.cipd-rounded-2xl { border-radius: 20px; }

.cipd-shadow { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.cipd-shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.cipd-shadow-xl { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }

/* =================================
   LEARNER CARDS
   ================================= */

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

.cipd-learner-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cipd-learner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.cipd-learner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.cipd-learner-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.cipd-learner-email {
    font-size: 0.875rem;
    color: #64748b;
}

.cipd-learner-progress {
    margin-bottom: 1rem;
}

.cipd-learner-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
}

/* =================================
   REVIEW ITEMS
   ================================= */

.cipd-reviews-list {
    space-y: 1rem;
}

.cipd-review-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cipd-review-item:hover {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cipd-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.cipd-review-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.cipd-review-time {
    font-size: 0.875rem;
    color: #64748b;
    white-space: nowrap;
}

.cipd-review-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.cipd-review-learner {
    color: #3b82f6;
    font-weight: 500;
}

.cipd-review-type {
    color: #64748b;
}

.cipd-review-actions {
    display: flex;
    gap: 0.5rem;
}

/* =================================
   COMPETENCY CARDS
   ================================= */

.cipd-competency-category {
    margin-bottom: 2rem;
}

.cipd-competency-category h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

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

.cipd-competency-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.cipd-competency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cipd-competency-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.cipd-competency-level {
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cipd-competency-level.proficient {
    background: #dcfce7;
    color: #16a34a;
}

.cipd-competency-level.developing {
    background: #fef3c7;
    color: #d97706;
}

.cipd-competency-level.not_started {
    background: #f1f5f9;
    color: #64748b;
}

.cipd-competency-progress {
    margin-bottom: 1rem;
}

.cipd-progress-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    display: block;
}

.cipd-competency-evidence {
    font-size: 0.875rem;
    color: #64748b;
}

/* =================================
   EVIDENCE CARDS
   ================================= */

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

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

.cipd-evidence-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cipd-evidence-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cipd-evidence-card.view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.cipd-evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cipd-evidence-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.cipd-evidence-status {
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cipd-evidence-status.approved {
    background: #dcfce7;
    color: #16a34a;
}

.cipd-evidence-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.cipd-evidence-status.needs_revision {
    background: #fecaca;
    color: #dc2626;
}

.cipd-evidence-date {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* =================================
   RECOMMENDATION CARDS
   ================================= */

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

.cipd-recommendation-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.cipd-recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #64748b;
}

.cipd-recommendation-card.priority-high::before {
    background: #ef4444;
}

.cipd-recommendation-card.priority-urgent::before {
    background: #dc2626;
}

.cipd-recommendation-card.priority-medium::before {
    background: #f59e0b;
}

.cipd-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cipd-recommendation-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.cipd-priority-badge {
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #64748b;
}

.priority-high .cipd-priority-badge {
    background: #fecaca;
    color: #dc2626;
}

.priority-urgent .cipd-priority-badge {
    background: #fecaca;
    color: #991b1b;
}

.priority-medium .cipd-priority-badge {
    background: #fef3c7;
    color: #d97706;
}

.cipd-recommendation-body {
    margin-bottom: 1.5rem;
}

.cipd-recommendation-body p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.cipd-recommendation-actions {
    display: flex;
    gap: 0.5rem;
}

/* =================================
   REPORT CARDS
   ================================= */

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

.cipd-report-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.cipd-report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cipd-report-header {
    margin-bottom: 1.5rem;
}

.cipd-report-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cipd-report-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.cipd-report-body {
    margin-bottom: 2rem;
}

.cipd-report-body p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.cipd-report-actions {
    display: flex;
    justify-content: center;
}

/* =================================
   PROGRESS CATEGORIES
   ================================= */

.cipd-progress-categories {
    display: grid;
    gap: 1.5rem;
}

.cipd-progress-category {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.cipd-progress-meta {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.cipd-progress-details {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* =================================
   MODERN BOOKING FORM
   ================================= */

.cipd-modern-booking-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.cipd-booking-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.cipd-booking-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.cipd-booking-header p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.cipd-booking-form {
    max-width: 800px;
    margin: 0 auto;
}

.cipd-form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.cipd-form-section h5 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cipd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cipd-form-group {
    margin-bottom: 1.5rem;
}

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

.cipd-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.cipd-form-group input,
.cipd-form-group select,
.cipd-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.cipd-form-group input:focus,
.cipd-form-group select:focus,
.cipd-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cipd-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Calendar View */
.cipd-calendar-view {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

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

.cipd-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.cipd-nav-btn:hover {
    background: #e2e8f0;
    color: #374151;
}

.cipd-week-range {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.cipd-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cipd-day-column {
    text-align: center;
}

.cipd-day-header {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
}

.cipd-day-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cipd-day-date {
    font-size: 0.8rem;
    color: #64748b;
}

.cipd-time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cipd-time-slot {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

.cipd-time-slot:hover {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1e40af;
}

.cipd-time-slot.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cipd-time-slot.unavailable {
    background: #f1f5f9;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

.cipd-selected-slot {
    padding: 1rem;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 12px;
    border: 1px solid #16a34a;
}

.cipd-selection-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #16a34a;
    font-weight: 500;
}

.cipd-selection-icon {
    width: 24px;
    height: 24px;
    background: #16a34a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.cipd-form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.cipd-btn-icon {
    margin-right: 0.5rem;
}

/* Form Responsive */
@media (max-width: 768px) {
    .cipd-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cipd-time-slots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cipd-day-column {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 1rem;
        align-items: start;
    }
    
    .cipd-time-slots {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* =================================
   HORIZONTAL PROGRESS BARS FIX
   ================================= */

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

.cipd-progress-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.cipd-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cipd-progress-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.cipd-progress-percentage {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.2rem;
}

.cipd-progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.cipd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Horizontal Competency Layout */
.cipd-competency-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cipd-competency-progress .cipd-progress-bar {
    flex: 1;
    margin-bottom: 0;
}

.cipd-competency-progress .cipd-progress-text {
    white-space: nowrap;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    min-width: 80px;
}

/* Horizontal Session Layout */
.cipd-sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Better Tab Design */
.cipd-session-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.cipd-session-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.cipd-session-tab.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.cipd-session-tab:hover:not(.active) {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

/* Modern Charts Placeholder */
.cipd-chart-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

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

.cipd-chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.cipd-chart-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
    border: 2px dashed #cbd5e1;
}

/* =================================
   MODERN CHARTS & VISUALIZATIONS
   ================================= */

.cipd-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.cipd-chart-filter {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    color: #64748b;
}

.cipd-chart-expand {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cipd-chart-expand:hover {
    background: #e2e8f0;
    color: #374151;
}

/* Progress Chart */
.cipd-progress-chart {
    padding: 1rem 0;
}

.cipd-chart-visual {
    margin-bottom: 1.5rem;
}

.cipd-chart-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
}

.cipd-chart-label {
    min-width: 120px;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.cipd-chart-bar-container {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.cipd-chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cipd-chart-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: chartShimmer 2s infinite;
}

@keyframes chartShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cipd-chart-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.9rem;
}

.cipd-chart-stats {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

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

.cipd-chart-stat {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.cipd-chart-stat .cipd-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.cipd-chart-stat .cipd-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Timeline Chart */
.cipd-activity-chart {
    padding: 1rem 0;
}

.cipd-timeline-chart {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 200px;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cipd-timeline-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 0.5rem;
}

.cipd-timeline-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.cipd-timeline-bar-container {
    width: 32px;
    height: 120px;
    background: #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: end;
    margin-bottom: 0.5rem;
}

.cipd-timeline-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    border-radius: 16px;
    transition: height 2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 8px;
}

.cipd-timeline-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.cipd-timeline-stats {
    text-align: center;
    padding: 1rem;
    background: #dcfce7;
    border-radius: 8px;
    border: 1px solid #16a34a;
}

.cipd-timeline-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cipd-timeline-trend {
    font-weight: 600;
    color: #16a34a;
}

.cipd-timeline-text {
    color: #374151;
    font-size: 0.875rem;
}

/* Enhanced Report Cards */
.cipd-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cipd-report-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cipd-report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cipd-report-stats {
    margin: 1.5rem 0;
}

.cipd-report-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cipd-report-stat-row:last-child {
    border-bottom: none;
}

.cipd-report-stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

.cipd-report-stat-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

/* Responsive Charts */
@media (max-width: 768px) {
    .cipd-charts-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cipd-chart-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .cipd-chart-label {
        min-width: auto;
        text-align: center;
    }
    
    .cipd-chart-value {
        text-align: center;
        min-width: auto;
    }
    
    .cipd-stat-grid {
        grid-template-columns: 1fr;
    }
    
    .cipd-timeline-chart {
        height: 150px;
    }
    
    .cipd-timeline-bar-container {
        height: 80px;
        width: 24px;
    }
}

/* =================================
   IMPROVED SUBMISSIONS LAYOUT
   ================================= */

.cipd-modern-submissions {
    width: 100%;
    padding: 1rem;
}

.cipd-submissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cipd-submissions-filters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cipd-submissions-filters select {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.cipd-submissions-filters select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modern Horizontal Submissions Layout */
.cipd-submissions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.cipd-submission-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: auto;
    width: 100%;
}

.cipd-submission-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #c7d2fe;
}

.cipd-submission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

.cipd-submission-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.cipd-submission-header h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.cipd-submission-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    flex-wrap: wrap;
    margin: 0;
}

.cipd-submission-body {
    flex: 2;
    min-width: 0;
    padding: 0 1rem;
}

.cipd-submission-description {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0 1rem 0;
    word-wrap: break-word;
}

.cipd-submission-feedback {
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}

.cipd-submission-feedback strong {
    color: #1e293b;
    font-size: 0.9rem;
}

.cipd-submission-feedback p {
    margin: 0.5rem 0 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cipd-submission-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cipd-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.cipd-submission-type {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-weight: 600;
    color: #3b82f6;
    border: 1px solid #e2e8f0;
}

.cipd-submission-date {
    color: #64748b;
    font-weight: 500;
}

.cipd-submission-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.cipd-submission-feedback {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 5px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0 16px 16px 0;
    margin-top: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cipd-submission-feedback strong {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
}

.cipd-submission-feedback p {
    margin: 1rem 0 0 0;
    color: #64748b;
    font-style: italic;
    line-height: 1.6;
}

.cipd-submission-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.cipd-submission-actions button {
    min-width: 140px;
}

/* Course Links Integration */
.cipd-course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.cipd-course-link:hover {
    background: #f1f5f9;
    color: #1e40af;
    text-decoration: none;
    transform: translateY(-1px);
}

.cipd-course-link::after {
    content: '→';
    font-weight: bold;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .cipd-submissions-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .cipd-submissions-filters {
        justify-content: center;
        gap: 1rem;
    }
    
    .cipd-submissions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .cipd-submission-card {
        padding: 1.5rem;
    }
    
    .cipd-submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cipd-submission-actions {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .cipd-submission-actions button {
        min-width: auto;
        flex: 1;
    }
}

/* =================================
   TEAM PROGRESS GRID LAYOUT
   ================================= */

.cipd-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cipd-progress-grid-item {
    display: flex;
    flex-direction: column;
}

.cipd-progress-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cipd-progress-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cipd-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.cipd-progress-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.cipd-progress-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cipd-progress-content h4 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
}

.cipd-progress-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1;
}

.cipd-progress-bar {
    background: #f1f5f9;
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.cipd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

.cipd-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cipd-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: auto;
}

.cipd-progress-change {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.cipd-progress-change.positive {
    background: #dcfce7;
    color: #15803d;
}

.cipd-progress-change.negative {
    background: #fee2e2;
    color: #dc2626;
}

/* Progress Insights */
.cipd-progress-insights {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-top: 1.5rem;
}

.cipd-insight-card {
    margin-bottom: 1.5rem;
}

.cipd-insight-card h5 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

.cipd-insight-card p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.cipd-insight-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .cipd-progress-grid {
        grid-template-columns: 1fr;
    }
    
    .cipd-progress-number {
        font-size: 2rem;
    }
    
    .cipd-insight-actions {
        flex-direction: column;
    }
}

/* =================================
   MODAL STYLES
   ================================= */

.cipd-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cipd-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

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

.cipd-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cipd-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.cipd-session-booking-form h3 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.cipd-form-group {
    margin-bottom: 1.5rem;
}

.cipd-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.cipd-form-group input,
.cipd-form-group select,
.cipd-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.cipd-form-group input:focus,
.cipd-form-group select:focus,
.cipd-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cipd-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cipd-detailed-analytics h3 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.cipd-analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cipd-analytics-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.cipd-analytics-card h4 {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cipd-metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.cipd-metric-label {
    color: #64748b;
    font-size: 0.875rem;
}

.cipd-analytics-insights h4 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

.cipd-analytics-insights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cipd-analytics-insights li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.cipd-analytics-insights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

.cipd-analytics-insights li:last-child {
    border-bottom: none;
}

.cipd-analytics-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.cipd-submission-details h3 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.cipd-submission-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.cipd-meta-item {
    color: #64748b;
    font-size: 0.9rem;
}

.cipd-meta-item strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

.cipd-submission-content h4 {
    margin: 1.5rem 0 0.75rem 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.cipd-feedback-content {
    background: #f1f5f9;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #64748b;
}

.cipd-submission-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Notification Styles */
.cipd-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.cipd-notification.show {
    transform: translateX(0);
}

.cipd-notification-success {
    background: #16a34a;
}

.cipd-notification-error {
    background: #dc2626;
}

.cipd-notification-info {
    background: #3b82f6;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .cipd-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .cipd-analytics-summary {
        grid-template-columns: 1fr;
    }
    
    .cipd-form-actions {
        flex-direction: column;
    }
    
    .cipd-analytics-actions {
        flex-direction: column;
    }
    
    .cipd-submission-actions {
        flex-direction: column;
    }
}

/* =================================
   ENHANCED BUTTON STYLES & PERFORMANCE
   ================================= */

/* Enhanced Button Styles */
.cipd-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cipd-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.cipd-btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.cipd-btn-secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #374151;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cipd-btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cipd-btn-icon {
    font-size: 1rem;
}

/* Enhanced Empty State */
.cipd-empty-state-enhanced {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    margin: 2rem 0;
}

.cipd-empty-state-enhanced .cipd-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.cipd-empty-state-enhanced h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.cipd-empty-state-enhanced p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cipd-empty-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Session Management Layout */
.cipd-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.cipd-session-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cipd-session-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cipd-session-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

/* Performance Loading Overlay */
.cipd-page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cipd-page-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Mobile Enhancements */
@media (max-width: 768px) {
    .cipd-session-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cipd-empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cipd-btn-primary,
    .cipd-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cipd-submissions-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cipd-submission-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .cipd-submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cipd-submission-body {
        padding: 0;
    }
    
    .cipd-submission-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
}