/* Event Detail Admin 2026 */
/* Premium admin styles - extends EventDetailPublic2026.css */

/* Admin Warning Banner */
.ed-admin-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: var(--ed-radius);
    margin-bottom: 1.5rem;
    color: #92400e;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.ed-admin-warning svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: #f59e0b;
}

/* Admin Toolbar */
.ed-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--ed-bg) 0%, var(--ed-bg-light) 100%);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--ed-shadow);
}

.ed-admin-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ed-admin-toolbar-divider {
    width: 1px;
    height: 2rem;
    background: linear-gradient(180deg, transparent 0%, var(--ed-border) 50%, transparent 100%);
}

.ed-admin-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--ed-bg-subtle);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ed-text-light);
}

.ed-admin-stat svg {
    width: 1rem;
    height: 1rem;
    color: var(--ed-text-muted);
}

/* Admin Button */
.ed-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ed-text);
    text-decoration: none;
    transition: all var(--ed-transition);
    cursor: pointer;
    box-shadow: var(--ed-shadow-sm);
}

.ed-admin-btn:hover {
    background: var(--ed-bg-light);
    border-color: var(--ed-text-muted);
    text-decoration: none;
    color: var(--ed-text);
    transform: translateY(-1px);
    box-shadow: var(--ed-shadow);
}

.ed-admin-btn svg {
    width: 1rem;
    height: 1rem;
}

.ed-admin-btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

.ed-admin-btn-sm svg {
    width: 0.875rem;
    height: 0.875rem;
}

.ed-admin-btn-danger {
    color: #dc2626;
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.ed-admin-btn-danger:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.ed-admin-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-secondary) 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(186, 0, 0, 0.25);
}

.ed-admin-btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(186, 0, 0, 0.35);
    transform: translateY(-2px);
}

.ed-admin-btn-secondary {
    color: #0284c7;
    border-color: #bae6fd;
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.ed-admin-btn-secondary:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* Copy Link */
.ed-copy-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.ed-copy-link-input {
    padding: 0.625rem 0.875rem;
    background: var(--ed-bg-subtle);
    border: 1px solid var(--ed-border);
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-family: ui-monospace, monospace;
    color: var(--ed-text-light);
    width: 220px;
    max-width: 100%;
    cursor: pointer;
    transition: all var(--ed-transition);
}

.ed-copy-link-input:hover {
    border-color: var(--ed-primary);
    background: var(--ed-bg);
}

.ed-copy-link-input:focus {
    outline: none;
    border-color: var(--ed-primary);
    box-shadow: 0 0 0 3px var(--ed-primary-light);
}

.ed-copy-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 0.625rem;
    color: var(--ed-text-light);
    cursor: pointer;
    transition: all var(--ed-transition);
    box-shadow: var(--ed-shadow-sm);
}

.ed-copy-link-btn:hover {
    background: var(--ed-primary);
    border-color: var(--ed-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(186, 0, 0, 0.25);
    transform: translateY(-1px);
}

.ed-copy-link-btn svg {
    width: 1rem;
    height: 1rem;
}

.ed-copy-link-toast {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.625rem 1rem;
    background: var(--ed-bg-dark);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    white-space: nowrap;
    box-shadow: var(--ed-shadow-xl);
    z-index: 10;
}

.ed-copy-link-toast::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ed-bg-dark);
}

/* Admin Section */
.ed-admin-section {
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg);
    overflow: hidden;
    box-shadow: var(--ed-shadow);
    transition: box-shadow var(--ed-transition);
}

.ed-admin-section:hover {
    box-shadow: var(--ed-shadow-lg);
}

.ed-admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(90deg, var(--ed-bg-light) 0%, var(--ed-bg) 100%);
    border-bottom: 1px solid var(--ed-border);
}

.ed-admin-section-title-group {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.ed-admin-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    color: #ffffff;
    flex-shrink: 0;
}

.ed-admin-section-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.ed-admin-section-icon-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3); }
.ed-admin-section-icon-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.ed-admin-section-icon-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3); }
.ed-admin-section-icon-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3); }
.ed-admin-section-icon-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3); }

.ed-admin-section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ed-text);
    margin: 0;
}

.ed-admin-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--ed-primary-light);
    color: var(--ed-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.ed-admin-section-body {
    padding: 1.75rem;
}

.ed-admin-section-note {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    color: var(--ed-text-light);
    margin-bottom: 1.25rem;
    border: 1px solid var(--ed-border-light);
}

.ed-admin-section-note svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--ed-text-muted);
}

