/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.presentation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #61dafb 0%, #21759b 100%);
    border-radius: 10px;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Navigation Styles */
.slide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.slide-nav button {
    background: #61dafb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(97, 218, 251, 0.3);
}

.slide-nav button:hover {
    background: #21759b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 218, 251, 0.4);
}

.slide-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#slideCounter {
    font-size: 1.1rem;
    font-weight: bold;
    color: #666;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Slide Container */
.slide-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    position: relative;
}

.slide h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #61dafb, #21759b);
    border-radius: 2px;
}

/* Introduction Slide Styles */
.intro-content {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.definition-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.definition-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #61dafb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.definition-card h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.definition-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.analogy-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #48bb78;
}

.analogy-card h3 {
    color: #2f855a;
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

.analogy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.analogy-step {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 150px;
}

.analogy-step h4 {
    color: #2c3e50;
    margin: 10px 0 5px;
    font-size: 1rem;
}

.analogy-step p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.arrow {
    font-size: 2rem;
    color: #48bb78;
    font-weight: bold;
}

.key-concepts {
    background: #f0fff4;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #48bb78;
}

.key-concepts h3 {
    color: #2f855a;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.concept-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #48bb78;
}

.concept-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.concept-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.concept-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Process Slide Styles */
.process-content {
    margin-top: 30px;
}

.process-overview {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #61dafb;
    margin-bottom: 40px;
}

.process-overview h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.process-flow {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border-left: 5px solid #61dafb;
}

.step-number {
    background: #61dafb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-details {
    flex: 1;
}

.step-details h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.step-details p {
    color: #666;
    margin-bottom: 15px;
}

.process-arrow {
    text-align: center;
    font-size: 2rem;
    color: #61dafb;
    margin: 10px 0;
}

.code-snippet {
    background: #2d3748;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin: 10px 0;
}

.code-snippet pre {
    color: #e2e8f0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.vdom-visual {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #61dafb;
}

.tree-node {
    background: #e2e8f0;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    border-left: 4px solid #61dafb;
    font-family: monospace;
    font-size: 0.9rem;
}

.tree-node .tree-node {
    margin-left: 20px;
    border-left-color: #48bb78;
}

.diff-comparison {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.diff-old {
    background: #fed7d7;
    color: #c53030;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
}

.diff-new {
    background: #c6f6d5;
    color: #22543d;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
}

.diff-vs {
    color: #666;
    font-weight: bold;
}

.instructions-list {
    background: #f0fff4;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
}

.instruction {
    font-family: monospace;
    color: #22543d;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 5px 0;
}

.dom-update {
    text-align: center;
    padding: 15px;
    background: #f0fff4;
    border-radius: 8px;
}

.dom-operation {
    color: #22543d;
    font-weight: bold;
    font-size: 1.1rem;
}

.interactive-demo {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #bee3f8;
}

.interactive-demo h3 {
    color: #2b6cb0;
    margin-bottom: 25px;
    text-align: center;
}

.demo-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.demo-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.demo-controls button {
    background: #61dafb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.demo-controls button:hover {
    background: #21759b;
}

.demo-visualization {
    text-align: center;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #61dafb;
    color: white;
    transform: scale(1.1);
}

.step-dot.completed {
    background: #48bb78;
    color: white;
}

.process-status {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #61dafb;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Rules Slide Styles */
.rules-content {
    margin-top: 30px;
}

.rules-overview {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #61dafb;
    margin-bottom: 40px;
}

.rules-overview h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.rules-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.rule-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-top: 5px solid #61dafb;
}

.rule-number {
    background: #61dafb;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 20px auto;
    flex-shrink: 0;
}

.rule-content {
    padding: 0 30px 30px;
}

.rule-content h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.rule-content>p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.rule-example {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #61dafb;
}

.example-before,
.example-after,
.example-result {
    margin-bottom: 15px;
}

.example-before h5,
.example-after h5,
.example-result h5 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.example-before code,
.example-after code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.result-text {
    background: #f0fff4;
    color: #22543d;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
}

.interactive-rules-demo {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #bee3f8;
}

.interactive-rules-demo h3 {
    color: #2b6cb0;
    margin-bottom: 25px;
    text-align: center;
}

.rules-demo-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.rules-visualization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}

.before-state,
.after-state {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.before-state h4,
.after-state h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.tree-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    min-height: 150px;
}

.rule-explanation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #61dafb;
}

