/* Product Strategy Preview Modal Styles */

/* Diff Highlighting Styles */
.highlight-changed {
    font-weight: bold;
    color: #059669;
    background-color: #ecfdf5;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #a7f3d0;
}

/* Additional diff highlighting styles */
.highlight-added {
    font-weight: bold;
    color: #059669;
    background-color: #ecfdf5;
    padding: 2px 4px;
    border-radius: 3px;
}

.highlight-removed {
    text-decoration: line-through;
    color: #dc2626;
    background-color: #fef2f2;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Ensure diff highlighting works in preview content */
.preview-panel .change-value .highlight-changed,
.strategy-preview-content .change-value .highlight-changed {
    display: inline;
    margin: 0;
}

/* Modal Overlay */
.strategy-preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
}

/* Modal Container - New Design */
.strategy-preview-modal.new-design {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

/* Original Modal Container (for backward compatibility) */
.strategy-preview-modal:not(.new-design) {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 100vw;
    height: 100vh;
    width: 1200px;
    display: flex;
    flex-direction: column;
    overflow: scroll;
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Modal Header - New Design */
.strategy-preview-modal.new-design .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.strategy-preview-modal.new-design .preview-title h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.strategy-preview-modal.new-design .preview-title p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

/* Original Modal Header */
.strategy-preview-modal:not(.new-design) .preview-header {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.strategy-preview-modal:not(.new-design) .preview-title h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.strategy-preview-modal:not(.new-design) .preview-title p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.preview-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.preview-close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Modal Content - New Design */
.strategy-preview-modal.new-design .preview-content {
    flex: 1;
    overflow-y: auto;
}

.strategy-preview-modal.new-design .preview-content-area {
    padding: 2rem;
}

/* Original Modal Content (for backward compatibility) */
.strategy-preview-modal:not(.new-design) .preview-content {
    display: flex;
    flex-direction: column;
}

.strategy-preview-modal:not(.new-design) .preview-content-area {
    padding: 2rem;
}

/* Comparison View (Original Design) */
.comparison-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 100%;
}

/* Section pairs for alignment (Original Design) */
.section-pair {
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.current-section,
.proposed-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Impact Section (Original Design) */
.impact-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.impact-section h3 {
    margin: 0 0 1rem 0;
    color: #1e40af;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.impact-section .impact-content {
    color: #374151;
    line-height: 1.6;
}

.impact-section .impact-content p {
    margin: 0 0 1rem 0;
}

.impact-section .impact-content ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.impact-section .impact-content li {
    margin-bottom: 0.5rem;
}

.impact-section .impact-content strong {
    color: #1e293b;
}

.impact-section .impact-content em {
    color: #64748b;
}

/* Original Modal Footer */
.strategy-preview-modal:not(.new-design) .preview-footer {
    padding: 0.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    justify-items: center;
    position: sticky;
    bottom: 0px;
    z-index: 2;
}

.strategy-preview-modal:not(.new-design) .preview-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.strategy-preview-modal:not(.new-design) .preview-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.strategy-preview-modal:not(.new-design) .preview-btn.cancel-btn {
    background: #f3f4f6;
    color: #374151;
}

.strategy-preview-modal:not(.new-design) .preview-btn.cancel-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.strategy-preview-modal:not(.new-design) .preview-btn.confirm-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.strategy-preview-modal:not(.new-design) .preview-btn.confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Focused Preview Container */
.focused-preview-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Change Summary Section */
.change-summary-section {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.change-summary-section p {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
}

.change-highlight {
    color: #3b82f6;
    font-weight: 600;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-column {
    display: flex;
    flex-direction: column;
}

.column-header {
    margin-bottom: 1rem;
}

.column-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.content-display {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    min-height: 120px;
}

.proposed-content {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #3b82f6;
}

.current-content {
    background: #fafafa;
}

/* Content Styling */
.current-content p, .proposed-content p {
    margin: 0 0 1rem 0;
    color: #374151;
    line-height: 1.6;
}

.target-item {
    margin-bottom: 1rem;
}

.target-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 1.1rem;
}

.target-item p {
    margin: 0 0 0.75rem 0;
    color: #64748b;
    line-height: 1.5;
}

.attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attr-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.goal-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.goal-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.goal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #10b981;
    color: white;
}

.priority-badge.medium {
    background: #f59e0b;
    color: white;
}

.priority-badge.low {
    background: #6b7280;
    color: white;
}

.product-type {
    margin-bottom: 1rem;
}

.features {
    margin-top: 1rem;
}

.feature-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 4px;
}

.feature-name {
    font-weight: 600;
    color: #1e293b;
    margin-right: 0.5rem;
}

.feature-desc {
    color: #64748b;
    font-size: 0.9rem;
}

.primary-need strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

/* Refine with AI Section */
.refine-ai-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border: 2px solid #a855f7;
    border-radius: 8px;
}

.refine-header {
    margin-bottom: 1rem;
}

.refine-header h4 {
    margin: 0;
    color: #581c87;
    font-size: 1.1rem;
    font-weight: 600;
}

.refine-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#refine-ai-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
    transition: border-color 0.2s;
    font-family: inherit;
}