/* Admin Table */
.ed-admin-table-wrap {
    overflow-x: auto;
    margin: -0.5rem;
    padding: 0.5rem;
    border-radius: var(--ed-radius);
}

.ed-admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.ed-admin-table th {
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg-subtle) 100%);
    border-bottom: 2px solid var(--ed-border);
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ed-text-light);
    white-space: nowrap;
}

.ed-admin-table th:first-child {
    border-radius: var(--ed-radius) 0 0 0;
}

.ed-admin-table th:last-child {
    border-radius: 0 var(--ed-radius) 0 0;
}

.ed-admin-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--ed-border-light);
    color: var(--ed-text);
    vertical-align: middle;
}

.ed-admin-table tbody tr {
    transition: background var(--ed-transition);
}

.ed-admin-table tbody tr:hover {
    background: var(--ed-bg-light);
}

.ed-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.ed-admin-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--ed-text-muted);
    border-radius: 0.5rem;
    transition: all var(--ed-transition);
}

.ed-admin-table-action:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

.ed-admin-table-action svg {
    width: 1rem;
    height: 1rem;
}

/* Team Members */
.ed-team-form {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.ed-team-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    transition: all var(--ed-transition);
}

.ed-team-input:focus {
    outline: none;
    border-color: var(--ed-primary);
    box-shadow: 0 0 0 4px var(--ed-primary-light);
}

.ed-team-input::placeholder {
    color: var(--ed-text-muted);
}

.ed-team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.ed-team-member {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem;
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--ed-shadow-sm);
}

.ed-team-member-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    color: var(--ed-text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--ed-transition);
}

.ed-team-member-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.ed-team-member-remove svg {
    width: 0.875rem;
    height: 0.875rem;
}

.ed-team-share-link {
    margin-bottom: 1.5rem;
}

.ed-team-share-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ed-text-light);
    margin-bottom: 0.5rem;
}

.ed-team-members-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ed-text);
    margin: 1.75rem 0 1rem 0;
}

/* Feedback Items */
.ed-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ed-feedback-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg) 100%);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    transition: all var(--ed-transition);
}

.ed-feedback-item:hover {
    box-shadow: var(--ed-shadow);
    border-color: transparent;
}

.ed-feedback-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ed-border-light);
}

.ed-feedback-item-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ed-text-muted);
}

.ed-feedback-item-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all var(--ed-transition);
}

.ed-feedback-item-remove:hover {
    background: #fee2e2;
    border-color: #fecaca;
}

.ed-feedback-item-remove svg {
    width: 0.875rem;
    height: 0.875rem;
}

.ed-feedback-response {
    margin-top: 0.75rem;
    padding: 0.875rem;
    background: var(--ed-bg);
    border-radius: 0.5rem;
    border: 1px solid var(--ed-border-light);
}

.ed-feedback-response-label {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--ed-text);
    margin-bottom: 0.375rem;
}

.ed-feedback-response-text {
    font-size: 0.9375rem;
    color: var(--ed-text-light);
    line-height: 1.6;
}

.ed-feedback-form-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.ed-feedback-qr {
    text-align: center;
}

.ed-feedback-qr img {
    border-radius: 0.625rem;
    box-shadow: var(--ed-shadow);
}

.ed-feedback-qr-label {
    font-size: 0.75rem;
    color: var(--ed-text-muted);
    margin-top: 0.625rem;
    font-weight: 500;
}

.ed-feedback-description {
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--ed-bg-subtle);
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    color: var(--ed-text-light);
    line-height: 1.6;
}

/* Feedback View Toggle */
.ed-feedback-view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem;
    background: var(--ed-bg-subtle);
    border-radius: 0.625rem;
    width: fit-content;
}

.ed-feedback-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ed-text-muted);
    cursor: pointer;
    transition: all var(--ed-transition);
}

.ed-feedback-view-btn:hover {
    color: var(--ed-text);
}

.ed-feedback-view-btn.active {
    background: var(--ed-bg);
    color: var(--ed-primary);
    box-shadow: var(--ed-shadow-sm);
}

.ed-feedback-view-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Feedback By Question View */
.ed-feedback-question-group {
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.ed-feedback-question-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--ed-bg-subtle) 0%, var(--ed-bg) 100%);
    border-bottom: 1px solid var(--ed-border);
}

.ed-feedback-question-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--ed-primary);
    flex-shrink: 0;
}

