/**
 * Aamir Khan Phase 2 Content Styles
 * Custom styling for interactive exercises and market intelligence features
 */

/* ==========================================================================
   Exercise Container Styles
   ========================================================================== */

.aamir-exercises-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.aamir-exercises-container h3 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* ==========================================================================
   Exercise Card Styles
   ========================================================================== */

.exercise-card {
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exercise-card:hover {
    border-color: #6CFFC4;
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(108, 255, 196, 0.15);
}

.exercise-card.completed {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.exercise-card.completed::before {
    content: "✓";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #22c55e;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.exercise-header {
    margin-bottom: 16px;
}

.exercise-header h4 {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.exercise-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty.beginner {
    background: #dbeafe;
    color: #1e40af;
}

.difficulty.intermediate {
    background: #fef3c7;
    color: #d97706;
}

.difficulty.advanced {
    background: #fee2e2;
    color: #dc2626;
}

.difficulty.expert {
    background: #f3e8ff;
    color: #7c3aed;
}

.time-estimate {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.exercise-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.start-exercise-btn {
    background: linear-gradient(135deg, #6CFFC4 0%, #4ADE80 100%);
    color: #0f172a;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    will-change: transform;
}

.start-exercise-btn:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 255, 196, 0.4);
}

.start-exercise-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Exercise Modal Styles
   ========================================================================== */

.exercise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.exercise-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.exercise-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    transition: all 0.2s ease;
    z-index: 10;
}

.exercise-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}

#exercise-content {
    padding: 40px;
}

.exercise-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.exercise-header h3 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.exercise-timer {
    background: #f8fafc;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
}

.exercise-instructions {
    background: #f8fafc;
    border-left: 4px solid #6CFFC4;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.exercise-instructions h4 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.exercise-instructions p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.exercise-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6CFFC4;
    box-shadow: 0 0 0 3px rgba(108, 255, 196, 0.1);
}

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

/* ==========================================================================
   Data Points and Context Styles
   ========================================================================== */

.data-points,
.market-info,
.baseline-stats,
.context-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.data-points h5,
.market-info h5,
.baseline-stats h5,
.context-info h5 {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.data-points ul,
.market-info ul,
.baseline-stats ul,
.context-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.data-points li,
.market-info li,
.baseline-stats li,
.context-info li {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
}

.data-points li:last-child,
.market-info li:last-child,
.baseline-stats li:last-child,
.context-info li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Hints System
   ========================================================================== */

.hints-section {
    margin: 24px 0;
    padding: 20px;
    background: #fefce8;
    border-radius: 8px;
    border: 1px solid #fcd34d;
}

.hints-section h5 {
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.hints-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.hint-btn {
    background: #f59e0b;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hint-btn:hover {
    background: #d97706;
    transform: scale(1.1);
}

.hint-content {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
    width: 100%;
}

/* ==========================================================================
   Exercise Results Styles
   ========================================================================== */

.exercise-results {
    text-align: center;
    padding: 20px;
}

.exercise-results h3 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.score-display {
    margin: 24px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    border: 8px solid;
}

.score-circle.passed {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.score-circle.needs-improvement {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.score-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.score-label {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
}

.feedback-section,
.improvement-section {
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.feedback-section h4,
.improvement-section h4 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.feedback-content {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.correct-answers pre {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    overflow-x: auto;
    color: #475569;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */

.exercise-actions,
.results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6CFFC4 0%, #4ADE80 100%);
    color: #0f172a;
    border-color: #6CFFC4;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 255, 196, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #4b5563;
    border-color: #d1d5db;
}

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

/* ==========================================================================
   Market Intelligence Styles
   ========================================================================== */

.aamir-market-intelligence {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.market-intel-header {
    text-align: center;
    margin-bottom: 32px;
}

.market-intel-header h3 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.market-intel-header p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.intel-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
}

.intel-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.intel-tab:hover {
    color: #374151;
    background: #f9fafb;
}

.intel-tab.active {
    color: #0f172a;
    border-bottom-color: #6CFFC4;
    background: linear-gradient(135deg, rgba(108, 255, 196, 0.1), rgba(74, 222, 128, 0.1));
}

.intel-content {
    display: none;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.intel-content.active {
    display: block;
}

.intel-content h4 {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.intel-action-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 8px 16px 0;
}

.intel-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.sector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sector-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sector-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* ==========================================================================
   Analysis Results Styles
   ========================================================================== */

.market-analysis-result,
.deal-intelligence-result {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    border-left: 4px solid #6CFFC4;
}

.aamir-response {
    margin-bottom: 20px;
}

.response-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-line;
}

.personalization-options {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.personalization-options h5 {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.personalization-item {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.deal-overview {
    margin-bottom: 20px;
}

.deal-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.deal-metrics span {
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
}

.key-points {
    margin: 20px 0;
}

.key-points h5 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.key-points ul {
    margin: 0;
    padding-left: 20px;
}

.key-points li {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.aamir-commentary {
    margin: 24px 0;
}

.aamir-commentary h5 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.commentary-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.commentary-tab {
    background: #e5e7eb;
    color: #4b5563;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px 4px 0 0;
}

.commentary-tab.active {
    background: #ffffff;
    color: #1a1a1a;
}

.commentary-content {
    background: #ffffff;
    border-radius: 0 8px 8px 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.commentary-panel {
    display: none;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.commentary-panel.active {
    display: block;
}

.investment-thesis {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    margin-top: 16px;
}

.investment-thesis h5 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.investment-thesis p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Loading and Error States
   ========================================================================== */

.loading,
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #6CFFC4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.error {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    text-align: center;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .aamir-exercises-container,
    .aamir-market-intelligence {
        padding: 16px;
    }
    
    .exercises-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .exercise-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    #exercise-content {
        padding: 24px;
    }
    
    .intel-tabs {
        flex-wrap: wrap;
    }
    
    .intel-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .deal-metrics {
        flex-direction: column;
        gap: 8px;
    }
    
    .commentary-tabs {
        flex-wrap: wrap;
    }
    
    .exercise-actions,
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .exercise-header h3 {
        font-size: 20px;
    }
    
    .market-intel-header h3 {
        font-size: 24px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 24px;
    }
    
    .exercise-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   NEW PHASE 2 INTERACTIVE CONTENT STYLES
   ========================================================================== */

/* Interactive Tool Modal Enhancements */
.interactive-tool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.tool-modal-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Market Sizing Calculator Specific Styles */
#market-sizing-calculator .calculator-progress {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

#market-sizing-calculator .progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

#market-sizing-calculator .progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

#market-sizing-calculator .step[data-step] {
    background: #e9ecef;
    color: #6c757d;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    min-width: 120px;
    text-align: center;
}

#market-sizing-calculator .step[data-step].active {
    background: #007bff;
    color: white;
    transform: scale(1.05);
}

#market-sizing-calculator .calculator-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

#market-sizing-calculator .step-content {
    display: none;
}

#market-sizing-calculator .step-content.active {
    display: block;
    animation: stepSlideIn 0.3s ease-out;
}

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

/* Porter's Five Forces Framework Styles */
#competitive-analysis-framework .framework-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

#competitive-analysis-framework .forces-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

#competitive-analysis-framework .force-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s;
}

#competitive-analysis-framework .force-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #0ea5e9;
}

#competitive-analysis-framework .force-item h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

#competitive-analysis-framework .force-rating select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

#competitive-analysis-framework .force-rating select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

#competitive-analysis-framework .checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.2s;
}

#competitive-analysis-framework .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

#competitive-analysis-framework .analysis-points textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: all 0.2s;
}

#competitive-analysis-framework .framework-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

#competitive-analysis-framework .score-display .score-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 10px;
}

#competitive-analysis-framework .score-display .score-label {
    font-size: 16px;
    font-weight: 600;
    color: #0c4a6e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results Display Enhancements */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.2s;
}

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

.result-card h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.result-value.score-high {
    color: #059669;
}

.result-value.score-medium {
    color: #d97706;
}

.result-value.score-low {
    color: #dc2626;
}

/* Investment Thesis Display */
.investment-thesis {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.investment-thesis h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #166534;
}

.investment-thesis p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #166534;
}

