/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
#dashboard-header {
    background: white;
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-bottom: 3px solid #18B8D8;
}

/* Logo Header Styles */
.logo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.techsoup-logo {
    height: 100px;
    width: auto;
    transition: transform 0.2s ease;
}

.techsoup-logo:hover {
    transform: translateY(-2px);
}

.collaboration-text {
    font-size: 1.3rem;
    color: #6b7280;
    padding: 0 30px;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.mtm-logo {
    height: 95px;
    width: auto;
    opacity: 0.95;
    max-width: 400px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 30px;
    font-weight: 400;
}

/* KPI Cards */
#kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.kpi-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #18B8D8 0%, #FF8C00 100%);
}

.kpi-card:hover {
    transform: translateY(-5px);
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a202c;
}

.kpi-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Main Dashboard */
#dashboard-main {
    padding-bottom: 50px;
}

.chart-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chart-container h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.half-width {
    flex: 1 1 calc(50% - 15px);
    min-width: 400px;
}

.full-width {
    flex: 1 1 100%;
}

.third-width {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px;
}

.two-thirds-width {
    flex: 1 1 calc(66.666% - 20px);
    min-width: 500px;
}

/* Insights Panel */
.insights-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: background 0.3s ease;
}

.insight:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight strong {
    color: #4a5568;
    display: block;
    margin-bottom: 5px;
}

.insight div {
    flex: 1;
    color: #718096;
    line-height: 1.5;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
}