.ed-feedback-question-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ed-text);
    flex: 1;
}

.ed-feedback-question-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ed-text-muted);
    background: var(--ed-bg-subtle);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.ed-feedback-answers-list {
    padding: 0.5rem;
}

.ed-feedback-answer-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.875rem 1rem;
    background: var(--ed-bg-subtle);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.ed-feedback-answer-item:last-child {
    margin-bottom: 0;
}

.ed-feedback-answer-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ed-text-muted);
}

.ed-feedback-answer-text {
    font-size: 0.9375rem;
    color: var(--ed-text);
    line-height: 1.5;
}

/* Feedback Analytics View */
.ed-feedback-analytics-list {
    padding: 0.75rem;
}

.ed-feedback-analytics-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--ed-bg);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.ed-feedback-analytics-item:last-child {
    margin-bottom: 0;
}

.ed-feedback-analytics-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-left: 3px solid var(--ed-primary);
    transition: width 0.3s ease;
}

.ed-feedback-analytics-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.ed-feedback-analytics-text {
    font-size: 0.9375rem;
    color: var(--ed-text);
    line-height: 1.4;
    flex: 1;
}

.ed-feedback-analytics-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ed-primary);
    white-space: nowrap;
}

.ed-feedback-analytics-percent {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ed-text-muted);
}

/* Autoemails */
.ed-autoemail-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ed-autoemail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg) 100%);
    border: 1px solid var(--ed-border);
    border-radius: 0.625rem;
    transition: all var(--ed-transition);
}

.ed-autoemail-item:hover {
    border-color: transparent;
    box-shadow: var(--ed-shadow);
}

.ed-autoemail-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ed-text);
}

.ed-autoemail-stopped {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 0.625rem;
    color: #dc2626;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.ed-autoemail-stopped svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Stats Grid */
.ed-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.ed-stat-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg) 100%);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    text-align: center;
    transition: all var(--ed-transition);
}

.ed-stat-item:hover {
    box-shadow: var(--ed-shadow);
    border-color: transparent;
    transform: translateY(-2px);
}

.ed-stat-item-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ed-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ed-stat-item-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ed-text);
    margin-top: 0.375rem;
    font-variant-numeric: tabular-nums;
}

/* Note Form */
.ed-note-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ed-note-textarea {
    width: 100%;
    min-height: 6rem;
    padding: 0.875rem;
    border: 1px solid var(--ed-border);
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    resize: vertical;
    transition: all var(--ed-transition);
}

.ed-note-textarea:focus {
    outline: none;
    border-color: var(--ed-primary);
    box-shadow: 0 0 0 4px var(--ed-primary-light);
}

.ed-note-text {
    margin-left: 0.625rem;
    color: var(--ed-text-light);
    font-size: 0.875rem;
}

.ed-old-registrations-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ed-text);
    margin: 1.75rem 0 1rem 0;
}

/* QR Modal */
.ed-qr-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.ed-qr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.ed-qr-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem;
    background: var(--ed-bg);
    border-radius: var(--ed-radius-xl);
    box-shadow: var(--ed-shadow-xl);
    text-align: center;
    animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ed-qr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--ed-bg-light);
    border: 1px solid var(--ed-border);
    border-radius: 0.5rem;
    color: var(--ed-text-light);
    cursor: pointer;
    transition: all var(--ed-transition);
}

.ed-qr-modal-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.ed-qr-modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.ed-qr-modal-content img {
    border-radius: var(--ed-radius);
    box-shadow: var(--ed-shadow-lg);
}

.ed-qr-modal-download {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-secondary) 100%);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--ed-transition);
    box-shadow: 0 4px 15px rgba(186, 0, 0, 0.3);
}

.ed-qr-modal-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 0, 0, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.ed-qr-modal-download svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Similar Courses */
.ed-similar-courses {
    display: grid;
    gap: 2rem;
}

.ed-similar-courses-site {
    padding-top: 1.5rem;
    border-top: 1px solid var(--ed-border);
}

.ed-similar-courses-site:first-child {
    padding-top: 0;
    border-top: none;
}

.ed-similar-courses-site-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ed-text);
    margin: 0 0 1.25rem 0;
}

/* Capacity Progress Bar */
.ed-capacity-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--ed-bg-subtle);
    border-radius: 9999px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.ed-capacity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.ed-capacity-bar-fill[style*="width: 8"],
