/**
 * PNMA Quest Event - Training Feedback CSS
 * Enhanced Mobile-First Design
 * Migrated from theme to plugin
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --tf-primary: #2563eb;
    --tf-primary-hover: #1d4ed8;
    --tf-primary-light: #dbeafe;
    --tf-primary-dark: #1e3a8a;
    --tf-success: #10b981;
    --tf-success-hover: #0ea06e;
    --tf-warning: #f59e0b;
    --tf-warning-hover: #d97706;
    --tf-error: #ef4444;
    --tf-error-hover: #dc2626;
    --tf-gray: #6b7280;
    --tf-gray-light: #f3f4f6;
    --tf-gray-lighter: #f9fafb;
    --tf-border: #e5e7eb;
    --tf-text-dark: #111827;
    --tf-text-light: #9ca3af;
    --tf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tf-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --tf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tf-radius: 8px;
    --tf-transition: all 0.2s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Container - Mobile First */
.tf-container-pro789 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Prompt', 'Noto Sans Thai', sans-serif;
    width: 100%;
    max-width: 900px;
    margin: 10px auto;
    background: white;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow);
    overflow: hidden;
    position: relative;
}

/* Header */
.tf-header-pro789 {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-hover) 100%);
    color: white;
    padding: 14px 15px;
    text-align: center;
    position: relative;
}

.tf-header-pro789 h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.4;
    color: #ffffff !important;
}

/* Response Counter */
.tf-response-counter-pro789 {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 15px;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 13px;
    display: inline-block;
}

.tf-response-counter-pro789 span {
    font-weight: 700;
    font-size: 16px;
    margin: 0 3px;
}

/* Form */
.tf-form-pro789 {
    padding: 14px 15px;
}

/* Questions Wrapper for Horizontal Scroll */
.tf-questions-wrapper-pro789 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

/* Evaluation Table */
.tf-evaluation-table-pro789 {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    border-radius: var(--tf-radius);
    overflow: hidden;
    box-shadow: var(--tf-shadow-sm);
}

.tf-evaluation-table-pro789 thead th {
    background: var(--tf-gray-light);
    padding: 8px 6px;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    color: var(--tf-text-dark);
    border: 1px solid var(--tf-border);
    position: sticky;
    top: 0;
    z-index: 2;
}

.tf-evaluation-table-pro789 thead th span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--tf-primary);
    margin-top: 4px;
}

.tf-question-col-pro789 {
    width: 50%;
    text-align: left !important;
    min-width: 250px;
}

.tf-rating-col-pro789 {
    width: 10%;
    min-width: 60px;
}

.tf-evaluation-table-pro789 tbody td {
    padding: 8px 6px;
    border: 1px solid var(--tf-border);
    background: white;
    transition: var(--tf-transition);
    vertical-align: middle;
}

.tf-evaluation-table-pro789 tbody tr:hover td {
    background: var(--tf-gray-lighter);
}