.stat-value {
    color: #2d3748;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    #kpi-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .kpi-value {
        font-size: 2rem;
    }
    
    .half-width,
    .third-width,
    .two-thirds-width {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .chart-row {
        flex-direction: column;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #kpi-cards {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .chart-container {
        padding: 20px 15px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Chart Specific Styles */
canvas {
    max-height: 400px;
}

#ai-relationship-chart,
#tools-chart {
    min-height: 300px;
}

/* Success Stories Section */
.section-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin: -10px 0 20px 0;
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.success-story-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px 20px 20px 20px;
    border-radius: 10px;
    border-left: 4px solid;
    position: relative;
    min-height: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.success-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.success-story-card:nth-child(1) { border-left-color: #18B8D8; }
.success-story-card:nth-child(2) { border-left-color: #FF8C00; }
.success-story-card:nth-child(3) { border-left-color: #20B8D8; }
.success-story-card:nth-child(4) { border-left-color: #FFA500; }
.success-story-card:nth-child(5) { border-left-color: #18B8D8; }
.success-story-card:nth-child(6) { border-left-color: #FF8C00; }

.story-quote {
    font-style: italic;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    padding: 10px 5px;
    position: relative;
    z-index: 1;
    display: block;
}

.story-quote::before {
    content: '"';
    font-size: 2.5rem;
    color: #cbd5e0;
    position: absolute;
    top: -5px;
    left: 10px;
    opacity: 0.3;
    z-index: 0;
}

.story-quote::after {
    content: '"';
    font-size: 2.5rem;
    color: #cbd5e0;
    position: absolute;
    bottom: -15px;
    right: 10px;
    opacity: 0.3;
    z-index: 0;
}

.themes-visualization {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.themes-visualization h4 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

#themes-chart {
    min-height: 350px;
}

/* Qualitative Analysis Section Styles */
.qualitative-analysis-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.section-header {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 40px;
}

.executive-summary {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-left: 4px solid #18B8D8;
    color: #1a202c;
}

.executive-summary h3 {
    color: #0c4a6e;
    margin-bottom: 20px;
    font-weight: 600;
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
}

.summary-text strong {
    color: #0c4a6e;
    font-weight: 700;
}

/* Critical Insights Grid */
.critical-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.insight-card {
    background: linear-gradient(135deg, rgba(24, 184, 216, 0.1), rgba(255, 140, 0, 0.1));
    border-left: 4px solid #18B8D8;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateX(5px);
}

.insight-card h4 {
    color: #18B8D8;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.insight-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Perspectives Carousel */
.perspectives-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.perspective-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    border: 1px solid #e2e8f0;
}

.perspective-card blockquote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.perspective-card blockquote::before {
    content: """;
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #667eea;
    opacity: 0.3;
}

.perspective-card cite {
    display: block;
    text-align: right;
    color: #718096;
    font-size: 0.9rem;
    font-style: normal;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.recommendation-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #18B8D8;
}

.recommendation-card h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.recommendation-card ul {
    list-style: none;
    padding: 0;
}

.recommendation-card li {
    padding: 8px 0;
    color: #4a5568;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.recommendation-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FF8C00;
    font-weight: bold;
}

.recommendation-card li strong {
    color: #2d3748;
    font-weight: 600;
}

/* Takeaway Panel */
.takeaway-panel {
    background: linear-gradient(135deg, rgba(24, 184, 216, 0.05), rgba(255, 140, 0, 0.05));
    border-radius: 12px;
    padding: 30px;
    border: 2px solid rgba(24, 184, 216, 0.2);
}

.takeaway-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.takeaway-text strong {
    color: #18B8D8;
    font-weight: 600;
}

/* Introduction Section */
.introduction-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #18B8D8;
    padding: 30px;
}

.introduction-section h3 {
    color: #0c4a6e;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 15px;
}

.intro-text strong {
    color: #0c4a6e;
    font-weight: 600;
}

.badge-closed {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.key-insight-box {
    background: white;
    border: 1px solid #18B8D8;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.key-insight-box .insight-icon {
    font-size: 1.5rem;
}

.key-insight-box .insight-text {
    flex: 1;
    color: #1e293b;
    line-height: 1.6;
}

/* Chart Container Heights for New Charts */
#success-themes-chart,
#readiness-levels-chart,
#application-areas-chart,
#maturity-chart {
    height: 350px;
}

/* Organizational Maturity Highlight Section */
.maturity-highlight {
    background: white;
    border-left: 4px solid #ef4444;
    padding: 35px;
    position: relative;
}

.maturity-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
}

.critical-header {
    color: #dc2626;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.maturity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.maturity-visual {
    text-align: center;
}

.big-stat {
    margin-bottom: 30px;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-description {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.5;
}

.stat-description strong {
    color: #FF4444;
    font-weight: 700;
}

.maturity-bar-chart {
    display: flex;
    width: 100%;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.maturity-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 10px;
}

.maturity-insight h4 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.highlight-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 15px;
}

.highlight-text strong {
    color: #FF4444;
    font-weight: 600;
}

/* Shadow AI Warning Section */
.shadow-ai-warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #f87171;
    padding: 35px;
    position: relative;
}

.shadow-ai-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #ef4444 100%);
}

.warning-header {
    color: #b91c1c;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.shadow-ai-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.shadow-stat {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

.shadow-percentage {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
    margin-bottom: 10px;
}

.shadow-label {
    display: block;
    font-size: 0.95rem;
    color: #7f1d1d;
    line-height: 1.4;
    font-weight: 500;
}

.shadow-insight h4 {
    color: #991b1b;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.warning-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #451a03;
    margin-bottom: 20px;
}

.warning-text strong {
    color: #b91c1c;
}

.risk-points {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #fca5a5;
}

.risk-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

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

.risk-icon {
    font-size: 1.2rem;
    color: #f97316;
    flex-shrink: 0;
    margin-top: 2px;
}

.risk-item span:not(.risk-icon) {
    color: #1f2937;
    line-height: 1.5;
}

.risk-item strong {
    color: #7c2d12;
}

.warning-conclusion {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #7c2d12;
    font-style: italic;
    margin-top: 20px;
}

/* Executive CTA Section */
.executive-cta {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: white;
}

.executive-cta h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

.cta-text strong {
    color: white;
    font-weight: 600;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    color: white;
    font-size: 0.9rem;
}

.stat-label {
    opacity: 0.8;
    margin-right: 8px;
}

.stat-value {
    font-weight: 600;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .critical-insights-grid,
    .perspectives-carousel,
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        font-size: 1.5rem;
    }
    
    .maturity-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .shadow-ai-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .shadow-stat {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .collaboration-text {
        border: none;
        padding: 0;
    }
}