/* Keys Slide Styles */
.keys-content {
    margin-top: 30px;
}

.keys-importance {
    background: #f0fff4;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #48bb78;
    margin-bottom: 30px;
}

.keys-importance h3 {
    color: #2f855a;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.keys-importance p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.keys-examples {
    margin-bottom: 40px;
}

.good-bad-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.bad-example {
    background: #fff5f5;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #e53e3e;
}

.good-example {
    background: #f0fff4;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #48bb78;
}

.bad-example h4 {
    color: #c53030;
    margin-bottom: 15px;
}

.good-example h4 {
    color: #22543d;
    margin-bottom: 15px;
}

.code-block {
    background: #2d3748;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.code-block pre {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.problems-list,
.benefits-list {
    margin-top: 15px;
}

.problems-list h5 {
    color: #c53030;
    margin-bottom: 10px;
}

.benefits-list h5 {
    color: #22543d;
    margin-bottom: 10px;
}

.problems-list ul,
.benefits-list ul {
    list-style: none;
    padding-left: 0;
}

.problems-list li,
.benefits-list li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.problems-list li::before {
    content: '❌';
    position: absolute;
    left: 0;
}

.benefits-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

.keys-interactive-demo {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #61dafb;
}

.keys-interactive-demo h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.keys-demo-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.demo-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
}

.tab-btn {
    background: #e2e8f0;
    color: #2c3e50;
    border: none;
    padding: 12px 24px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #61dafb;
    color: white;
}

.tab-content {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 6px 6px 6px;
}

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

.tab-content h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.demo-list {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    min-height: 200px;
    margin: 15px 0;
}