/* Validation Error Styling */
.tf-validation-error td {
    background: #fee2e2 !important;
    border-color: var(--tf-error) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.tf-question-text-pro789 {
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    padding-right: 6px;
}

.tf-question-number-pro789 {
    font-weight: 700;
    color: var(--tf-primary);
    margin-right: 8px;
    font-size: 15px;
}

.tf-rating-cell-pro789 {
    text-align: center;
    vertical-align: middle;
}

/* Radio Button Styling - Enhanced for Mobile */
.tf-radio-label-pro789 {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    min-height: 36px;
    position: relative;
}

.tf-radio-input-pro789 {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tf-radio-custom-pro789 {
    width: 24px;
    height: 24px;
    border: 2px solid var(--tf-border);
    border-radius: 50%;
    position: relative;
    transition: var(--tf-transition);
    background: white;
    flex-shrink: 0;
}

.tf-radio-label-pro789:hover .tf-radio-custom-pro789,
.tf-radio-label-pro789:focus .tf-radio-custom-pro789 {
    border-color: var(--tf-primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.tf-radio-input-pro789:checked + .tf-radio-custom-pro789 {
    border-color: var(--tf-primary);
    background: var(--tf-primary);
    animation: radioSelect 0.3s ease;
}

@keyframes radioSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.tf-radio-input-pro789:checked + .tf-radio-custom-pro789::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
}

/* Open-ended Questions */
.tf-open-questions-pro789 {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 2px solid var(--tf-border);
}

.tf-open-question-pro789 {
    margin-bottom: 12px;
}

.tf-open-label-pro789 {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
    color: var(--tf-text-dark);
    line-height: 1.5;
}

.tf-textarea-pro789 {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--tf-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 50px;
    max-height: 120px;
    transition: var(--tf-transition);
    background: white;
}

.tf-textarea-pro789:focus {
    outline: none;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tf-textarea-pro789::placeholder {
    color: var(--tf-text-light);
    font-style: italic;
}

/* Footer Message */
.tf-footer-message-pro789 {
    text-align: center;
    padding: 12px 16px;
    background: var(--tf-gray-light);
    border-radius: 6px;
    margin: 14px 0;
    font-weight: 500;
    color: var(--tf-gray);
    font-size: 13px;
    line-height: 1.4;
}

/* Actions - Mobile First */
.tf-actions-pro789 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.tf-btn-submit-pro789,
.tf-btn-stats-pro789,
.tf-btn-dashboard-pro789,
.tf-btn-new-pro789 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--tf-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tf-transition);
    box-shadow: var(--tf-shadow-sm);
    min-height: 38px;
    width: 100%;
}

.tf-btn-submit-pro789:hover,
.tf-btn-stats-pro789:hover {
    background: var(--tf-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-md);
}

.tf-btn-dashboard-pro789 {
    background: var(--tf-warning);
}

.tf-btn-dashboard-pro789:hover {
    background: var(--tf-warning-hover);
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-md);
}

.tf-btn-submit-pro789:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success Message */
.tf-success-message-pro789 {
    padding: 40px 20px;
    text-align: center;
}

.tf-success-icon-pro789 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--tf-success) 0%, #0ea06e 100%);
    color: white;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tf-success-icon-pro789 .dashicons {
    font-size: 35px;
    width: 35px;
    height: 35px;
}

.tf-success-message-pro789 h3 {
    color: var(--tf-primary);
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.tf-success-message-pro789 p {
    color: var(--tf-gray);
    font-size: 15px;
    line-height: 1.5;
}

.tf-btn-new-pro789 {
    margin-top: 16px;
    background: var(--tf-primary);
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.tf-btn-new-pro789:hover {
    background: var(--tf-primary-hover);
    transform: translateY(-1px);
}

/* Modals - Mobile Optimized */
.tf-stats-modal-pro789,
.tf-dashboard-modal-pro789 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.2s ease;
    padding: 10px;
    overflow-y: auto;
}

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

.tf-modal-content-pro789,
.tf-dashboard-content-pro789 {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 15px 12px;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--tf-shadow-lg);
    animation: modalSlideIn 0.3s ease;
    margin: auto;
}

.tf-dashboard-content-pro789 {
    max-width: 1100px;
}

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

.tf-modal-close-pro789,
.tf-dashboard-close-pro789 {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: var(--tf-gray);
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--tf-transition);
    background: white;
    box-shadow: var(--tf-shadow-sm);
}

.tf-modal-close-pro789:hover,
.tf-dashboard-close-pro789:hover {
    background: var(--tf-gray-light);
    color: var(--tf-error);
    transform: scale(1.1);
}

/* Statistics Grid - Mobile First */
.tf-stats-grid-pro789 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.tf-stat-card-enhanced-pro789 {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-hover) 100%);
    color: white;
    padding: 12px 10px;
    border-radius: 10px;
    box-shadow: var(--tf-shadow-md);
    transition: var(--tf-transition);
    text-align: center;
}

.tf-stat-card-enhanced-pro789:hover {
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-lg);
}

.tf-stat-icon-pro789 {
    font-size: 22px;
    margin-bottom: 6px;
    opacity: 0.95;
}