#refine-ai-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

#refine-ai-input::placeholder {
    color: #9ca3af;
}

.refine-ai-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.refine-ai-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.refine-ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sparkle-icon {
    font-size: 1rem;
}

/* Impact Analysis Section */
.impact-analysis-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 8px;
}

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

.impact-icon {
    font-size: 1.2rem;
}

.impact-header h4 {
    margin: 0;
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
}

.impact-content {
    color: #374151;
}

.impact-list {
    margin: 0;
    padding-left: 1.5rem;
}

.impact-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #4b5563;
}

/* Modal Footer - New Design */
.strategy-preview-modal.new-design .preview-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.strategy-preview-modal.new-design .preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.strategy-preview-modal.new-design .preview-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.keep-current-btn {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
}

.keep-current-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.update-section-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.update-section-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

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

/* No Changes Needed State */
.no-changes-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

.no-changes-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
}

.no-changes-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-changes-header h4 {
    margin: 0 0 0.5rem 0;
    color: #15803d;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-changes-header p {
    margin: 0;
    color: #16a34a;
    font-size: 1rem;
    line-height: 1.5;
}

.ai-reasoning-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 8px;
}

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

.reasoning-icon {
    font-size: 1.2rem;
}

.reasoning-header h5 {
    margin: 0;
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
}

.reasoning-content {
    color: #374151;
    line-height: 1.6;
}

.reasoning-content p {
    margin: 0 0 0.5rem 0;
}

.reasoning-content br {
    margin-bottom: 0.5rem;
}