.demo-list-item {
    background: #e2e8f0;
    padding: 10px;
    margin: 5px 0;
    border-radius: 6px;
    border-left: 4px solid #61dafb;
    font-family: monospace;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-list-item.highlighting {
    background: #faf089;
    transform: scale(1.02);
}

.performance-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

.stat {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comparison-results {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #61dafb;
    margin-top: 25px;
}

.comparison-results h4 {
    color: #2b6cb0;
    margin-bottom: 15px;
}

.comparison-chart {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* Lifecycle Slide Styles */
.lifecycle-content {
    margin-top: 30px;
}

.lifecycle-overview {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #61dafb;
    margin-bottom: 40px;
}

.lifecycle-overview h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.lifecycle-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.lifecycle-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.scenario-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #61dafb;
}

.scenario-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.lifecycle-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.lifecycle-method {
    background: #e2e8f0;
    color: #2c3e50;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    border-left: 4px solid #61dafb;
}

.scenario-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lifecycle-demo {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #bee3f8;
}

.lifecycle-demo h3 {
    color: #2b6cb0;
    margin-bottom: 25px;
    text-align: center;
}

.lifecycle-demo-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.demo-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.component-display,
.lifecycle-log {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.component-display h4,
.lifecycle-log h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.component-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.log-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-family: monospace;
    font-size: 0.9rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.timestamp {
    color: #666;
    margin-right: 10px;
}

.method {
    color: #2c3e50;
}

/* Optimizations Slide Styles */
.optimizations-content {
    margin-top: 30px;
}

.optimizations-overview {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #61dafb;
    margin-bottom: 40px;
}

.optimizations-overview h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.optimizations-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

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

.technique-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #48bb78;
}

.technique-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.technique-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.technique-description p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.code-example {
    background: #2d3748;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
}

.code-example pre {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.optimization-demo {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #bee3f8;
}

.optimization-demo h3 {
    color: #2b6cb0;
    margin-bottom: 25px;
    text-align: center;
}

.optimization-demo-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.component-tree {
    margin-top: 20px;
}

.component-node {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #61dafb;
    margin: 10px 0;
    position: relative;
}

.component-node.parent {
    border-left-color: #e53e3e;
}

.component-node.child {
    margin-left: 30px;
    border-left-color: #48bb78;
}

.component-node.child.optimized {
    border-left-color: #ed8936;
    background: #fffaf0;
}

.render-count {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.performance-comparison {
    background: #f0fff4;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #48bb78;
    margin-top: 25px;
}

.performance-comparison h4 {
    color: #2f855a;
    margin-bottom: 15px;
}

.results-display {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* Pitfalls Slide Styles */
.pitfalls-content {
    margin-top: 30px;
}

.pitfalls-overview {
    background: #fff5f5;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #e53e3e;
    margin-bottom: 40px;
}

.pitfalls-overview h3 {
    color: #c53030;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pitfalls-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.pitfalls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pitfall-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-top: 5px solid #e53e3e;
}

.pitfall-icon {
    font-size: 2.5rem;
    text-align: center;
    margin: 20px 0 10px;
}

.pitfall-card h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.pitfall-content-detail {
    padding: 0 25px 25px;
}

.problem,
.solution {
    margin-bottom: 20px;
}

.problem h5 {
    color: #c53030;
    margin-bottom: 10px;
}

.solution h5 {
    color: #22543d;
    margin-bottom: 10px;
}

.problem p,
.solution p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
}

.pitfalls-demo {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #bee3f8;
}

.pitfalls-demo h3 {
    color: #2b6cb0;
    margin-bottom: 25px;
    text-align: center;
}

.pitfalls-demo-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.demo-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.demo-selector select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.pitfall-visualization {
    margin-top: 25px;
}

.before-after-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.before-section,
.after-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.before-section h4 {
    color: #c53030;
    margin-bottom: 15px;
}

.after-section h4 {
    color: #22543d;
    margin-bottom: 15px;
}

.code-display {
    background: #2d3748;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
}

.code-display pre {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.impact-analysis {
    background: #f0fff4;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #48bb78;
}

.impact-analysis h4 {
    color: #2f855a;
    margin-bottom: 15px;
}

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

/* Summary Slide Styles */
.summary-content {
    margin-top: 30px;
}

.best-practices {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #61dafb;
    margin-bottom: 40px;
}

.best-practices h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.practice-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #61dafb;
}

.practice-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.practice-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.practice-card ul {
    list-style: none;
}

.practice-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.practice-card li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.key-takeaways {
    margin-bottom: 40px;
}

.key-takeaways h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.takeaway-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.takeaway-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 4px solid #61dafb;
}

.takeaway-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.takeaway-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.takeaway-card p {
    color: #555;
    line-height: 1.6;
}

.reconciliation-checklist {
    background: #f0fff4;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #48bb78;
}

.reconciliation-checklist h3 {
    color: #2f855a;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.checklist-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #48bb78;
}

.checklist-section h4 {
    color: #2f855a;
    margin-bottom: 15px;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-items label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.checklist-items label:hover {
    background: #f8f9fa;
}

.checklist-items input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #48bb78;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid #f0f0f0;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .presentation-container {
        max-width: 1000px;
    }

    .definition-section,
    .good-bad-comparison,
    .before-after-comparison,
    .rules-visualization,
    .demo-display {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .presentation-container {
        margin: 10px;
        padding: 15px;
        min-height: calc(100vh - 20px);
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .slide h2 {
        font-size: 2rem;
    }

    .analogy-visual {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .concepts-grid,
    .rules-grid,
    .optimization-techniques,
    .pitfalls-grid,
    .practices-grid,
    .takeaway-cards,
    .checklist-container {
        grid-template-columns: 1fr;
    }

    .lifecycle-scenarios {
        grid-template-columns: 1fr;
    }

    .lifecycle-flow {
        flex-direction: column;
        align-items: flex-start;
    }

    .slide-nav {
        flex-direction: column;
        gap: 15px;
    }

    .slide-nav button {
        width: 100%;
        max-width: 200px;
    }

    .demo-controls {
        flex-direction: column;
    }

    .demo-controls button,
    .demo-controls input,
    .demo-controls select {
        width: 100%;
    }

    .demo-selector {
        flex-direction: column;
    }

    .code-example,
    .code-block,
    .code-display {
        font-size: 0.8rem;
    }

    .demo-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-radius: 6px;
        margin-bottom: 5px;
    }

    .tab-content {
        border-radius: 6px;
    }
}