.tf-stat-value-pro789 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.tf-stat-label-pro789 {
    font-size: 11px;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.3;
}

.tf-stat-trend-pro789 {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 11px;
    margin-top: 6px;
    font-weight: 600;
}

/* Charts Container - Fixed for Mobile */
.tf-charts-container-pro789 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 15px 0;
}

.tf-chart-box-pro789 {
    background: white;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 10px;
    box-shadow: var(--tf-shadow-sm);
    overflow: hidden;
}

.tf-chart-title-pro789 {
    font-size: 15px;
    font-weight: 600;
    color: var(--tf-primary);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

/* Chart Wrapper - CRITICAL FIX for chart stretching */
.tf-chart-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    min-height: 150px;
    max-height: 220px;
}

.tf-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
}

/* Timeline */
.tf-timeline-pro789 {
    margin: 12px 0;
    padding: 10px;
    background: var(--tf-gray-light);
    border-radius: var(--tf-radius);
}

.tf-timeline-title-pro789 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Mobile Cards Layout */
.tf-mobile-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.tf-mobile-card {
    background: white;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    overflow: hidden;
    box-shadow: var(--tf-shadow-sm);
}

.tf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--tf-gray-light);
    border-bottom: 1px solid var(--tf-border);
}

.tf-card-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-text-dark);
    flex: 1;
    line-height: 1.3;
}

.tf-card-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--tf-primary);
    margin-left: 10px;
}

.tf-card-body {
    padding: 12px 15px;
}

.tf-progress-bar {
    position: relative;
    background: var(--tf-gray-light);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tf-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--tf-primary-light) 0%, var(--tf-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    transition: width 0.5s ease;
    min-width: 40px;
}

.tf-card-count {
    font-size: 12px;
    color: var(--tf-gray);
    font-weight: 500;
}

/* Table Section */
.tf-table-section {
    margin: 12px 0;
}

.tf-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.tf-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-sm);
}

/* Distribution Table */
.tf-distribution-table-pro789 {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    border-radius: var(--tf-radius);
    overflow: hidden;
}

.tf-distribution-table-pro789 th {
    background: var(--tf-primary);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.tf-distribution-table-pro789 td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--tf-border);
    font-size: 13px;
    vertical-align: middle;
}

.tf-distribution-table-pro789 tbody tr:hover {
    background: var(--tf-gray-lighter);
}

.tf-distribution-table-pro789 tbody tr:last-child td {
    border-bottom: none;
}

.tf-distribution-table-pro789 code {
    background: var(--tf-gray-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--tf-gray);
}

/* Distribution Bar */
.tf-dist-bar-wrapper-pro789 {
    position: relative;
    background: var(--tf-gray-light);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 200px;
}

.tf-dist-bar-fill-pro789 {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--tf-primary-light) 0%, var(--tf-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    transition: width 0.5s ease;
    min-width: 30px;
}

/* Insights Section */
.tf-insights-pro789 {
    background: var(--tf-gray-light);
    padding: 12px 10px;
    border-radius: 10px;
    margin: 12px 0;
}

.tf-insights-title-pro789 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-insight-item-pro789 {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    box-shadow: var(--tf-shadow-sm);
    transition: var(--tf-transition);
}

.tf-insight-item-pro789:hover {
    transform: translateX(3px);
}

.tf-insight-icon-pro789 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.tf-insight-icon-pro789.positive {
    background: #d1fae5;
    color: var(--tf-success);
}

.tf-insight-icon-pro789.warning {
    background: #fed7aa;
    color: var(--tf-warning);
}

.tf-insight-icon-pro789.negative {
    background: #fee2e2;
    color: var(--tf-error);
}

.tf-insight-text-pro789 {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

.tf-insight-text-pro789 strong {
    color: var(--tf-primary);
}

/* Text Responses Section */
.tf-text-responses-section {
    margin: 12px 0;
    padding-top: 12px;
    border-top: 2px solid var(--tf-border);
}

.tf-response-card {
    background: var(--tf-gray-light);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid var(--tf-primary);
}

.tf-response-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    font-size: 12px;
    color: var(--tf-gray);
    margin-bottom: 10px;
    font-weight: 500;
}

