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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

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

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation tabs */
.nav-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.nav-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.nav-tab.active {
    color: #667eea;
    background: white;
    border-bottom-color: #667eea;
}

/* Content area */
.content {
    padding: 30px;
}

.tab-content {
    display: none;
}

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

/* Steps */
.step {
    background: #f8f9ff;
    border: 1px solid #e3e7fd;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
    margin: 20px 0 10px 0;
}

.step h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 16px 0 8px 0;
}

.step p {
    color: #718096;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Lists */
.step ol, .step ul {
    margin: 15px 0 15px 20px;
    color: #718096;
}

.step li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.step li:last-child {
    margin-bottom: 0;
}

/* Code blocks */
.code-block {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Inline code */
code {
    background: #edf2f7;
    color: #667eea;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.footer-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-note p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tab {
        border-bottom: 1px solid #e9ecef;
        border-right: none;
    }
    
    .nav-tab.active {
        border-bottom-color: #667eea;
        border-left: 3px solid #667eea;
    }
    
    .content {
        padding: 20px;
    }
    
    .step {
        padding: 20px;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .code-block {
        padding: 15px;
        font-size: 13px;
    }
    
    .footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .step h2 {
        font-size: 1.3rem;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .step {
        padding: 15px;
    }
    
    .content {
        padding: 15px;
    }
}

/* Animation for tab switching */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-tab:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .header, .footer {
        background: #f8f9fa !important;
        color: black !important;
    }
    
    .nav-tabs {
        display: none;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .code-block {
        background: #f8f9fa !important;
        color: black !important;
        border: 1px solid #ccc;
    }
}