/**
 * ThinkForge Modal System
 *
 * Slide-in modals for workshops, login, registration
 *
 * @package ThinkForge
 */

/* Slide-in Modal System */
.thinkforge-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thinkforge-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.thinkforge-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
   /* max-width: 600px; */
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 100000;
}

.thinkforge-modal.active {
    right: 0;
}

.thinkforge-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.thinkforge-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.thinkforge-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.thinkforge-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.thinkforge-modal-body {
    padding: 20px;
}

.thinkforge-modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
    position: sticky;
    bottom: 0;
}

.thinkforge-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    height: 100%;
}

/* Workshop Modal Content */
.thinkforge-workshop-preview {
    margin-bottom: 24px;
}

.thinkforge-workshop-preview h3 {
    margin: 0 0 12px 0;
    color: #1f2937;
}

.thinkforge-workshop-video {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.thinkforge-workshop-video iframe {
    width: 100%;
    height: 315px;
    border: none;
}

.thinkforge-workshop-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.thinkforge-workshop-meta-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.thinkforge-workshop-meta-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.thinkforge-workshop-meta-value {
    font-weight: 600;
    color: #1f2937;
}

.thinkforge-workshop-description {
    line-height: 1.6;
    color: #374151;
    margin-bottom: 24px;
}

.thinkforge-workshop-instructor {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.thinkforge-workshop-instructor h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
}

/* Pricing Display */
.thinkforge-pricing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.thinkforge-pricing-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.thinkforge-pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.thinkforge-pricing-note {
    font-size: 0.875rem;
    opacity: 0.9;
}

.thinkforge-pricing-member {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* CE Credits Display */
.thinkforge-ce-credits {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.thinkforge-ce-credits-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.thinkforge-ce-credits-label {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
}

.thinkforge-ce-credits-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #78350f;
}

/* Handouts Section */
.thinkforge-handouts {
    margin-bottom: 24px;
}

.thinkforge-handouts h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
}

.thinkforge-handout-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
}

.thinkforge-handout-item:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateX(4px);
}

.thinkforge-handout-icon {
    margin-right: 12px;
    font-size: 1.25rem;
}

.thinkforge-handout-name {
    flex: 1;
    font-weight: 500;
}

.thinkforge-handout-size {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Login/Register Modals */
.thinkforge-auth-modal {
    max-width: 400px;
    margin: 50px auto;
}

.thinkforge-auth-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.thinkforge-auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.thinkforge-auth-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.thinkforge-auth-tab:hover {
    color: #1f2937;
}

.thinkforge-auth-form {
    margin-bottom: 20px;
}

.thinkforge-auth-form .thinkforge-form-group {
    margin-bottom: 16px;
}

.thinkforge-auth-form .thinkforge-form-label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.thinkforge-auth-form .thinkforge-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.thinkforge-auth-form .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
}

.thinkforge-auth-links {
    text-align: center;
    margin-top: 16px;
}

.thinkforge-auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.thinkforge-auth-links a:hover {
    text-decoration: underline;
}

/* Loading States */
.thinkforge-loading {
    opacity: 0.6;
    pointer-events: none;
}

.thinkforge-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: thinkforge-spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .thinkforge-modal {
        width: 100%;
        max-width: none;
    }
    
    .thinkforge-workshop-video iframe {
        height: 200px;
    }
    
    .thinkforge-workshop-meta {
        grid-template-columns: 1fr;
    }
    
    .thinkforge-auth-modal {
        margin: 20px;
        padding: 0 10px;
    }
}

/* Grid Layout Enhancements */
.thinkforge-workshop-grid {
    display: grid;
    gap: 20px;
}

.thinkforge-workshop-grid-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.thinkforge-workshop-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thinkforge-workshop-grid-image {
    height: 160px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
}

.thinkforge-workshop-grid-content {
    padding: 16px;
}

.thinkforge-workshop-grid-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.thinkforge-workshop-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.thinkforge-workshop-grid-price {
    font-weight: 600;
    color: #059669;
}

.thinkforge-workshop-grid-duration {
    font-size: 0.875rem;
    color: #6b7280;
}

.thinkforge-workshop-grid-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thinkforge-workshop-grid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.thinkforge-workshop-grid-instructor {
    font-size: 0.875rem;
    color: #6b7280;
}

.thinkforge-workshop-grid-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
}

.thinkforge-workshop-grid-cta:hover {
    color: #2563eb;
}

/* Member Badge */
.thinkforge-member-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

/* All-in-One Portal Styles */
.thinkforge-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.thinkforge-portal-header {
    text-align: center;
    margin-bottom: 40px;
}