.ed-capacity-bar-fill[style*="width: 9"],
.ed-capacity-bar-fill[style*="width: 100"] {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

/* Email List */
.ed-email-list {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #86efac;
    border-left: 4px solid #22c55e;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.ed-email-list-title {
    font-weight: 700;
    color: #166534;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.ed-email-list-content {
    color: #15803d;
    word-break: break-all;
    line-height: 1.6;
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 767px) {
    .ed-admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ed-admin-toolbar-group {
        flex-wrap: wrap;
    }

    .ed-admin-toolbar-divider {
        width: 100%;
        height: 1px;
        background: var(--ed-border);
    }

    .ed-stats-grid {
        grid-template-columns: 1fr;
    }

    .ed-admin-table-wrap {
        margin: -1.75rem;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
    }

    .ed-copy-link-input {
        width: 100%;
    }

    .ed-team-form {
        flex-direction: column;
    }

    .ed-feedback-form-actions {
        flex-direction: column;
    }
}

/* ==================== */
/* ADMIN TABS           */
/* ==================== */

.ed-admin-tabs {
    margin-bottom: 2rem;
}

.ed-admin-tabs-nav {
    display: flex;
    gap: 0.25rem;
    padding: 0.375rem;
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg-subtle) 100%);
    border-radius: var(--ed-radius-lg);
    border: 1px solid var(--ed-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ed-admin-tabs-nav::-webkit-scrollbar {
    display: none;
}

.ed-admin-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ed-text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--ed-transition);
    position: relative;
}

.ed-admin-tab-btn:hover {
    background: var(--ed-bg);
    color: var(--ed-text);
}

.ed-admin-tab-btn.active {
    background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(186, 0, 0, 0.25);
}

.ed-admin-tab-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.ed-admin-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 0.375rem;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.ed-admin-tab-btn.active .ed-admin-tab-badge {
    background: rgba(255, 255, 255, 0.25);
}

.ed-admin-tabs-panel {
    display: none;
    animation: tabFadeIn 0.25s ease-out;
}

.ed-admin-tabs-panel.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Panel Spacing */
.ed-admin-tabs-panel > .ed-section:first-child,
.ed-admin-tabs-panel > .ed-admin-section:first-child {
    margin-top: 0;
}

.ed-admin-tabs-panel > .ed-section + .ed-section,
.ed-admin-tabs-panel > .ed-section + .ed-admin-section,
.ed-admin-tabs-panel > .ed-admin-section + .ed-section,
.ed-admin-tabs-panel > .ed-admin-section + .ed-admin-section {
    margin-top: 1.5rem;
}

/* Quick Stats Bar */
.ed-admin-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ed-admin-quick-stat {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--ed-bg) 0%, var(--ed-bg-light) 100%);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    transition: all var(--ed-transition);
}

.ed-admin-quick-stat:hover {
    box-shadow: var(--ed-shadow);
    transform: translateY(-2px);
}

.ed-admin-quick-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    flex-shrink: 0;
}

.ed-admin-quick-stat-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #ffffff;
}

.ed-admin-quick-stat-icon-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.ed-admin-quick-stat-icon-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.ed-admin-quick-stat-icon-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.ed-admin-quick-stat-icon-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.ed-admin-quick-stat-content {
    flex: 1;
    min-width: 0;
}

.ed-admin-quick-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ed-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.ed-admin-quick-stat-value {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--ed-text);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* Empty State for tabs */
.ed-admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg) 100%);
    border: 2px dashed var(--ed-border);
    border-radius: var(--ed-radius-lg);
}

.ed-admin-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--ed-bg-subtle);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.ed-admin-empty-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--ed-text-muted);
}

.ed-admin-empty-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ed-text);
    margin-bottom: 0.375rem;
}

.ed-admin-empty-text {
    font-size: 0.9375rem;
    color: var(--ed-text-light);
}

/* Responsive Tabs */
@media (max-width: 767px) {
    .ed-admin-tabs-nav {
        padding: 0.25rem;
    }

    .ed-admin-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .ed-admin-tab-btn span:not(.ed-admin-tab-badge) {
        display: none;
    }

    .ed-admin-tab-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .ed-admin-quick-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* Assets styles */
.ed-assets-grid {
    display: grid;
    gap: 0.625rem;
}

.ed-asset-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg) 100%);
    border: 1px solid var(--ed-border);
    border-radius: 0.625rem;
    color: var(--ed-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--ed-transition);
}

.ed-asset-link:hover {
    background: var(--ed-primary-light);
    border-color: var(--ed-primary);
    color: var(--ed-primary);
    text-decoration: none;
    transform: translateX(4px);
}