/* Enhanced Aamir Feedback */
.aamir-feedback {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.aamir-feedback img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #0ea5e9;
    flex-shrink: 0;
}

.feedback-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #0c4a6e;
}

.feedback-content strong {
    color: #0369a1;
    font-weight: 700;
}

/* Dynamic Feedback and Insights */
.dynamic-feedback {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 15px;
    color: #92400e;
    animation: feedbackSlideIn 0.3s ease-out;
}

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

.competitive-insight {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 15px;
}

.competitive-insight.positive {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #22c55e;
}

.competitive-insight.warning {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.competitive-insight.neutral {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #94a3b8;
}

.competitive-insight.info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

/* Navigation and Action Buttons */
.calculator-navigation {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.framework-actions,
.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Enhanced Form Styling for Interactive Tools */
.interactive-tool-modal .form-group {
    margin-bottom: 25px;
}

.interactive-tool-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 16px;
}

.interactive-tool-modal .form-group input,
.interactive-tool-modal .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: white;
}

.interactive-tool-modal .form-group input:focus,
.interactive-tool-modal .form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.interactive-tool-modal .form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 14px;
}

/* Tool Header Enhancements */
.tool-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 30px;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.tool-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.tool-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.tool-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tool-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive Enhancements for New Interactive Content */
@media (max-width: 768px) {
    .tool-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh 2.5vw;
    }

    .tool-header {
        padding: 20px;
    }

    .tool-header h2 {
        font-size: 24px;
    }

    #market-sizing-calculator .calculator-content,
    #competitive-analysis-framework .framework-content {
        padding: 20px;
    }

    #market-sizing-calculator .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    #market-sizing-calculator .step[data-step] {
        min-width: auto;
        flex: 1;
        padding: 6px 12px;
        font-size: 12px;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .result-card {
        padding: 20px;
    }

    .result-value {
        font-size: 24px;
    }

    #competitive-analysis-framework .forces-diagram {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .framework-actions,
    .results-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .calculator-navigation {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .aamir-feedback {
        flex-direction: column;
        text-align: center;
    }

    .aamir-feedback img {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 15px;
    }

    .tool-header h2 {
        font-size: 20px;
    }

    #market-sizing-calculator .calculator-content,
    #competitive-analysis-framework .framework-content {
        padding: 15px;
    }

    #competitive-analysis-framework .score-display .score-number {
        font-size: 36px;
    }
}