/* PeopleFlow Documentation Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #15803d;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --background: #0f172a;
    --background-secondary: #1f2937;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Navigation */
.navbar {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Main Layout */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
    padding: 0 1.5rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.section-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

.section-items {
    list-style: none;
}

.section-items li {
    margin-bottom: 0.25rem;
}

.section-items a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.section-items a:hover {
    background: var(--primary-light);
    color: white;
}

.section-items a.active {
    background: var(--primary-color);
    color: white;
}

/* Content */
.content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: calc(100% - 280px);
}

.content-section {
    max-width: 800px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-card h2 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.1rem;
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

/* Lists */
.getting-started-list {
    list-style: none;
    margin: 1.5rem 0;
}

.getting-started-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.getting-started-list li:last-child {
    border-bottom: none;
}

.getting-started-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.getting-started-list a:hover {
    text-decoration: underline;
}

.process-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.process-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* API Info Box */
.api-info {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.api-info h3 {
    color: var(--secondary-color);
    margin: 0 0 0.75rem 0;
}

.api-info p {
    margin: 0;
}

/* Modules Grid */
.modules-overview {
    margin: 3rem 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.module-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.module-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
    background: rgba(31, 41, 55, 0.9);
}

.module-card h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
}

.module-card p {
    margin: 0;
    font-size: 0.875rem;
}

/* Screenshots */
.screenshot-container {
    margin: 2rem 0;
    text-align: center;
}

.screenshot {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.screenshot-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Code Blocks */
.code-block {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
}

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

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
    background: rgba(31, 41, 55, 0.9);
}

.feature-card h3 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: color 0.2s;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-content {
        flex-direction: column;
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 200;
        background: var(--background);
        border-right: 1px solid var(--border-color);
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .module-card {
        padding: 1rem;
    }
    
    .welcome-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .hero-image {
        max-width: 100%;
        margin: 1.5rem 0;
    }
    
    .screenshot {
        max-width: 100%;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Absence Types */
.absence-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.absence-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.absence-type:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.type-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.absence-type h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.absence-type p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .content {
        padding: 0.75rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .welcome-card {
        padding: 1rem;
    }
    
    .module-card {
        padding: 0.75rem;
    }
}