.thinkforge-portal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.thinkforge-portal-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

.thinkforge-portal-sections {
    display: grid;
    gap: 40px;
}

.thinkforge-portal-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.thinkforge-portal-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thinkforge-portal-section-icon {
    font-size: 1.5rem;
}

/* CE Credits Summary */
.thinkforge-ce-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.thinkforge-ce-summary-item {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.thinkforge-ce-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.thinkforge-ce-summary-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Quick Actions */
.thinkforge-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thinkforge-quick-action {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}

.thinkforge-quick-action:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}

.thinkforge-quick-action-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.thinkforge-quick-action-label {
    font-size: 0.875rem;
}

/* ===================================
   ENROLLMENT FORM STYLES
   =================================== */

.thinkforge-enrollment-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.thinkforge-enrollment-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.thinkforge-enrollment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.thinkforge-enrollment-header h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.thinkforge-workshop-meta {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0.95;
}

.thinkforge-difficulty,
.thinkforge-duration,
.thinkforge-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.thinkforge-enrollment-content {
    padding: 2rem;
}

.thinkforge-enrollment-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
}

.thinkforge-enrollment-benefits {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #10b981;
}

.thinkforge-enrollment-benefits h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.thinkforge-enrollment-benefits ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.thinkforge-enrollment-benefits li {
    margin-bottom: 0.5rem;
    position: relative;
}

.thinkforge-enrollment-benefits li::marker {
    color: #10b981;
}

.thinkforge-enrollment-actions {
    padding: 2rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.thinkforge-enroll-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.thinkforge-enroll-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.thinkforge-enroll-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.thinkforge-enrollment-loading {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.thinkforge-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.thinkforge-enrollment-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .thinkforge-enrollment-header {
        padding: 1.5rem;
    }

    .thinkforge-enrollment-header h2 {
        font-size: 1.5rem;
    }

    .thinkforge-workshop-meta {
        gap: 0.5rem;
    }

    .thinkforge-enrollment-content,
    .thinkforge-enrollment-actions {
        padding: 1.5rem;
    }

    .thinkforge-enroll-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}
}

/* =============================================
   VIDEO CONFIRMATION SYSTEM
   ============================================= */

/* Video Container */
.thinkforge-workshop-video {
    margin-bottom: 2rem;
}