.ed-asset-link svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    color: var(--ed-text-muted);
    transition: color var(--ed-transition);
}

.ed-asset-link:hover svg {
    color: var(--ed-primary);
}

/* ==================== */
/* EDITABLE SECTIONS    */
/* ==================== */

/* Editable card - clickable overlay approach */
.ed-card-editable {
    position: relative;
    cursor: pointer;
}

.ed-card-editable::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.ed-card-editable:hover::before {
    border-color: var(--ed-primary);
    box-shadow: 0 0 0 4px var(--ed-primary-light);
}

/* Edit overlay badge */
.ed-edit-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-secondary) 100%);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(186, 0, 0, 0.3);
    text-decoration: none;
}

.ed-edit-overlay svg {
    width: 0.75rem;
    height: 0.75rem;
}

.ed-card-editable:hover .ed-edit-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Info card editable variant */
.ed-info-card.ed-card-editable {
    text-decoration: none;
}

.ed-info-card.ed-card-editable:hover {
    text-decoration: none;
}

.ed-info-card.ed-card-editable:hover .ed-info-card-inner {
    transform: translateY(-2px);
}

/* Sidebar card editable */
.ed-sidebar-card.ed-card-editable::before {
    border-radius: var(--ed-radius-lg);
}

/* Section editable */
.ed-section.ed-card-editable::before {
    border-radius: var(--ed-radius-lg);
}

/* Hero edit button - elegant floating style */
.ed-hero-edit {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    z-index: 10;
}

.ed-hero-edit svg {
    width: 1rem;
    height: 1rem;
}

.ed-hero-edit:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--ed-primary);
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Floating edit FAB */
.ed-edit-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-secondary) 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(186, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.ed-edit-fab svg {
    width: 1.5rem;
    height: 1.5rem;
}

.ed-edit-fab:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 32px rgba(186, 0, 0, 0.5);
    text-decoration: none;
    color: #ffffff;
}

.ed-edit-fab-tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    padding: 0.5rem 0.875rem;
    background: var(--ed-bg-dark);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.ed-edit-fab-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--ed-bg-dark);
}

.ed-edit-fab:hover .ed-edit-fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Edit mode indicator */
.ed-edit-mode-hint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: var(--ed-radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #92400e;
}

.ed-edit-mode-hint svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #f59e0b;
}

.ed-edit-mode-hint strong {
    font-weight: 700;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .ed-hero-edit {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .ed-edit-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }

    .ed-edit-fab svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .ed-edit-fab-tooltip {
        display: none;
    }
}

/* ==================== */
/* FEEDBACK COMPARISON  */
/* ==================== */

.ed-admin-section-icon-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.ed-feedback-comparison-wrapper {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ed-border);
}

.ed-feedback-comparison-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ed-text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-feedback-comparison-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1rem;
    background: linear-gradient(180deg, #f97316 0%, #22c55e 100%);
    border-radius: 2px;
}

.ed-feedback-comparison {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ed-comparison-item {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg) 100%);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
}

.ed-comparison-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ed-text);
    margin-bottom: 0.75rem;
}

.ed-comparison-graph {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ed-comparison-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--ed-text-muted);
    padding: 0 0.25rem;
}

.ed-comparison-line-container {
    position: relative;
    height: 1.5rem;
    margin: 0.25rem 0;
}

.ed-comparison-line-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--ed-bg-subtle);
    border-radius: 2px;
}

.ed-comparison-values {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.ed-comparison-value-before {
    color: #f97316;
}

.ed-comparison-value-after {
    color: #22c55e;
}

.ed-comparison-arrow {
    color: var(--ed-text-muted);
    font-size: 0.75rem;
}

.ed-comparison-diff {
    margin-left: auto;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--ed-bg-subtle);
    color: var(--ed-text-muted);
}

.ed-comparison-diff.positive {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #16a34a;
}

.ed-comparison-diff.negative {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

@media (max-width: 767px) {
    .ed-comparison-item {
        padding: 0.875rem;
    }

    .ed-comparison-values {
        flex-wrap: wrap;
    }
}

/* Analytics Graph - Canvas based */
.ed-analytics-canvas-wrapper {
    padding: 1rem;
    background: linear-gradient(135deg, var(--ed-bg) 0%, var(--ed-bg-light) 100%);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    margin-bottom: 1rem;
}

.ed-analytics-canvas {
    display: block;
    width: 100%;
}

/* Analytics Graph - Single combined view */
.ed-analytics-graph {
    padding: 1rem;
}

.ed-analytics-scale {
    display: flex;
    justify-content: space-between;
    padding: 0 60px 0.5rem 150px;
    font-size: 0.6875rem;
    color: var(--ed-text-muted);
    border-bottom: 1px solid var(--ed-border);
    margin-bottom: 1rem;
}

.ed-analytics-lines {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ed-analytics-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ed-analytics-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ed-text);
    text-align: right;
    padding-right: 0.5rem;
}

