/* Beautiful Tutorial Styling */
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; 
    line-height: 1.7; 
    color: #2c3e50; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 20px auto;
}

.nav { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; 
    padding: 20px; 
    border-radius: 12px; 
    margin-bottom: 40px; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.nav a { 
    color: white; 
    text-decoration: none; 
    margin: 0 20px; 
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s ease;
}
.nav a:hover { 
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

h1 { 
    color: #667eea; 
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    color: #4a5568; 
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

h3 { 
    color: #667eea; 
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

pre { 
    background: #2d3748; 
    color: #e2e8f0;
    padding: 20px; 
    border-radius: 8px; 
    overflow-x: auto; 
    border-left: 4px solid #667eea;
    margin: 20px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

code { 
    background: #edf2f7; 
    color: #e53e3e;
    padding: 3px 8px; 
    border-radius: 4px; 
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9em;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.example { 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6; 
    border-radius: 12px; 
    padding: 25px; 
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toc { 
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 25px; 
    border-radius: 12px; 
    margin: 30px 0;
    border-left: 5px solid #2196f3;
}
.toc ul { list-style-type: none; padding-left: 20px; }
.toc > ul { padding-left: 0; }
.toc a { color: #1976d2; text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; color: #0d47a1; }

.highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 5px solid #f39c12;
}

.note {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 5px solid #28a745;
}

.warning {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b2b7 100%);
    border: 1px solid #f1b2b7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 5px solid #dc3545;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
}

strong {
    color: #2d3748;
    font-weight: 600;
}

em {
    color: #667eea;
    font-style: italic;
}

blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #4a5568;
    background: #f7fafc;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

a:hover {
    border-bottom: 1px solid #667eea;
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    color: #718096;
    border-top: 1px solid #e2e8f0;
}