.thinkforge-video-container {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.thinkforge-video-container iframe,
.thinkforge-video-container video {
    width: 100%;
    height: auto;
    min-height: 400px;
    border: none;
    display: block;
}

/* Video Progress Indicator */
.thinkforge-video-progress {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.video-progress-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.video-progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 9999px;
    transition: width 0.3s ease;
    width: 0%;
}

.video-time-remaining {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.video-time-remaining .time-remaining {
    font-weight: 600;
    color: #1f2937;
}

/* Video Confirmation Section */
.thinkforge-video-confirmation {
    margin-top: 1.5rem;
}

.video-confirmation-pending {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.confirmation-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.confirmation-notice i {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.confirmation-notice p {
    color: #92400e;
    font-weight: 500;
    margin: 0;
}

.video-confirmation-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.confirmation-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.confirmation-checkbox input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
}

.confirmation-checkbox input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.confirmation-checkbox label {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.confirm-video-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-video-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.confirm-video-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.video-watch-reminder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.video-watch-reminder i {
    font-size: 1rem;
}

.video-watch-reminder.completed {
    color: #059669;
}

.video-watch-reminder.completed i {
    color: #10b981;
}

.video-watch-reminder.warning {
    color: #d97706;
}

.video-watch-reminder.warning i {
    color: #f59e0b;
}

/* Video Confirmation Completed */
.video-confirmation-completed {
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.completion-success {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.completion-success i {
    color: #10b981;
    font-size: 1.5rem;
    margin-top: 0.125rem;
}

.completion-success h4 {
    color: #065f46;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.completion-success p {
    color: #047857;
    margin: 0;
}

/* Quiz Locked Notice */
.quiz-locked-notice {
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.locked-notice-content i {
    color: #ef4444;
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.locked-notice-content h4 {
    color: #991b1b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.locked-notice-content p {
    color: #7f1d1d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.video-status-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.video-status-link a:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Quiz Available Notice */
.quiz-success-notice {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-success-notice i {
    color: #10b981;
    font-size: 1.25rem;
}

.quiz-success-notice p {
    color: #065f46;
    font-weight: 500;
    margin: 0;
}

/* Messages */
.thinkforge-message {
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    font-weight: 500;
}

.thinkforge-message.success-message {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.thinkforge-message.error-message {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Loading Spinner */
.thinkforge-icon-spinner {
    animation: spin 1s linear infinite;
}

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

/* =============================================
   PREMIUM DASHBOARD STYLES
   ============================================= */

/* Premium Dashboard Container */
.thinkforge-premium-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
}

/* Dashboard Hero Section */
.thinkforge-dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    overflow: hidden;
}

.thinkforge-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.thinkforge-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.thinkforge-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    /* margin: 0 auto; */
}

.thinkforge-user-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.thinkforge-user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.thinkforge-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thinkforge-user-info h1.thinkforge-welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
}

.thinkforge-user-name {
    color: #fbbf24;
    font-weight: 700;
}

.thinkforge-welcome-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
    font-weight: 400;
}

/* Dashboard Navigation */
.thinkforge-dashboard-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.thinkforge-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 2rem;
}

.thinkforge-nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.thinkforge-nav-tab:hover {
    color: #3b82f6;
    background: #f3f4f6;
}

.thinkforge-nav-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #eff6ff;
}

.thinkforge-nav-badge {
    background: #3b82f6;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
}

.thinkforge-nav-tab:not(.active) .thinkforge-nav-badge {
    background: #9ca3af;
}

/* Dashboard Main Content */
.thinkforge-dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Premium Statistics Overview */
.thinkforge-stats-overview {
    margin-bottom: 3rem;
}

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

.thinkforge-stat-card.premium {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.thinkforge-stat-card.premium.highlight::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.thinkforge-stat-card.premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.thinkforge-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
}

.thinkforge-stat-card.highlight .thinkforge-stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.thinkforge-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.thinkforge-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Tab Content System */
.thinkforge-tab-content {
    margin-top: 2rem;
}

.thinkforge-tab-pane {
    display: none;
}

.thinkforge-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Overview Sections */
.thinkforge-overview-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

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

.thinkforge-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.thinkforge-view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thinkforge-view-all-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* Courses Grid */
.thinkforge-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Premium Course Cards */
.thinkforge-premium-course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.thinkforge-premium-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.thinkforge-course-card-header {
    position: relative;
}

.thinkforge-course-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.thinkforge-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thinkforge-premium-course-card:hover .thinkforge-course-thumbnail img {
    transform: scale(1.05);
}

.thinkforge-course-thumbnail.placeholder {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

.thinkforge-completed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.thinkforge-course-meta {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}

.thinkforge-difficulty,
.thinkforge-duration,
.thinkforge-ce-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.thinkforge-duration i,
.thinkforge-ce-badge i {
    margin-right: 0.35rem;
    font-size: 0.85rem;
    vertical-align: middle;
}

.thinkforge-course-card-body {
    padding: 1.5rem;
}

.thinkforge-course-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.thinkforge-course-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.thinkforge-course-title a:hover {
    color: #3b82f6;
}

.thinkforge-course-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

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

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

.thinkforge-progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.thinkforge-progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
}

.thinkforge-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.thinkforge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.thinkforge-course-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.thinkforge-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-completed { background: #d1fae5; color: #065f46; }
.status-in-progress { background: #dbeafe; color: #1e40af; }
.status-enrolled { background: #f3f4f6; color: #374151; }
.status-video-completed { background: #fef3c7; color: #92400e; }
.status-quiz-passed { background: #ede9fe; color: #5b21b6; }

.thinkforge-last-accessed {
    font-size: 0.75rem;
    color: #9ca3af;
}

.thinkforge-course-card-footer {
    padding: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

/* Certificates Showcase */
.thinkforge-certificates-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Premium Certificate Cards */
.thinkforge-premium-certificate-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.thinkforge-premium-certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.thinkforge-certificate-preview {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.thinkforge-certificate-icon {
    font-size: 3rem;
    color: white;
    z-index: 2;
}

.thinkforge-certificate-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: #dc2626;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.thinkforge-certificate-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.thinkforge-certificate-meta {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.thinkforge-certificate-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.thinkforge-certificate-detail i {
    color: #3b82f6;
    width: 1rem;
}

.thinkforge-certificate-duration,
.thinkforge-certificate-ce-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.thinkforge-certificate-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.thinkforge-certificate-verification {
    text-align: left;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.thinkforge-verification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.thinkforge-verification-link:hover {
    color: #2563eb;
}

/* Learning Achievements */
.thinkforge-achievements-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

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

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

.thinkforge-achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.thinkforge-achievement-card.gold {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.thinkforge-achievement-card.blue {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.thinkforge-achievement-card.green {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.thinkforge-achievement-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thinkforge-achievement-card.gold .thinkforge-achievement-icon { color: #f59e0b; }
.thinkforge-achievement-card.blue .thinkforge-achievement-icon { color: #3b82f6; }
.thinkforge-achievement-card.green .thinkforge-achievement-icon { color: #10b981; }

.thinkforge-achievement-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.thinkforge-achievement-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Comprehensive Sections */
.thinkforge-comprehensive-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.thinkforge-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Search and Filters */
.thinkforge-search-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.thinkforge-search-bar {
    display: flex;
    gap: 0.75rem;
}

.thinkforge-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

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

.thinkforge-search-btn {
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.thinkforge-search-btn:hover {
    background: #2563eb;
}

.thinkforge-filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thinkforge-filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thinkforge-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.thinkforge-filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.thinkforge-date-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.thinkforge-date-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.thinkforge-date-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Loading States */
.thinkforge-loading-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.thinkforge-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

/* Empty States */
.thinkforge-empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.thinkforge-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.thinkforge-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.thinkforge-empty-state p {
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Load More Button */
.thinkforge-load-more-container {
    text-align: center;
    padding: 2rem 0 0 0;
}

/* Button Styles */
.thinkforge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.35rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.thinkforge-btn-primary {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 15px 30px -20px rgba(79, 70, 229, 0.35);
}

.thinkforge-btn-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
    box-shadow: 0 20px 36px -22px rgba(67, 56, 202, 0.35);
    transform: translateY(-1px);
}

.thinkforge-btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.thinkforge-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.thinkforge-btn-outline {
    background: #ffffff;
    color: #4338ca;
    border-color: rgba(79, 70, 229, 0.38);
}

.thinkforge-btn-outline:hover {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #312e81;
    box-shadow: 0 12px 28px -20px rgba(79, 70, 229, 0.28);
}

.thinkforge-btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Student Dashboard Layout
   -------------------------------------------------------------------------- */

.thinkforge-dashboard-shell {
    position: relative;
    z-index: 0;
    isolation: isolate;
    background: #f8fafc;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.75rem);
}

.thinkforge-premium-dashboard {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 28px;
    box-shadow: 0 24px 48px -38px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.thinkforge-dashboard-hero {
    position: relative;
    margin: clamp(1.25rem, 4vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    box-shadow: 0 20px 40px -32px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    color: #0f172a;
}

.thinkforge-hero-background {
    display: none;
}

.thinkforge-hero-overlay {
    display: none;
}

.thinkforge-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

.thinkforge-user-profile {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.thinkforge-user-avatar {
    flex-shrink: 0;
}

.thinkforge-user-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 32px -20px rgba(15, 23, 42, 0.35);
}

.thinkforge-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #0f172a;
}

.thinkforge-welcome-title {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.thinkforge-user-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #475569;
}

.thinkforge-dashboard-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.thinkforge-stat-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 22px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 18px 36px -30px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thinkforge-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px -34px rgba(15, 23, 42, 0.22);
}

.thinkforge-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: #e0e7ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.thinkforge-stat-number {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
}

.thinkforge-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.thinkforge-dashboard-main {
    padding: 0 clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
}

.thinkforge-dashboard-grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.thinkforge-dashboard-section {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 26px;
    box-shadow: 0 24px 48px -38px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.thinkforge-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.92), #ffffff);
}

.thinkforge-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.thinkforge-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: #eef2ff;
    color: #4338ca;
    font-size: 1.2rem;
}

.thinkforge-section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.thinkforge-courses-grid {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.thinkforge-course-card {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 18px 36px -30px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.thinkforge-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -36px rgba(15, 23, 42, 0.24);
}

.thinkforge-course-image {
    position: relative;
    height: 180px;
    background: #e2e8f0;
}

.thinkforge-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thinkforge-course-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.thinkforge-completion-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 12px 24px -18px rgba(34, 197, 94, 0.4);
}

.thinkforge-course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.thinkforge-course-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.thinkforge-course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.thinkforge-course-title a:hover {
    color: #4338ca;
}

.thinkforge-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.thinkforge-difficulty-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.thinkforge-course-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thinkforge-course-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.thinkforge-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #e2e8f0;
    color: #475569;
}

.thinkforge-status-badge.status-enrolled {
    background: #eef2ff;
    color: #4338ca;
}

.thinkforge-status-badge.status-in_progress {
    background: #fef3c7;
    color: #b45309;
}

.thinkforge-status-badge.status-completed {
    background: #dcfce7;
    color: #15803d;
}

.thinkforge-status-badge.status-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.thinkforge-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 22px;
    padding: 2.5rem 1.5rem;
    background: rgba(248, 250, 252, 0.9);
    color: #64748b;
}

.thinkforge-empty-icon {
    font-size: 2rem;
}

.thinkforge-certificate-card {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 18px 36px -30px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: 20px;
    margin-right: 20px;
}

.thinkforge-certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -36px rgba(15, 23, 42, 0.24);
}

.thinkforge-certificate-preview {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: transparent;
    border-radius: 0;
    height: auto;
    margin: 0;
    padding: 15px;
}

.thinkforge-certificate-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: #fef3c7;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.thinkforge-certificate-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.thinkforge-certificate-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.thinkforge-certificate-date {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.thinkforge-certificate-verification {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.thinkforge-certificate-verification code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-weight: 600;
    color: #0f172a;
}

.thinkforge-certificate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.payment-form-container label, .payment-form-container legend {
    font-size: 16px;
    font-weight: 500;
  }
  .payment-form-container .gform_card_icon_container {
    display: flex;
    column-gap: 10px;
    font-size: 14px;
    margin-bottom: 5px;
  }

  .payment-form-container .gform_card_icon {
    background: #f7f7f7;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #cecdcd;
  }

  .payment-form-container span.ginput_card_expiration_container.ginput_card_field.gform-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ginput_card_security_code {
    max-width: 150px;
    margin-right: 100%;
}

.payment-form-container .gform-footer.gform_footer.top_label, .payment-form-container .ginput_card_security_code, .payment-form-container fieldset {
    margin-top: 10px;
}

.payment-form-container .ginput_container_creditcard {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

@media (min-width: 640px) {
    .thinkforge-user-profile {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .thinkforge-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .thinkforge-dashboard-shell {
        padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 5vw, 2rem);
    }

    .thinkforge-dashboard-hero {
        padding: clamp(1.5rem, 5vw, 2.25rem);
    }

    .thinkforge-dashboard-section {
        border-radius: 20px;
    }

    .thinkforge-courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .thinkforge-dashboard-shell {
        padding: 1.5rem 1rem;
    }

    .thinkforge-dashboard-hero {
        margin: 1rem;
        margin-bottom: 1.5rem;
    }

    .thinkforge-certificate-card,
    .thinkforge-course-card {
        border-radius: 18px;
    }
}

/* Icon placeholders - in production these would be proper icon fonts or SVGs */
.thinkforge-icon-info::before { content: "ℹ️"; }
.thinkforge-icon-check::before { content: "✅"; }
.thinkforge-icon-lock::before { content: "🔒"; }
.thinkforge-icon-unlock::before { content: "🔓"; }
.thinkforge-icon-warning::before { content: "⚠️"; }
.thinkforge-icon-clock::before { content: "⏰"; }
.thinkforge-icon-spinner::before { content: "🔄"; }

/* Additional Icons for Premium Dashboard */
.thinkforge-icon-dashboard::before { content: "📊"; }
.thinkforge-icon-book::before { content: "📚"; }
.thinkforge-icon-book-open::before { content: "📖"; }
.thinkforge-icon-certificate::before { content: "🎓"; }
.thinkforge-icon-trophy::before { content: "🏆"; }
.thinkforge-icon-award::before { content: "🏅"; }
.thinkforge-icon-star::before { content: "⭐"; }
.thinkforge-icon-chart-line::before { content: "📈"; }
.thinkforge-icon-graduation-cap::before { content: "🎓"; }
.thinkforge-icon-search::before { content: "🔍"; }
.thinkforge-icon-download::before { content: "⬇️"; }
.thinkforge-icon-eye::before { content: "👁️"; }
.thinkforge-icon-share::before { content: "📤"; }
.thinkforge-icon-calendar::before { content: "📅"; }
.thinkforge-icon-user::before { content: "👤"; }
.thinkforge-icon-hash::before { content: "#"; }
.thinkforge-icon-external-link::before { content: "🔗"; }
.thinkforge-icon-arrow-right::before { content: "→"; }
.thinkforge-icon-check-circle::before { content: "✅"; }

/* Responsive Design for Video Confirmation */
@media (max-width: 768px) {
    .thinkforge-video-container iframe,
    .thinkforge-video-container video {
        min-height: 250px;
    }

    .video-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .confirmation-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .confirmation-checkbox input[type="checkbox"] {
        margin-top: 0;
    }

    .completion-success {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .completion-success i {
        margin-top: 0;
    }

    .locked-notice-content i {
        font-size: 2rem;
    }

    .video-status-link a {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .thinkforge-video-progress,
    .video-confirmation-pending,
    .video-confirmation-completed,
    .quiz-locked-notice {
        padding: 1rem;
    }

    .video-confirmation-form {
        padding: 1rem;
    }

    .quiz-locked-notice {
        padding: 1.5rem;
    }

    .confirm-video-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}