.ed-analytics-bar {
    flex: 1;
    position: relative;
    height: 2.5rem;
}

.ed-analytics-bar-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--ed-bg-subtle);
    border-radius: 2px;
}

.ed-analytics-connector {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    opacity: 0.6;
}

.ed-analytics-connector.positive {
    background: linear-gradient(90deg, #f97316 0%, #22c55e 100%);
}

.ed-analytics-connector.negative {
    background: linear-gradient(90deg, #22c55e 0%, #f97316 100%);
}

.ed-analytics-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: help;
    z-index: 1;
}

.ed-analytics-dot-before {
    background: #f97316;
}

.ed-analytics-dot-after {
    background: #22c55e;
}

.ed-analytics-dot-value {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.ed-analytics-dot-before .ed-analytics-dot-value {
    color: #f97316;
}

.ed-analytics-dot-after .ed-analytics-dot-value {
    color: #22c55e;
}

.ed-analytics-diff {
    width: 50px;
    flex-shrink: 0;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--ed-bg-subtle);
    color: var(--ed-text-muted);
}

.ed-analytics-diff.positive {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #16a34a;
}

.ed-analytics-diff.negative {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.ed-analytics-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ed-border);
}

.ed-analytics-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ed-text-light);
}

.ed-analytics-legend-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.ed-analytics-legend-dot-before {
    background: #f97316;
}

.ed-analytics-legend-dot-after {
    background: #22c55e;
}

@media (max-width: 767px) {
    .ed-analytics-scale {
        padding: 0 40px 0.5rem 100px;
        font-size: 0.625rem;
    }

    .ed-analytics-label {
        width: 90px;
        font-size: 0.75rem;
    }

    .ed-analytics-diff {
        width: 40px;
        font-size: 0.6875rem;
    }

    .ed-analytics-dot-value {
        display: none;
    }
}

/* Comparison Graph - CSS based, reactive */
.ed-comparison-graph {
    background: linear-gradient(135deg, var(--ed-bg) 0%, var(--ed-bg-light) 100%);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ed-comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ed-comparison-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ed-text);
    margin: 0;
}

.ed-comparison-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--ed-text-light);
}

.ed-comparison-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ed-comparison-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ed-comparison-legend-dot.before {
    background: #f97316;
}

.ed-comparison-legend-dot.after {
    background: #22c55e;
}

.ed-comparison-scale {
    display: flex;
    justify-content: space-between;
    padding-left: 120px;
    padding-right: 50px;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    color: var(--ed-text-muted);
}

.ed-comparison-row {
    display: flex;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--ed-border);
}

.ed-comparison-row:last-child {
    border-bottom: none;
}

.ed-comparison-label {
    width: 110px;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ed-text);
    padding-right: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ed-comparison-bar {
    flex: 1;
    position: relative;
    height: 32px;
}

.ed-comparison-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--ed-bg-subtle);
    border-radius: 2px;
}

.ed-comparison-connector {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    opacity: 0.7;
}

.ed-comparison-connector.positive {
    background: linear-gradient(90deg, #f97316, #22c55e);
}

.ed-comparison-connector.negative {
    background: linear-gradient(90deg, #22c55e, #f97316);
}

.ed-comparison-diff {
    width: 45px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: var(--ed-bg-subtle);
    color: var(--ed-text-muted);
}

.ed-comparison-diff.positive {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #16a34a;
}

.ed-comparison-diff.negative {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.ed-comparison-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--ed-text-muted);
    font-size: 0.875rem;
}

.ed-comparison-count {
    font-weight: 400;
    color: var(--ed-text-muted);
    font-size: 0.8125rem;
}

.ed-comparison-rows {
    min-height: 50px;
}

/* Before/After Comparison Card */
.ed-comparison-card {
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg, 12px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ed-comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ed-comparison-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ed-text);
    margin: 0;
}

.ed-comparison-badges {
    display: flex;
    gap: 0.5rem;
}

.ed-comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #64748b;
}