.tf-response-number {
    color: var(--tf-primary);
    font-weight: 600;
}

.tf-response-score {
    color: var(--tf-primary);
    font-weight: 600;
}

.tf-response-content {
    margin-bottom: 8px;
}

.tf-response-content strong {
    color: var(--tf-primary);
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.tf-response-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--tf-text-dark);
}

.tf-response-empty {
    color: var(--tf-text-light);
    font-style: italic;
    font-size: 12px;
}

.tf-responses-note {
    text-align: center;
    color: var(--tf-gray);
    margin-top: 15px;
    font-size: 12px;
}

/* Dashboard Styles */
.tf-dashboard-header-pro789 {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--tf-border);
}

.tf-dashboard-header-pro789 h2 {
    margin: 0 0 8px 0;
    color: var(--tf-primary);
    font-size: 20px;
    line-height: 1.3;
}

.tf-dashboard-header-pro789 p {
    color: var(--tf-gray);
    margin: 0;
    font-size: 12px;
}

/* Dashboard Filter */
.tf-dashboard-filter-pro789 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: var(--tf-gray-light);
    border-radius: var(--tf-radius);
    border: 1px solid var(--tf-border);
}

.tf-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-filter-row label {
    font-size: 13px;
    font-weight: 500;
    color: var(--tf-text-dark);
    white-space: nowrap;
}

.tf-filter-row select {
    padding: 8px 12px;
    border: 1px solid var(--tf-border);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    min-width: 100px;
    transition: var(--tf-transition);
}

.tf-filter-row select:focus {
    outline: none;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tf-filter-row select:hover {
    border-color: var(--tf-primary);
}

@media (max-width: 480px) {
    .tf-dashboard-filter-pro789 {
        flex-direction: column;
        gap: 10px;
    }

    .tf-filter-row {
        width: 100%;
        justify-content: space-between;
    }

    .tf-filter-row select {
        flex: 1;
        min-width: 0;
    }
}

.tf-dashboard-stats-pro789 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.tf-dashboard-card-pro789 {
    background: white;
    border: 2px solid var(--tf-border);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--tf-transition);
    box-shadow: var(--tf-shadow-sm);
}

.tf-dashboard-card-pro789:hover {
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-md);
    border-color: var(--tf-primary);
}

.tf-dashboard-card-icon-pro789 {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: var(--tf-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--tf-primary);
}

.tf-dashboard-card-value-pro789 {
    font-size: 28px;
    font-weight: 700;
    color: var(--tf-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.tf-dashboard-card-label-pro789 {
    color: var(--tf-gray);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* Dashboard Forms Mobile Layout */
.tf-dashboard-forms-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tf-dashboard-form-card {
    background: white;
    border: 1px solid var(--tf-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--tf-shadow-sm);
}

.tf-form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--tf-gray-light);
    border-bottom: 1px solid var(--tf-border);
}

.tf-form-id {
    font-size: 12px;
    color: var(--tf-gray);
    font-weight: 600;
}

.tf-form-score {
    font-size: 18px;
    font-weight: 700;
}

.tf-form-card-body {
    padding: 12px 15px;
    display: grid;
    gap: 8px;
}

.tf-form-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tf-stat-label {
    font-size: 12px;
    color: var(--tf-gray);
    font-weight: 500;
}

.tf-stat-value {
    font-size: 12px;
    color: var(--tf-text-dark);
    font-weight: 600;
}

.tf-stat-badge {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.tf-dashboard-summary {
    margin-top: 20px;
    padding: 15px;
    background: var(--tf-gray-light);
    border-radius: 8px;
}

.tf-dashboard-summary p {
    margin: 0;
    color: var(--tf-gray);
    font-size: 13px;
    line-height: 1.4;
}

/* Export Options */
.tf-export-options-pro789 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 2px solid var(--tf-border);
}

.tf-export-btn-pro789 {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--tf-transition);
    box-shadow: var(--tf-shadow-sm);
    min-height: 36px;
}

