/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.impress-enabled .step {
    margin: 0;
    opacity: 0.3;
    transition: opacity 1s;
}

.impress-enabled .step.active {
    opacity: 1;
}

/* Slide styles */
.step {
    position: relative;
    width: 1000px;
    max-height: 90vh;
    padding: 40px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.step::-webkit-scrollbar {
    width: 8px;
}

.step::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.step::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.step::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.slide-content {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

.slide-content h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #764ba2;
}

.slide-content h3 {
    font-size: 1.5em;
    margin: 15px 0;
    color: #333;
}

.subtitle {
    font-size: 1.3em;
    color: #666;
    margin: 30px 0;
}

.navigation-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: 0.9em;
}

/* Architecture diagram */
.architecture-diagram {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 50px 0;
    flex-wrap: wrap;
    gap: 30px;
}

.arch-component {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.arch-component:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #667eea;
}

.arch-component:active {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.arch-component i {
    font-size: 4em;
    margin-bottom: 15px;
    color: #667eea;
}

.arch-component.frontend i {
    color: #4facfe;
}

.arch-component.backend i {
    color: #43e97b;
}

.arch-component.database i {
    color: #fa709a;
}

.arch-component.oauth i {
    color: #f093fb;
}

.arch-component.workers i {
    color: #fa709a;
}

.arch-component.prefect i {
    color: #43e97b;
}

.arch-component.server i {
    color: #667eea;
}

.arch-component.standards i {
    color: #ffd700;
}

.arch-note {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Topic list */
.topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.topic-item {
    padding: 25px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.topic-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.topic-item i {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.topic-item h3 {
    color: white;
    margin: 10px 0;
}

.topic-item p {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Architecture flow */
.architecture-flow {
    margin: 50px 0;
}

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

.flow-box {
    padding: 25px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    min-width: 150px;
}

.flow-box i {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.flow-arrow {
    font-size: 2em;
    color: #667eea;
}

.flow-box.user {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.flow-box.frontend-box {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.flow-box.backend-box {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.flow-box.db-box {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Challenges */
.challenges-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.challenge-item {
    padding: 30px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    border-left: 5px solid #f5576c;
}

.challenge-item i {
    font-size: 2.5em;
    color: #f5576c;
    margin-bottom: 15px;
}

.challenge-item h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Demo */
.demo-content {
    margin: 40px 0;
}

.demo-placeholder {
    padding: 60px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 15px;
    border: 3px dashed #667eea;
}

.demo-placeholder i {
    font-size: 5em;
    color: #667eea;
    margin-bottom: 20px;
}

.demo-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Discussion */
.discussion-area {
    margin: 40px 0;
    text-align: left;
}

.discussion-topic {
    padding: 30px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
}

.discussion-topic h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.discussion-list {
    list-style: none;
    padding-left: 0;
}

.discussion-list li {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

.discussion-list li:hover {
    transform: translateX(10px);
}

/* Navigation controls */
#nav-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

#slide-counter {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1em;
    min-width: 60px;
    text-align: center;
}

/* Internal navigation controls */

/* Progress bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1001;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s;
}

/* Gate Page Styles */
.gate-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
}

/* Navigation visibility is managed by JavaScript */

.gate-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gate-header {
    margin-bottom: 40px;
}

.gate-header i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.gate-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.gate-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

.countdown-container {
    margin: 40px 0;
}

.countdown-container h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    opacity: 0.95;
}

.official-time {
    font-size: 0.85em;
    opacity: 0.75;
    margin: 0 0 25px 0;
    font-style: italic;
}

.official-time i {
    margin-right: 5px;
    font-size: 0.9em;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    min-width: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.countdown-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.password-container {
    margin-top: 40px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.password-input-group {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.password-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
}

.password-input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    outline: none;
    transition: all 0.3s;
}

.password-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.password-input-group input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.password-submit {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.password-submit:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.password-submit:active {
    transform: translateY(0);
}

.password-error {
    color: #ff6b6b;
    font-size: 0.9em;
    margin: 0;
    min-height: 20px;
    display: none;
}

@media (max-width: 768px) {
    .gate-content {
        padding: 30px 20px;
    }

    .gate-header h1 {
        font-size: 2em;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 80px;
        padding: 15px;
    }

    .countdown-number {
        font-size: 2em;
    }
}

/* Fallback message */
.fallback-message {
    font-family: sans-serif;
    line-height: 1.5;
    width: 780px;
    padding: 10px 10px 0;
    margin: 20px auto;
    border: 1px solid #E4C652;
    border-radius: 10px;
    background: #EEDC94;
    display: none; /* Hidden by default, shown only if impress is not supported */
}

.impress-not-supported .fallback-message {
    display: block;
}

.fallback-message p {
    margin-bottom: 10px;
}

.impress-not-supported .step {
    position: relative;
    margin: 20px auto;
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .step {
        width: 90%;
        padding: 30px;
    }
    
    .slide-content h1 {
        font-size: 2.5em;
    }
    
    .architecture-diagram {
        flex-direction: column;
    }
    
    .flow-item {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* Vision & Objective styles */
.vision-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.vision-hero {
    text-align: center;
    margin-bottom: 20px;
}

.vision-time {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.vision-time i {
    font-size: 3em;
    color: #667eea;
}

.time-number {
    font-size: 4em;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.time-unit {
    font-size: 1.5em;
    color: #764ba2;
    font-weight: 600;
}

.vision-subtitle {
    font-size: 1.4em;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

.user-journey {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 700px;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 250, 0.9) 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid #667eea;
}

.journey-step:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.journey-step.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left-color: #43e97b;
}

.journey-step.highlight .journey-content h3,
.journey-step.highlight .journey-content p {
    color: white;
}

.journey-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.journey-step.highlight .journey-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.journey-icon i {
    font-size: 2em;
    color: white;
}

.journey-content {
    flex: 1;
    text-align: left;
}

.journey-content h3 {
    font-size: 1.5em;
    margin: 0 0 8px 0;
    color: #333;
    font-weight: 600;
}

.journey-content p {
    font-size: 1.1em;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.journey-arrow {
    color: #667eea;
    font-size: 1.5em;
    margin: 5px 0;
}

.vision-promise {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border: 2px solid #43e97b;
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    margin-top: 20px;
}

.vision-promise i {
    font-size: 2em;
    color: #43e97b;
    margin-bottom: 10px;
    display: block;
}

.vision-promise p {
    font-size: 1.2em;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.vision-promise strong {
    color: #43e97b;
    font-weight: 700;
}

/* Standards & Normes styles */
.standards-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.standards-intro {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid #667eea;
}

.standards-intro p {
    font-size: 1.2em;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.standards-intro strong {
    color: #667eea;
}

.standards-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.standards-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.frontend-standards {
    border-left-color: #4facfe;
}

.backend-standards {
    border-left-color: #43e97b;
}

.backend-standards .standards-recap {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border-color: #43e97b;
}

.backend-standards .standards-recap h4,
.backend-standards .standards-recap h4 i {
    color: #43e97b;
}

.backend-standards .recap-item {
    border-left-color: #43e97b;
}

.backend-standards .recap-item i {
    color: #43e97b;
}

.backend-standards .recap-item:hover {
    box-shadow: 0 5px 15px rgba(67, 233, 123, 0.2);
}

.backend-standards .recap-item code {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
}

.backend-standards .standards-rules {
    border-left-color: #43e97b;
}

.backend-standards .standards-rules h4,
.backend-standards .standards-rules h4 i {
    color: #43e97b;
}

.backend-standards .standards-rules ul li:before {
    color: #43e97b;
}

.backend-standards .standards-rules code {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
}

.db-standards {
    border-left-color: #fa709a;
}

.db-standards .standards-recap {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
    border-color: #fa709a;
}

.db-standards .standards-recap h4,
.db-standards .standards-recap h4 i {
    color: #fa709a;
}

.db-standards .recap-item {
    border-left-color: #fa709a;
}

.db-standards .recap-item i {
    color: #fa709a;
}

.db-standards .recap-item:hover {
    box-shadow: 0 5px 15px rgba(250, 112, 154, 0.2);
}

.db-standards .recap-item code {
    background: rgba(250, 112, 154, 0.1);
    color: #fa709a;
}

.db-standards .standards-rules {
    border-left-color: #fa709a;
}

.db-standards .standards-rules h4,
.db-standards .standards-rules h4 i {
    color: #fa709a;
}

.db-standards .standards-rules ul li:before {
    color: #fa709a;
}

.db-standards .standards-rules code {
    background: rgba(250, 112, 154, 0.1);
    color: #fa709a;
}

.db-standards .examples-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.standards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.standards-header i {
    font-size: 2em;
    color: #667eea;
}

.frontend-standards .standards-header i {
    color: #4facfe;
}

.backend-standards .standards-header i {
    color: #43e97b;
}

.db-standards .standards-header i {
    color: #fa709a;
}

.standards-header h3 {
    font-size: 1.8em;
    margin: 0;
    color: #333;
    font-weight: 700;
    flex: 1;
}

.examples-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.examples-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.examples-btn i {
    font-size: 0.9em;
}

.frontend-standards .examples-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.backend-standards .examples-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.standards-tools {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.tool-item i {
    font-size: 2em;
    color: #667eea;
    margin-top: 5px;
    flex-shrink: 0;
}

.tool-content {
    flex: 1;
}

.tool-content h4 {
    font-size: 1.4em;
    margin: 0 0 8px 0;
    color: #667eea;
    font-weight: 700;
}

.tool-content p {
    font-size: 1em;
    color: #666;
    margin: 0 0 10px 0;
    font-style: italic;
}

.tool-content ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    list-style-type: disc;
}

.tool-content li {
    font-size: 0.95em;
    color: #555;
    margin: 5px 0;
    line-height: 1.5;
}

.tool-content code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.standards-rules {
    margin-top: 25px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid #4facfe;
}

.standards-rules h4 {
    color: #4facfe;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.standards-rules h4 i {
    color: #4facfe;
}

.standards-rules ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.standards-rules ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

.standards-rules ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #4facfe;
    font-weight: bold;
}

.standards-rules strong {
    color: #333;
    font-weight: 700;
}

.standards-rules code {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.standards-recap {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid #4facfe;
}

.standards-recap h4 {
    color: #4facfe;
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.standards-recap h4 i {
    color: #4facfe;
}

.recap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.recap-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border-left: 3px solid #4facfe;
    transition: transform 0.2s, box-shadow 0.2s;
}

.recap-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

.recap-item i {
    font-size: 1.8em;
    color: #4facfe;
    margin-top: 2px;
    flex-shrink: 0;
}

.recap-item strong {
    display: block;
    color: #333;
    font-size: 1em;
    margin-bottom: 5px;
    font-weight: 700;
}

.recap-item p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.recap-item code {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.standards-benefit {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border: 2px solid #43e97b;
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    margin-top: 20px;
}

.standards-benefit i {
    font-size: 2em;
    color: #43e97b;
    margin-bottom: 10px;
    display: block;
}

.standards-benefit p {
    font-size: 1.2em;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.standards-benefit strong {
    color: #43e97b;
    font-weight: 700;
}

.vision-principle {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 25px 30px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.principle-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.principle-icon i {
    font-size: 1.8em;
    color: white;
}

.principle-content {
    flex: 1;
    text-align: left;
}

.principle-content h3 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    color: #667eea;
    font-weight: 700;
}

.principle-content p {
    font-size: 1.1em;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Module content styles */
.module-content {
    text-align: left;
    margin: 20px 0;
}

.module-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.module-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin: 10px 0;
    background: #f9f9f9;
    border-radius: 8px;
}

.feature-item i {
    color: #43e97b;
    font-size: 1.2em;
}

.module-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    font-size: 0.95em;
}

/* Backend styles */
.backend-stack {
    margin: 20px 0;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.tech-badge[data-tech] {
    cursor: pointer;
}

.tech-badge[data-tech]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.tech-badge[data-tech]:active {
    transform: translateY(0);
}

.tech-badge-active {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    box-shadow: 0 0 20px rgba(67, 233, 123, 0.6) !important;
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(67, 233, 123, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(67, 233, 123, 0.8);
    }
}

.backend-responsibilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.responsibility-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

.responsibility-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.responsibility-section ul {
    list-style: none;
    padding-left: 0;
}

.responsibility-section ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.responsibility-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.responsibility-section h4 i.fa-check-circle {
    color: #43e97b;
}

.responsibility-section h4 i.fa-times-circle {
    color: #fa709a;
}

/* UV section styles */
.backend-uv {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.backend-uv h4 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.backend-uv h4 i {
    color: #667eea;
}

.uv-explanation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.uv-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 3px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.uv-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.uv-item i {
    color: #667eea;
    font-size: 1.5em;
    margin-top: 3px;
    flex-shrink: 0;
}

.uv-item strong {
    display: block;
    color: #333;
    font-size: 1em;
    margin-bottom: 8px;
    font-weight: 700;
}

.uv-item p {
    margin: 0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
}

.uv-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(67, 233, 123, 0.1);
    border-radius: 10px;
    border: 2px solid #43e97b;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

.uv-note i {
    color: #43e97b;
    font-size: 1.3em;
    margin-top: 2px;
    flex-shrink: 0;
}

.uv-note strong {
    color: #43e97b;
    font-weight: 700;
}

/* Workers styles */
.workers-stack {
    margin: 20px 0;
    text-align: center;
}

.workers-roles {
    margin: 20px 0;
}

.workers-roles ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.workers-roles ul li {
    padding: 10px;
    margin: 8px 0;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.workers-structure {
    margin: 20px 0;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    text-align: left;
    overflow-x: auto;
    margin: 15px 0;
}

.workers-db {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

/* Databases styles */
.databases-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.db-box {
    padding: 25px;
    border-radius: 15px;
    text-align: left;
}

.etl-db {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.app-db {
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
}

.db-subtitle {
    font-size: 1.1em;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.db-schemas {
    margin: 20px 0;
}

.db-schemas ul {
    list-style: none;
    padding-left: 0;
}

.db-schemas ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.db-schemas ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
}

.db-concept {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.95em;
}

/* Multi-tenant styles */
.multitenant-content {
    text-align: left;
    margin: 20px 0;
}

.multitenant-key {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.multitenant-key h3 {
    color: white;
    margin-bottom: 10px;
}

.multitenant-key code {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
}

.multitenant-rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rule-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    text-align: center;
    border-top: 4px solid #667eea;
}

.rule-item i {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.rule-item h4 {
    margin: 15px 0 10px 0;
    color: #333;
}

/* Frontend styles */
.frontend-content {
    text-align: left;
    margin: 20px 0;
}

.frontend-stack {
    margin: 20px 0;
}

.frontend-structure {
    margin: 20px 0;
}

.frontend-architecture {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.frontend-architecture h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.architecture-explanation {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.arch-principle,
.arch-shared {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.arch-principle i,
.arch-shared i {
    color: #667eea;
    font-size: 1.8em;
    margin-top: 3px;
    flex-shrink: 0;
}

.arch-principle strong,
.arch-shared strong {
    display: block;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 700;
}

.arch-principle p,
.arch-shared p {
    margin: 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

.arch-shared {
    border-left-color: #43e97b;
}

.arch-shared i {
    color: #43e97b;
}

.arch-shared code {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.arch-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(67, 233, 123, 0.1);
    border-radius: 8px;
    border: 2px solid #43e97b;
}

.arch-benefit i {
    color: #43e97b;
    font-size: 1.5em;
    flex-shrink: 0;
}

.arch-benefit p {
    margin: 0;
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
}

.arch-benefit strong {
    color: #43e97b;
    font-weight: 700;
}

.frontend-auth {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

.frontend-auth ul {
    list-style: none;
    padding-left: 0;
}

.frontend-auth ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.frontend-auth ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #43e97b;
    font-weight: bold;
}

/* Type Consistency styles */
.type-consistency-content {
    text-align: left;
    margin: 15px 0;
}

.consistency-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1em;
}

.type-flow {
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 10px;
}

.flow-step-type {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: fit-content;
    padding: 15px 0;
}

.flow-box-type {
    min-width: 180px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    color: white;
    font-size: 0.9em;
}

.db-box-type {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.sqlalchemy-box-type {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.pydantic-box-type {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.frontend-box-type {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.flow-box-type i {
    font-size: 2em;
    margin-bottom: 10px;
}

.flow-box-type h4 {
    margin: 8px 0;
    font-size: 1.1em;
}

.flow-box-type p {
    font-size: 0.85em;
    margin-bottom: 8px;
    opacity: 0.9;
}

.type-example {
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.75em;
    text-align: left;
}

.pydantic-box-type .type-example {
    background: rgba(0, 0, 0, 0.1);
}

.type-example code {
    display: block;
    padding: 3px 0;
}

.flow-arrow-type {
    font-size: 2em;
    color: #667eea;
    flex-shrink: 0;
}

.consistency-benefits {
    margin: 20px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.benefit-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid #667eea;
    transition: transform 0.2s;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 10px;
}

.benefit-item h4 {
    margin: 8px 0;
    color: #333;
    font-size: 1em;
}

.benefit-item p {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}

.consistency-implementation {
    margin: 20px 0;
}

.impl-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.impl-section {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.impl-section h4 {
    margin-bottom: 12px;
    color: #667eea;
    font-size: 1em;
}

.impl-section ul {
    list-style: none;
    padding-left: 0;
}

.impl-section ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.impl-section ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.consistency-note {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    border-left: 4px solid #ffc107;
    font-size: 0.9em;
}

.consistency-note i {
    color: #ffc107;
    margin-right: 10px;
}

/* Dataflow styles */
.dataflow-content {
    margin: 20px 0;
}

.flow-diagram {
    margin: 30px 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.flow-branches {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    justify-content: center;
    margin: 10px 0;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 250px;
}

.flow-box {
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    min-width: 200px;
    font-weight: 500;
}

.flow-box small {
    display: block;
    font-size: 0.75em;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 400;
}

.flow-arrow-vertical {
    font-size: 2em;
    color: #667eea;
}

.flow-note {
    margin-top: 30px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 10px;
    font-size: 0.95em;
}

/* Infra styles */
.infra-content {
    text-align: left;
    margin: 20px 0;
}

.prefect-why {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.prefect-why h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prefect-why h3 i {
    color: #667eea;
}

.prefect-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.prefect-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 3px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.prefect-benefit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.prefect-benefit i {
    color: #667eea;
    font-size: 1.5em;
    margin-top: 3px;
    flex-shrink: 0;
}

.prefect-benefit strong {
    display: block;
    color: #333;
    font-size: 1em;
    margin-bottom: 8px;
    font-weight: 700;
}

.prefect-benefit p {
    margin: 0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
}

.infra-section {
    margin: 25px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.infra-section h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.infra-section ul {
    list-style: none;
    padding-left: 0;
}

.infra-section ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.infra-section ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Datasources styles */
.datasources-content {
    text-align: left;
    margin: 20px 0;
}

.datasource-section,
.plans-section {
    margin: 25px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 15px;
}

.datasource-section h3,
.plans-section h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.datasource-section code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.note {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 0.95em;
}

/* Table structure styles */
.table-structure {
    margin: 20px 0;
}

.table-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 3px solid #667eea;
    font-size: 0.95em;
}

.column-item i {
    color: #667eea;
    font-size: 1.1em;
    width: 20px;
    flex-shrink: 0;
}

.column-item code {
    background: transparent;
    color: #333;
    padding: 0;
    font-weight: 600;
}

.column-note {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-left: 5px;
}

/* Billing tables styles */
.billing-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.billing-table-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(67, 233, 123, 0.1);
    border-radius: 10px;
    border-left: 4px solid #43e97b;
    transition: transform 0.2s, box-shadow 0.2s;
}

.billing-table-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 233, 123, 0.2);
}

.billing-table-item i {
    color: #43e97b;
    font-size: 1.5em;
    margin-top: 2px;
    flex-shrink: 0;
}

.billing-table-item strong {
    display: block;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 700;
}

.billing-table-item p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.plan-details {
    margin-top: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.plan-details ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.plan-details li {
    margin: 8px 0;
    color: #555;
    line-height: 1.5;
}

/* Server styles */
.server-content {
    text-align: left;
    margin: 15px 0;
}

.server-role {
    margin: 20px 0;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.role-item {
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid #667eea;
}

.role-item i {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.role-item h4 {
    margin: 10px 0;
    color: #333;
}

.role-item p {
    font-size: 0.9em;
    color: #666;
}

.server-specs {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.spec-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.server-components {
    margin: 20px 0;
}

.components-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.component-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

.component-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.component-item i {
    font-size: 2em;
    color: #667eea;
    min-width: 50px;
    text-align: center;
}

.component-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 1.1em;
}

.component-item p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.server-security,
.server-future {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
}

.server-security {
    border-left: 4px solid #43e97b;
}

.server-future {
    border-left: 4px solid #fa709a;
}

.server-security h3,
.server-future h3 {
    margin-bottom: 15px;
    color: #333;
}

.server-security ul,
.server-future ul {
    list-style: none;
    padding-left: 0;
}

.server-security ul li,
.server-future ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.server-security ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #43e97b;
    font-weight: bold;
}

.server-future ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #fa709a;
    font-weight: bold;
}

/* Conclusion styles */
.conclusion-content {
    margin: 20px 0;
}

.conclusion-hero {
    margin-bottom: 30px;
    text-align: center;
}

.conclusion-vision {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 3px solid #667eea;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}

.conclusion-vision i {
    font-size: 3.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.conclusion-vision h2 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 700;
}

.conclusion-vision p {
    font-size: 1.3em;
    color: #333;
    margin: 10px 0;
    line-height: 1.6;
}

.conclusion-vision strong {
    color: #667eea;
    font-weight: 700;
}

.vision-note {
    font-size: 1em !important;
    color: #666 !important;
    font-style: italic;
    margin-top: 15px !important;
}

.conclusion-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.conclusion-item {
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #667eea;
}

.conclusion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.conclusion-item i {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.conclusion-item h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 700;
}

.conclusion-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.conclusion-item ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

.conclusion-item ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #43e97b;
    font-weight: bold;
    font-size: 1.1em;
}

.conclusion-final {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border: 3px solid #43e97b;
    border-radius: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.conclusion-final i {
    font-size: 2.5em;
    color: #43e97b;
    flex-shrink: 0;
}

.conclusion-final p {
    margin: 0;
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
}

.conclusion-final strong {
    color: #43e97b;
    font-weight: 700;
}

/* Fun Slide Styles */
.fun-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.fun-main {
    margin-bottom: 40px;
}

.fun-icon {
    font-size: 5em;
    color: #667eea;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fun-main h2 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 700;
}

.fun-credits-container {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fun-credits-line {
    font-size: 1.8em;
    color: #333;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    text-decoration: none;
    opacity: 0;
}

.fun-slide-active .fun-credits-line {
    animation: fadeInNormal 0.5s ease-in forwards, strikeThrough 0.3s ease-in 2s forwards;
}

@keyframes fadeInNormal {
    to {
        opacity: 1;
    }
}

@keyframes strikeThrough {
    to {
        text-decoration: line-through;
        color: #999;
        opacity: 0.6;
    }
}

.fun-credits-line.correction {
    font-size: 1.5em;
    color: #fa709a;
    font-style: italic;
    text-decoration: none;
    opacity: 0;
    font-weight: 500;
}

.fun-slide-active .fun-credits-line.correction {
    animation: fadeInCorrection 0.5s ease-in 2s forwards;
}

@keyframes fadeInCorrection {
    to {
        opacity: 1;
    }
}

.fun-credits-line.final {
    font-size: 2em;
    color: #333;
    text-decoration: none;
    opacity: 0;
    font-weight: 600;
    margin-top: 10px;
}

.fun-slide-active .fun-credits-line.final {
    animation: fadeInFinal 0.5s ease-in 3.5s forwards;
}

@keyframes fadeInFinal {
    to {
        opacity: 1;
    }
}

.fun-credits-line strong {
    color: #667eea;
    font-weight: 700;
}

.fun-credits-line.final strong {
    color: #667eea;
    font-weight: 700;
}

.fun-facts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
    max-width: 700px;
    width: 100%;
}

.fun-fact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fun-fact:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.fun-fact i {
    font-size: 2em;
    color: #667eea;
    flex-shrink: 0;
}

.fun-fact p {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
}

.fun-fact strong {
    color: #667eea;
    font-weight: 700;
}

.fun-fact em {
    color: #764ba2;
    font-style: italic;
}

.fun-footer {
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid #fa709a;
}

.fun-footer p {
    margin: 0;
    font-size: 1.2em;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fun-note {
    margin-top: 15px !important;
    font-size: 0.9em !important;
    color: #666 !important;
    font-style: italic;
    display: block !important;
}

/* Tech Modal Styles */
.tech-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tech-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    max-height: 85vh;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: slideUp 0.3s;
}

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

.tech-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.tech-modal-close:hover {
    color: #667eea;
}

#tech-modal-body {
    padding-right: 20px;
}

#tech-modal-body h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 2em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.tech-modal-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.tech-modal-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-modal-section h3 i {
    font-size: 1.2em;
}

.tech-modal-section p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.tech-modal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tech-modal-section ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #333;
    line-height: 1.6;
}

.tech-modal-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #43e97b;
    font-weight: bold;
    font-size: 1.2em;
}

.tech-modal-content::-webkit-scrollbar {
    width: 8px;
}

.tech-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.tech-modal-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.tech-modal-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Examples Modal Styles */
.examples-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.examples-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    max-height: 85vh;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: slideUp 0.3s;
}

.examples-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.examples-modal-close:hover {
    color: #667eea;
}

#examples-modal-body {
    padding-right: 20px;
}

#examples-modal-body h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 2em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.example-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.example-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.example-section h3 i {
    color: #43e97b;
    font-size: 1.1em;
}

.example-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.example-good,
.example-bad {
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.example-good {
    background: rgba(67, 233, 123, 0.1);
    border: 2px solid #43e97b;
}

.example-bad {
    background: rgba(250, 112, 154, 0.1);
    border: 2px solid #fa709a;
}

.example-good h4,
.example-bad h4 {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-good h4 {
    color: #43e97b;
}

.example-bad h4 {
    color: #fa709a;
}

.example-good pre,
.example-bad pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 0.85em;
    line-height: 1.6;
}

.example-good code,
.example-bad code {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    color: #333;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.example-bad code {
    color: #666;
}

.examples-modal-content::-webkit-scrollbar {
    width: 8px;
}

.examples-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.examples-modal-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.examples-modal-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2em;
    }
    
    .topic-list,
    .challenges-list {
        grid-template-columns: 1fr;
    }
    
    .backend-responsibilities,
    .databases-content,
    .multitenant-rules,
    .conclusion-points,
    .role-grid,
    .specs-grid,
    .benefits-grid,
    .impl-sections {
        grid-template-columns: 1fr;
    }
    
    .flow-step-type {
        flex-direction: column;
    }
    
    .flow-arrow-type {
        transform: rotate(90deg);
    }
    
    #nav-controls {
        padding: 10px 20px;
        gap: 10px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .code-block {
        font-size: 0.7em;
        padding: 15px;
    }
    
    .tech-modal-content {
        padding: 30px 20px;
        max-height: 90vh;
    }
    
    #tech-modal-body h2 {
        font-size: 1.5em;
    }
    
    .tech-modal-section {
        padding: 15px;
    }
    
    
}