.ed-comparison-badge svg {
    flex-shrink: 0;
}

.ed-comparison-badge.positive {
    background: #dcfce7;
    color: #15803d;
}

.ed-comparison-badge.negative {
    background: #fee2e2;
    color: #b91c1c;
}

.ed-comparison-badge.neutral {
    background: #e0e7ff;
    color: #4338ca;
}

.ed-comparison-body {
    display: flex;
    gap: 1rem;
    min-height: 280px;
}

.ed-comparison-yaxis {
    position: relative;
    min-width: 120px;
    max-width: 180px;
    margin-right: 0.75rem;
}

.ed-comparison-yaxis-item {
    position: absolute;
    right: 0;
    transform: translateY(50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-align: right;
    padding-right: 0.5rem;
    border-right: 2px solid var(--ed-border);
}

.ed-comparison-yaxis-label {
    font-size: 0.75rem;
    color: var(--ed-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.ed-comparison-yaxis-value {
    font-size: 0.6875rem;
    color: var(--ed-text-muted);
    flex-shrink: 0;
}

.ed-comparison-graph-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ed-comparison-graph-area {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    overflow: hidden;
    min-height: 240px;
}

.ed-comparison-grid {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    padding: 0;
}

.ed-comparison-gridline {
    height: 1px;
    background: var(--ed-border);
    opacity: 0.4;
}

.ed-comparison-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ed-comparison-line {
    stroke: #22c55e;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: none;
    fill: none;
    opacity: 0.7;
    transition: opacity 0.2s, stroke-width 0.2s;
    cursor: pointer;
}

.ed-comparison-line.positive {
    stroke: #22c55e;
}

.ed-comparison-line.negative {
    stroke: #ef4444;
}

.ed-comparison-line.neutral {
    stroke: #94a3b8;
}

.ed-comparison-line:hover {
    opacity: 1;
    stroke-width: 3;
}

.ed-comparison-line-avg {
    stroke: #3b82f6;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 6 3;
    fill: none;
    opacity: 0.9;
}

.ed-comparison-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, 50%);
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    z-index: 10;
}

.ed-comparison-dot:hover {
    transform: translate(-50%, 50%) scale(1.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    z-index: 20;
}

.ed-comparison-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
    z-index: 100;
}

.ed-comparison-dot:hover::after {
    opacity: 1;
    visibility: visible;
}

.ed-comparison-dot.before {
    background: #f97316;
}

.ed-comparison-dot.after {
    background: #22c55e;
}

.ed-comparison-xaxis {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0 0;
}

.ed-comparison-xaxis-label {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.ed-comparison-xaxis-label.before {
    background: #fff7ed;
    color: #c2410c;
}

.ed-comparison-xaxis-label.after {
    background: #dcfce7;
    color: #15803d;
}

.ed-comparison-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid var(--ed-border);
}

.ed-comparison-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--ed-text-muted);
}

.ed-comparison-legend-line {
    width: 24px;
    height: 3px;
    border-radius: 2px;
}

.ed-comparison-legend-line.positive {
    background: #22c55e;
}

.ed-comparison-legend-line.negative {
    background: #ef4444;
}

.ed-comparison-legend-line.avg {
    background: repeating-linear-gradient(90deg, #3b82f6, #3b82f6 4px, transparent 4px, transparent 7px);
}

.ed-comparison-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border: 1px dashed var(--ed-border);
    border-radius: var(--ed-radius-lg, 12px);
    margin-bottom: 1.5rem;
}

