:root {
    --x-accent: #6366f1;
    --x-accent-light: #818cf8;
    --x-accent-dark: #4f46e5;
    --x-font: 'Inter', system-ui, -apple-system, sans-serif;
    --x-radius: 12px;
    --x-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --x-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    --primary: #6366f1;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1f2937;
    --light: #f8fafc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--x-font);
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    background: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.hero-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><circle cx="10" cy="10" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="5" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="15" r="4" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: drift 30s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 1rem 0;
    background: linear-gradient(120deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
}

.loading-indicator {
    display: none;
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading-indicator.active {
    display: block;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
}

.error-message.active {
    display: block;
}

.example-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--x-shadow);
    margin: 1rem 0;
}

.example-content iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    min-height: 600px;
    background: white;
}

/* Sidebar styles */
.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #374151;
}

.nav-item.active {
    background: var(--x-accent);
    color: white;
}

.nav-icon {
    font-size: 1.125rem;
}

.breadcrumb {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: var(--x-accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        height: auto;
    }

    .content-area {
        padding: 1rem;
    }
}