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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0e27;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

.presentation-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

/* Edit Mode Styles */
[contenteditable="true"] {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

[contenteditable="true"]:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

[contenteditable="true"]:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.edit-mode-active [contenteditable="false"] {
    contenteditable: true;
    cursor: text;
}

.edit-mode-active .slide {
    border: 3px solid rgba(102, 126, 234, 0.5);
}

.edit-mode-active .save-button {
    display: block;
}

/* Edit Toggle Button */
.edit-toggle {
    position: fixed;
    top: 30px;
    left: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    z-index: 1002;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.edit-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.edit-toggle.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

/* Dashboard Navigation Button */
.dashboard-nav-btn {
    position: fixed;
    bottom: 10px;
    left: 30px;
    background: #6c63ff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dashboard-nav-btn:hover {
    background: #5a52d5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

/* Chat Interface */
.chat-container {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 400px;
    height: 500px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transform: translateX(420px);
    transition: all 0.3s ease;
}

.chat-container.open {
    transform: translateX(0);
}

.chat-toggle {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    z-index: 1003;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px 18px 0 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9em;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease;
}

.message.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    align-self: flex-end;
    color: white;
}

.message.ai {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.system {
    background: rgba(255, 165, 0, 0.2);
    align-self: center;
    font-style: italic;
    text-align: center;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9em;
    resize: none;
    min-height: 40px;
    max-height: 100px;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s;
}

.chat-btn:hover {
    transform: scale(1.05);
}

.chat-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    max-width: 80%;
    align-self: flex-start;
}

.typing-indicator.show {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Slide-specific backgrounds */
.slide-title { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.slide-metrics { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.slide-insight { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.slide-competitive { background: linear-gradient(135deg, #2d5a27 0%, #1e3f1c 100%); }
.slide-geographic { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.slide-capacity { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.slide-recommendations { background: linear-gradient(135deg, #4a6b8a 0%, #2c3e50 100%); }
.slide-strengths { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

/* Slide 6 (Core Strengths) - White text for readability */
.slide-strengths h2,
.slide-strengths h3,
.slide-strengths li {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-strengths .metric-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.slide-improvements { background: linear-gradient(135deg, #8b1538 0%, #4a0e2d 100%); }
.slide-dashboard { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); }

h1 {
    font-size: 3.5em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInDown 0.8s ease-out;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    margin-bottom: 15px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 30px;
    max-width: 900px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s ease-out;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.metric-value {
    font-size: 5em;
    font-weight: bold;
    margin: 15px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.metric-label {
    font-size: 1em;
    color: #ffffff;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.insight-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin: 15px 0;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 0.6s ease-out;
}

.insight-box ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.insight-box li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1em;
    line-height: 1.6;
}

.insight-box li:last-child {
    border-bottom: none;
}

.navigation {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    font-weight: 600;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.nav-btn:active {
    transform: scale(0.95);
}

.progress-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s ease;
    border-radius: 2px;
}

.slide-counter {
    position: fixed;
    top: 30px;
    right: 180px;
    font-size: 1.2em;
    opacity: 0.8;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

.save-button {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    display: none; /* Hidden by default */
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    z-index: 1002;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.save-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
}

.chart-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin: 15px 0;
    width: 100%;
    backdrop-filter: blur(10px);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

th {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.highlight {
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Save indicator */
.save-indicator {
    position: fixed;
    top: 80px;
    left: 30px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    z-index: 1003;
    opacity: 0;
    transition: all 0.3s;
}

.save-indicator.show {
    opacity: 1;
}

/* Dashboard Styles */
.fullscreen-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    z-index: 2000;
    padding: 40px;
    overflow-y: auto;
    color: #ffffff;
}

.fullscreen-dashboard h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.fullscreen-dashboard.active {
    display: block !important;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    min-height: 150px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.dashboard-card.wide {
    grid-column: span 3;
}

.dashboard-card h4 {
    margin-bottom: 10px;
    font-size: 1em;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.slide-indicator {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.8em;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 10px;
}

.mini-metrics {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mini-metric {
    text-align: center;
    flex: 1;
}

.mini-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #4CAF50;
}

.mini-label {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 5px;
}

.bar-comparison {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 80px;
    margin: 5px 0;
}

.bar-item {
    text-align: center;
    flex: 1;
}

.bar {
    width: 30px;
    margin: 0 auto 5px;
    border-radius: 4px 4px 0 0;
}

.bar-item span {
    font-size: 1.1em;
    line-height: 1.3;
    font-weight: bold;
}

.mini-table {
    width: 100%;
}

.mini-table table {
    width: 100%;
    font-size: 0.85em;
    margin: 0;
}

.mini-table td {
    padding: 6px 8px;
    font-size: 0.85em;
}

.highlight-cell {
    background: rgba(76, 175, 80, 0.3);
    border-radius: 4px;
}

.warning-cell {
    background: rgba(244, 67, 54, 0.3);
    border-radius: 4px;
}

.mini-insight {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.insight-icon {
    font-size: 1.2em;
}

.insight-text {
    font-size: 0.9em;
}

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85em;
}

.mini-list.success div {
    color: #4CAF50;
}

.mini-list.warning div {
    color: #ff9800;
}

.mini-hiring {
    text-align: center;
}

.hiring-item {
    margin-bottom: 10px;
}

.hiring-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #2196F3;
}

.hiring-role {
    font-size: 0.9em;
    opacity: 0.8;
}

.hiring-breakdown {
    font-size: 0.8em;
    text-align: left;
}

.mini-competitive {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-item span {
    font-size: 0.8em;
    display: block;
    margin-bottom: 4px;
}

.win-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.win-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.win-fill.warning {
    background: #ff9800;
}

.win-bar span {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.mini-timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85em;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.timeline-item.urgent {
    background: rgba(244, 67, 54, 0.3);
}

.timeline-item.medium {
    background: rgba(255, 152, 0, 0.3);
}

.revenue-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.revenue-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.revenue-label {
    font-size: 1.2em;
}

.revenue-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50;
}

.revenue-breakdown {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .slide {
        width: 95%;
        padding: 20px;
        height: 90vh;
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    .metric-value { font-size: 2em; }
    .metric-grid { grid-template-columns: 1fr; gap: 15px; }

    .chat-container {
        width: 90%;
        right: 5%;
        transform: translateY(520px);
    }

    .chat-container.open {
        transform: translateY(0);
    }

    .chat-toggle {
        right: 50%;
        transform: translateX(50%);
        bottom: 30px;
    }

    .slide-counter {
        right: 30px;
        font-size: 1em;
        padding: 8px 15px;
    }

    .edit-toggle {
        left: 30px;
        font-size: 0.9em;
        padding: 10px 16px;
    }

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

    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    table {
        font-size: 0.8em;
    }

    th, td {
        padding: 8px;
    }
}