.tf-export-csv-pro789 {
    background: var(--tf-success);
    color: white;
}

.tf-export-csv-pro789:hover {
    background: var(--tf-success-hover);
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-md);
}

.tf-export-print-pro789 {
    background: var(--tf-gray);
    color: white;
}

.tf-export-print-pro789:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-md);
}

.tf-export-btn-pro789:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Year Filter */
.tf-year-filter-pro789 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 12px;
    background: var(--tf-gray-light);
    border-radius: var(--tf-radius);
    flex-wrap: wrap;
}

.tf-year-filter-pro789 .tf-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-year-filter-pro789 label {
    font-size: 13px;
    font-weight: 500;
    color: var(--tf-text-dark);
    white-space: nowrap;
}

.tf-year-filter-pro789 select {
    padding: 6px 12px;
    border: 1px solid var(--tf-border);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    min-width: 100px;
}

.tf-year-filter-pro789 select:focus {
    outline: none;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tf-filter-info {
    font-size: 12px;
    color: var(--tf-gray);
}

/* Loading States */
.tf-loading-pro789 {
    text-align: center;
    padding: 40px 20px;
}

.tf-spinner-pro789 {
    border: 3px solid var(--tf-gray-light);
    border-top: 3px solid var(--tf-primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Error States */
.tf-error-state {
    text-align: center;
    padding: 40px 20px;
}

.tf-error-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.tf-error-state p {
    color: var(--tf-gray);
    margin-bottom: 16px;
    font-size: 14px;
}

.tf-btn-close-error {
    background: var(--tf-gray);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--tf-transition);
}

.tf-btn-close-error:hover {
    background: #4b5563;
}

.tf-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--tf-gray);
    font-size: 14px;
}

/* Toast Notifications - Enhanced */
.tf-toast-pro789 {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: var(--tf-shadow-lg);
    backdrop-filter: blur(10px);
}

.tf-toast-pro789.show {
    opacity: 1;
    transform: translateY(0);
}

.tf-toast-success-pro789 {
    background: linear-gradient(135deg, var(--tf-success) 0%, var(--tf-success-hover) 100%);
}

.tf-toast-error-pro789 {
    background: linear-gradient(135deg, var(--tf-error) 0%, var(--tf-error-hover) 100%);
}

.tf-toast-message {
    font-size: 14px;
    line-height: 1.4;
}

/* Custom Scrollbar */
.tf-modal-content-pro789::-webkit-scrollbar,
.tf-dashboard-content-pro789::-webkit-scrollbar,
.tf-questions-wrapper-pro789::-webkit-scrollbar,
.tf-table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.tf-modal-content-pro789::-webkit-scrollbar-track,
.tf-dashboard-content-pro789::-webkit-scrollbar-track,
.tf-questions-wrapper-pro789::-webkit-scrollbar-track,
.tf-table-wrapper::-webkit-scrollbar-track {
    background: var(--tf-gray-light);
    border-radius: 3px;
}

.tf-modal-content-pro789::-webkit-scrollbar-thumb,
.tf-dashboard-content-pro789::-webkit-scrollbar-thumb,
.tf-questions-wrapper-pro789::-webkit-scrollbar-thumb,
.tf-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--tf-primary);
    border-radius: 3px;
}

.tf-modal-content-pro789::-webkit-scrollbar-thumb:hover,
.tf-dashboard-content-pro789::-webkit-scrollbar-thumb:hover,
.tf-questions-wrapper-pro789::-webkit-scrollbar-thumb:hover,
.tf-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--tf-primary-hover);
}