.no-changes-actions {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.no-changes-actions p {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
}

/* No Data States */
.no-data {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.preview-error {
    text-align: center;
    padding: 3rem 2rem;
    color: #ef4444;
}

/* Responsive Design for New Design */
@media (max-width: 768px) {
    .strategy-preview-modal.new-design {
        width: 95vw;
        max-height: 95vh;
}

    .strategy-preview-modal.new-design .preview-header {
        padding: 1rem 1.5rem;
    }
    
    .strategy-preview-modal.new-design .preview-title h3 {
        font-size: 1.25rem;
    }
    
    .strategy-preview-modal.new-design .preview-content-area {
        padding: 1.5rem;
}

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
}

    .strategy-preview-modal.new-design .preview-actions {
        flex-direction: column;
}

    .strategy-preview-modal.new-design .preview-btn {
        width: 100%;
        justify-content: center;
}

    .goal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scrollable Content Container */
.preview-scrollable-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Canvas Preview Components */
.canvas-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.canvas-section {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s;
}

.canvas-section.changed {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.canvas-section h5 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.canvas-section.changed h5 {
    color: #1e40af;
}

.section-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.section-content p {
    margin: 0 0 0.5rem 0;
    color: #4b5563;
}

.section-content strong {
    color: #1f2937;
}

/* Vision Tags */
.vision-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.vision-tags .tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #cbd5e1;
}

.canvas-section.changed .vision-tags .tag {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Target Items */
.target-item {
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 6px;
    border-left: 3px solid #64748b;
}

.canvas-section.changed .target-item {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.target-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 1rem;
}

.target-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Goal Items Preview */
.goal-item-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.goal-item-preview:last-child {
    border-bottom: none;
}

.goal-item-preview strong {
    flex: 1;
    color: #1e293b;
    font-size: 0.9rem;
}

.goal-meta {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.canvas-section.changed .goal-meta {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.more-items {
    margin: 0.5rem 0 0 0;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.85rem;
    text-align: center;
}

/* Reasoning Content Styling */
.reasoning {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reasoning .icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.reasoning p {
    margin: 0 0 0.5rem 0;
    color: #374151;
    line-height: 1.6;
}

.reasoning ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    color: #374151;
}

.reasoning li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.reasoning strong {
    color: #1e293b;
    font-weight: 600;
}

.reasoning em {
    color: #64748b;
    font-style: italic;
}

/* Enhanced Impact Analysis Section */
.impact-analysis-section .reasoning {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

/* Section-by-Section Comparison Styles */
.section-comparison {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.section-comparison-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-comparison-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-comparison .comparison-grid {
    padding: 0;
}

.section-comparison .column-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    background: #fafafa;
}

.section-comparison .content-display {
    margin: 0;
    border: none;
    border-radius: 0;
    background: white;
    min-height: auto;
}

.section-comparison .content-display.proposed-content {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Focused Section Content Styles */
.section-content-focused {
    padding: 1.5rem;
}

.section-content-focused h6 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Vision Statement in Focused View */
.vision-statement p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1e293b;
    margin: 0;
    font-style: italic;
}

/* Target Groups */
.target-groups {
    margin-bottom: 1.5rem;
}

.target-groups:last-child {
    margin-bottom: 0;
}

.target-item.secondary {
    opacity: 0.8;
    border-left-color: #84cc16;
    }
    
.attr-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

/* Goals List */
.goals-list {
    display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
.goal-item-detailed {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
    }
    
.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
    }

.goal-header strong {
    flex: 1;
    color: #1e293b;
    line-height: 1.4;
}

.goal-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.goal-meta span {
    display: flex;
    align-items: center;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-type {
    font-size: 1rem;
    color: #1e293b;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.feature-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.feature-item p {
    margin: 0 0 0.5rem 0;
    color: #64748b;
    line-height: 1.4;
}

.feature-type {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.competitive-advantage {
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    border-left: 3px solid #0ea5e9;
}

.competitive-advantage strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #0c4a6e;
}

.competitive-advantage p {
    margin: 0;
    color: #164e63;
    line-height: 1.4;
}

/* Needs Section */
.needs-section {
    margin-bottom: 1.5rem;
}

.needs-section:last-child {
    margin-bottom: 0;
}

.need-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.need-item:last-child {
    margin-bottom: 0;
}

.need-item p {
    flex: 1;
    margin: 0;
    color: #374151;
    line-height: 1.4;
}

/* Priority Badges */
.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.priority-badge.high {
    background: #10b981;
    color: white;
}

.priority-badge.medium {
    background: #f59e0b;
    color: white;
}

.priority-badge.low {
    background: #6b7280;
    color: white;
}

/* No Changes Comparison */
.no-changes-comparison {
    margin: 2rem 0;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
}

/* No Changes Indicator */
.no-changes-indicator {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 8px;
    margin-bottom: 1rem;
    }
    
.no-changes-indicator .no-changes-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    }
    
.no-changes-indicator h4 {
    margin: 0 0 0.5rem 0;
    color: #15803d;
    font-size: 1.1rem;
    font-weight: 600;
}

.no-changes-indicator p {
    margin: 0 0 1rem 0;
    color: #16a34a;
    font-size: 0.9rem;
    line-height: 1.4;
} 

/* Dotted points styling for impact section */
.impact-point {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    line-height: 1.5;
    color: #374151;
}

.impact-point:last-child {
    margin-bottom: 0;
}

/* Plan Implementation Button */
.plan-implementation-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.plan-implementation-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Subheadings Only Layout */
.subheadings-only {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subheading-item {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #d1d5db;
}

.subheading-item h6 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subheading-preview {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.subheading-item.goal-brief {
    border-left-color: #3b82f6;
    background: #f0f9ff;
}

.subheading-item.goal-brief h6 {
    color: #1e40af;
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Fix Comparison Grid Layout */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    min-height: 300px;
}

.content-display {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    min-height: 200px;
    overflow-y: auto;
    max-height: 400px;
}

.current-content {
    background: #fafafa;
    border-color: #d1d5db;
}

.proposed-content {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #3b82f6;
}

/* Implementation Timeframe Modal */
.implementation-timeframe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    backdrop-filter: blur(4px);
}

.implementation-timeframe-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.timeframe-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.timeframe-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

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

.timeframe-content {
    padding: 2rem;
}

.timeframe-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.timeframe-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.timeframe-option:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.timeframe-option.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.option-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Preview Panel Content Styles */
.preview-panel .preview-content-area {
    padding: 0;
}

.preview-panel .preview-header {
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

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

.custom-timeframe {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.custom-timeframe label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #374151;
}

#custom-timeframe-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

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

.timeframe-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-panel .preview-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.preview-panel .preview-content {
    margin-bottom: 1rem;
}

/* Focused Preview for Panel */
.preview-panel .focused-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.preview-panel .focused-preview h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-panel .focused-preview .section-icon {
    font-size: 1.2rem;
}

.preview-panel .comparison-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-panel .section-pair {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

.preview-panel .current-section,
.preview-panel .proposed-section {
    margin-bottom: 0.75rem;
}

.preview-panel .current-section:last-child,
.preview-panel .proposed-section:last-child {
    margin-bottom: 0;
}

.preview-panel .section-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-panel .current-section .section-label {
    color: #dc2626;
}

.preview-panel .proposed-section .section-label {
    color: #059669;
}

.preview-panel .section-content {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* No Changes State for Panel */
.preview-panel .no-changes-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

.preview-panel .no-changes-state .no-changes-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.preview-panel .no-changes-state h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.preview-panel .no-changes-state p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Impact Analysis for Panel */
.preview-panel .impact-section {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #3b82f6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-panel .impact-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-panel .impact-section .impact-icon {
    font-size: 1rem;
}

.preview-panel .impact-section p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #1e40af;
}

/* Refine Input for Panel */
.preview-panel .refine-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #faf5ff;
    border: 1px solid #c084fc;
    border-radius: 8px;
}

.preview-panel .refine-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7c3aed;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-panel .refine-section .refine-icon {
    font-size: 1rem;
}

.preview-panel .refine-section p {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6b21a8;
}

.preview-panel .refine-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d8b4fe;
    border-radius: 6px;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s ease;
}

.preview-panel .refine-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1);
}

.preview-panel .refine-btn {
    margin-top: 0.75rem;
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-panel .refine-btn:hover {
    background: #7c3aed;
}

.cancel-timeframe-btn {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
}

.cancel-timeframe-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.confirm-timeframe-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.confirm-timeframe-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

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

/* Responsive Design for Timeframe Modal */
@media (max-width: 768px) {
    .timeframe-options {
        grid-template-columns: 1fr;
    }
    
    .timeframe-option {
        padding: 1rem;
    }
    
    .option-icon {
        font-size: 1.5rem;
    }
    
    .timeframe-footer {
        flex-direction: column;
    }
    
    .timeframe-btn {
        width: 100%;    
    }
}

.preview-panel .refine-btn:hover {
    background: #d97706;
}

/* Mobile Responsive for Panel */
@media (max-width: 768px) {
    .preview-panel .strategy-preview-modal.new-design .preview-header {
        padding: 0rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-title h3 {
        font-size: 1rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-title p {
        font-size: 0.85rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-content-area {
        padding: 1rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-footer {
        padding: 0.75rem 1rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-actions {
        flex-direction: column;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-btn {
        padding: 0.875rem 1rem;
    }
}

/* Preview Panel - Using Existing Modal Styles */
.preview-panel .strategy-preview-modal.new-design {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: none;
}

.preview-panel .strategy-preview-modal.new-design .preview-scrollable-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.preview-panel .strategy-preview-modal.new-design .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem;
    border-bottom: 0px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

.preview-panel .strategy-preview-modal.new-design .preview-title h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.preview-panel .strategy-preview-modal.new-design .preview-title p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.preview-panel .strategy-preview-modal.new-design .preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.preview-panel .strategy-preview-modal.new-design .preview-content-area {
    padding: 1.5rem;
}

.preview-panel .strategy-preview-modal.new-design .preview-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

.preview-panel .strategy-preview-modal.new-design .preview-actions {
    display: flex;
    gap: 1rem;
}

.preview-panel .strategy-preview-modal.new-design .preview-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.preview-panel .strategy-preview-modal.new-design .keep-current-btn {
    background: #f3f4f6;
    color: #374151;
}

.preview-panel .strategy-preview-modal.new-design .keep-current-btn:hover {
    background: #e5e7eb;
}

.preview-panel .strategy-preview-modal.new-design .update-section-btn {
    background: #059669;
    color: white;
}

.preview-panel .strategy-preview-modal.new-design .update-section-btn:hover {
    background: #047857;
}

.preview-panel .strategy-preview-modal.new-design .btn-icon {
    font-size: 1rem;
}

/* Mobile responsive for panel */
@media (max-width: 768px) {
    .preview-panel .strategy-preview-modal.new-design .preview-header {
        padding: 0rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-title h3 {
        font-size: 1rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-title p {
        font-size: 0.85rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-content-area {
        padding: 1rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-footer {
        padding: 0.75rem 1rem;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-actions {
        flex-direction: column;
    }
    
    .preview-panel .strategy-preview-modal.new-design .preview-btn {
        padding: 0.875rem 1rem;
    }
}

/* New bulleted list format styles */
.changes-container {
    margin: 20px 0;
}

.section-changes {
    margin-bottom: 25px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0px;
    padding-top: 12px;
    border-top: 2px solid #e9ecef;
}

.field-changes {
    margin-bottom: 20px;
}

.field-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    margin-top: 16px;
    padding-bottom: 4px;
    border-bottom: 0px solid #dee2e6;
}

.changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.change-item {
    display: grid;
    align-items: stretch;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.change-item.added {
    border-left: 4px solid #28a745;
}

.change-item.removed {
    border-left: 4px solid #dc3545;
}

.change-item.updated {
    border-left: 4px solid #007bff;
}

.change-current {
    flex: 0 0 200px;
    background: #f8f9fa;
    padding: 12px;
    border-right: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    flex-direction: column;
}

.change-item.added .change-current {
    color: #28a745;
    font-style: italic;
}

.change-item.removed .change-current {
    color: #dc3545;
    text-decoration: line-through;
}

.change-item.updated .change-current {
    color: #6c757d;
    font-style: italic;
}

.change-content {
    flex: 1;
    background: #f0f8ff;
    padding: 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.change-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    margin-bottom: 6px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 4px;
}

.change-current-value {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Style feature names as bullets */
.change-current-value.feature-list {
    display: block;
    align-items: flex-start;
}

.change-current-value.feature-list {
    font-weight: 600;
    color: #2c3e50;
}

.feature-bullet-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.feature-bullet-list li {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    position: relative;
    padding-left: 16px;
}

.feature-bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #495057;
}

.change-field {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.change-value {
    color: #212529;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-line;
    font-size: 0.85rem;
}

/* Feature title and description styling */
.change-value .feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 6px;
    display: block;
    line-height: 1.3;
}

.change-value .feature-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-left: 0;
    display: block;
    margin-top: 4px;
}

.no-changes {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.reasoning-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.reasoning-section h4 {
    color: #17a2b8;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.reasoning-content {
    color: #495057;
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Update preview actions styling */
.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.preview-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-primary:hover {
    background: #059669;
}

.preview-controls .preview-close-btn{
    display: none;
}