.ed-comparison-empty-state svg {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.ed-comparison-empty-state p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

@media (max-width: 767px) {
    .ed-comparison-card {
        padding: 1rem;
    }

    .ed-comparison-body {
        flex-direction: column;
        min-height: auto;
    }

    .ed-comparison-yaxis {
        display: none;
    }

    .ed-comparison-graph-area {
        min-height: 200px;
    }

    .ed-comparison-dot {
        width: 10px;
        height: 10px;
    }

    .ed-comparison-legend {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .ed-comparison-scale {
        padding-left: 80px;
        padding-right: 40px;
    }

    .ed-comparison-label {
        width: 70px;
        font-size: 0.75rem;
    }

    .ed-comparison-diff {
        width: 38px;
        font-size: 0.6875rem;
        padding: 0.125rem 0.25rem;
    }

    .ed-comparison-value {
        display: none;
    }
}

/* ==================== */
/* TRANSITION MATRIX    */
/* ==================== */

.ed-transition-matrix-card {
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg, 12px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ed-transition-matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ed-transition-matrix-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ed-text);
    margin: 0;
}

.ed-transition-matrix-badges {
    display: flex;
    gap: 0.5rem;
}

.ed-transition-matrix-body {
    overflow-x: auto;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.ed-transition-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    min-width: 500px;
}

.ed-transition-matrix th,
.ed-transition-matrix td {
    padding: 0.625rem 0.5rem;
    text-align: center;
    border: 1px solid var(--ed-border-light);
}

.ed-transition-matrix-corner {
    background: linear-gradient(135deg, var(--ed-bg-light) 0%, var(--ed-bg-subtle) 100%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ed-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 80px;
}

.ed-transition-matrix-col-header {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    font-weight: 600;
    font-size: 0.75rem;
    color: #166534;
    white-space: nowrap;
    min-width: 90px;
}

.ed-transition-matrix-row-header {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    font-weight: 600;
    font-size: 0.75rem;
    color: #9a3412;
    text-align: right;
    padding-right: 0.75rem;
    white-space: nowrap;
}

.ed-transition-cell {
    position: relative;
    transition: all 0.15s ease;
    cursor: default;
    min-width: 70px;
}

.ed-transition-cell:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.ed-transition-cell-value {
    display: block;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.2;
}

.ed-transition-cell-count {
    display: block;
    font-size: 0.6875rem;
    color: inherit;
    opacity: 0.7;
    margin-top: 0.125rem;
}

/* Color coding for transitions */
.ed-transition-cell-improved {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.ed-transition-cell-same {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #854d0e;
}

.ed-transition-cell-worsened {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* Summary statistics */
.ed-transition-summary {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ed-border);
}

.ed-transition-summary-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ed-transition-summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.ed-transition-summary-item svg {
    flex-shrink: 0;
}

.ed-transition-summary-item strong {
    font-weight: 700;
    font-size: 0.9375rem;
}

.ed-transition-summary-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

.ed-transition-summary-improved {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #166534;
}

.ed-transition-summary-improved svg {
    color: #22c55e;
}

.ed-transition-summary-same {
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    color: #854d0e;
}

.ed-transition-summary-same svg {
    color: #eab308;
}

.ed-transition-summary-worsened {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.ed-transition-summary-worsened svg {
    color: #ef4444;
}

/* Detailed results section */
.ed-transition-details {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ed-border);
}

.ed-transition-details-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ed-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
}

.ed-transition-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ed-transition-details-section {
    border-radius: var(--ed-radius);
    padding: 1rem;
    border: 1px solid var(--ed-border-light);
}

.ed-transition-details-improved {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.ed-transition-details-worsened {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.ed-transition-details-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ed-transition-details-improved .ed-transition-details-header {
    color: #166534;
}

.ed-transition-details-improved .ed-transition-details-header svg {
    color: #22c55e;
}

.ed-transition-details-worsened .ed-transition-details-header {
    color: #991b1b;
}

.ed-transition-details-worsened .ed-transition-details-header svg {
    color: #ef4444;
}

.ed-transition-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ed-transition-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.625rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
}

.ed-transition-details-row-total {
    margin-top: 0.375rem;
    padding-top: 0.625rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.ed-transition-details-label {
    color: var(--ed-text-light);
}

.ed-transition-details-value {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ed-transition-details-improved .ed-transition-details-value strong {
    color: #166534;
}

.ed-transition-details-worsened .ed-transition-details-value strong {
    color: #991b1b;
}

.ed-transition-details-value span:not(strong) {
    font-size: 0.75rem;
    color: var(--ed-text-muted);
}

/* Responsive */
@media (max-width: 767px) {
    .ed-transition-matrix-card {
        padding: 1rem;
    }

    .ed-transition-matrix {
        font-size: 0.75rem;
    }

    .ed-transition-matrix th,
    .ed-transition-matrix td {
        padding: 0.5rem 0.375rem;
    }

    .ed-transition-matrix-corner,
    .ed-transition-matrix-col-header,
    .ed-transition-matrix-row-header {
        font-size: 0.6875rem;
    }

    .ed-transition-cell-value {
        font-size: 0.8125rem;
    }

    .ed-transition-cell-count {
        font-size: 0.625rem;
    }

    .ed-transition-summary-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ed-transition-summary-item {
        justify-content: center;
    }

    .ed-transition-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ed-transition-details-section {
        padding: 0.875rem;
    }

    .ed-transition-details-row {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}