/* Tablet Styles */
@media (min-width: 576px) {
    .tf-container-pro789 {
        margin: 20px auto;
    }

    .tf-header-pro789 {
        padding: 25px 20px;
    }

    .tf-header-pro789 h2 {
        font-size: 15px;
    }

    .tf-form-pro789 {
        padding: 25px 20px;
    }

    .tf-actions-pro789 {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tf-btn-submit-pro789,
    .tf-btn-stats-pro789,
    .tf-btn-dashboard-pro789,
    .tf-btn-new-pro789 {
        width: auto;
        min-width: 150px;
    }

    .tf-stats-grid-pro789 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tf-dashboard-stats-pro789 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tf-export-options-pro789 {
        flex-direction: row;
        justify-content: center;
    }

    .tf-export-btn-pro789 {
        width: auto;
        min-width: 150px;
    }

    .tf-toast-pro789 {
        left: auto;
        right: 20px;
        max-width: 400px;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .tf-container-pro789 {
        margin: 30px auto;
    }

    .tf-header-pro789 {
        padding: 25px 30px;
    }

    .tf-header-pro789 h2 {
        font-size: 16px;
    }

    .tf-form-pro789 {
        padding: 30px;
    }

    .tf-questions-wrapper-pro789 {
        overflow-x: visible;
    }

    .tf-evaluation-table-pro789 {
        min-width: auto;
    }

    .tf-evaluation-table-pro789 thead th {
        padding: 15px 10px;
        font-size: 14px;
    }

    .tf-evaluation-table-pro789 tbody td {
        padding: 15px 10px;
    }

    .tf-question-text-pro789 {
        font-size: 15px;
    }

    .tf-stats-grid-pro789 {
        grid-template-columns: repeat(4, 1fr);
    }

    .tf-charts-container-pro789 {
        grid-template-columns: 1fr 1fr;
    }

    .tf-chart-wrapper {
        height: 200px;
    }

    .tf-dashboard-stats-pro789 {
        grid-template-columns: repeat(4, 1fr);
    }

    .tf-modal-content-pro789,
    .tf-dashboard-content-pro789 {
        padding: 30px;
        margin: 20px auto;
    }

    .tf-modals-stats-modal-pro789,
    .tf-dashboard-modal-pro789 {
        align-items: center;
        padding: 20px;
    }

    .tf-toast-pro789 {
        bottom: 30px;
        right: 30px;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .tf-stats-grid-pro789 {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .tf-dashboard-stats-pro789 {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .tf-chart-wrapper {
        height: 220px;
    }
}

/* Print Styles */
@media print {
    .tf-container-pro789 {
        max-width: 100%;
        box-shadow: none;
        margin: 0;
    }

    .tf-modal-close-pro789,
    .tf-dashboard-close-pro789,
    .tf-export-options-pro789,
    .tf-actions-pro789,
    .tf-btn-stats-pro789,
    .tf-btn-dashboard-pro789,
    .tf-btn-new-pro789 {
        display: none !important;
    }

    .tf-stats-modal-pro789,
    .tf-dashboard-modal-pro789 {
        position: static !important;
        background: none !important;
        padding: 0 !important;
        display: block !important;
    }

    .tf-modal-content-pro789,
    .tf-dashboard-content-pro789 {
        height: auto !important;
        max-height: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .tf-distribution-table-pro789,
    .tf-insight-item-pro789,
    .tf-response-card {
        page-break-inside: avoid;
    }

    .tf-charts-container-pro789 {
        page-break-before: auto;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .tf-container-pro789 {
        border: 2px solid var(--tf-text-dark);
    }

    .tf-radio-custom-pro789 {
        border-width: 3px;
    }

    .tf-btn-submit-pro789,
    .tf-btn-stats-pro789,
    .tf-btn-dashboard-pro789,
    .tf-export-btn-pro789 {
        border: 2px solid currentColor;
    }
}

/* Focus Styles for Accessibility */
.tf-radio-input-pro789:focus + .tf-radio-custom-pro789,
.tf-textarea-pro789:focus,
.tf-btn-submit-pro789:focus,
.tf-btn-stats-pro789:focus,
.tf-btn-dashboard-pro789:focus,
.tf-export-btn-pro789:focus {
    outline: 2px solid var(--tf-primary);
    outline-offset: 2px;
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}
