:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --header-height: 70px;
    --sidebar-width: 280px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.logo-accent {
    color: var(--primary-color);
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.sidebar-nav {
    padding: 24px 0;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section h3 {
    padding: 0 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: flex-start;
    padding: 12px 24px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav li a i, 
.sidebar-nav li a svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 16px;
    margin-top: 2px;
    color: var(--text-muted);
}

.sidebar-nav li a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.sidebar-nav li a.active {
    background-color: #eef2ff;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-nav li a.active i,
.sidebar-nav li a.active svg {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    margin-right: 16px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

.search-container i {
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-container input {
    background: none;
    border: none;
    outline: none;
    padding-left: 12px;
    width: 100%;
    font-family: inherit;
    color: var(--text-main);
}

/* Search Results UI */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
    padding: 8px;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    gap: 12px;
}

.search-result-item:hover {
    background-color: #f1f5f9;
}

.search-result-item .result-icon {
    width: 32px;
    height: 32px;
    background: #eef2ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-item .result-info {
    flex: 1;
    min-width: 0;
}

.search-result-item .result-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .result-section {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.content-wrapper {
    padding: 48px 64px;
    flex: 1;
    max-width: 1000px;
}

.doc-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.doc-section.active {
    display: block;
}

.info-banner.red {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

.detail-list {
    list-style: none;
    margin-top: 16px;
}

.detail-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 15px;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.detail-list.checkbox li::before {
    background-color: #10b981;
    border-radius: 2px;
}

.feature-card.sm {
    padding: 16px;
    border-radius: 12px;
}

.feature-card.sm h4 {
    font-size: 14px;
    margin: 0;
}

.process-steps {
    margin-top: 20px;
}

.process-step {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.process-step:last-child {
    border-bottom: none;
}

.process-step strong {
    color: var(--primary-color);
    margin-right: 8px;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.lead {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.help-card {
    display: flex;
    align-items: flex-start;
    background-color: #f8fafc;
    border-left: 4px solid var(--primary-color);
}

.card-icon {
    background-color: #eef2ff;
    color: var(--primary-color);
    padding: 12px;
    border-radius: 10px;
    margin-right: 20px;
}

/* Grids */
.roles-grid, .tech-stack, .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.role-card, .tech-item, .feature-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.role-card:hover, .tech-item:hover, .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.role-card i, .tech-item i {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.role-card.customer i { color: #3b82f6; }
.role-card.vendor i { color: #10b981; }
.role-card.delivery i { color: #f59e0b; }

/* Components */
.steps-list {
    list-style: none;
    margin-top: 24px;
}

.steps-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
}

.steps-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background-color: #eef2ff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 40px 0;
}

.flow-step {
    background: white;
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.status-indicator {
    display: flex;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 12px;
    margin-top: 24px;
}

.status.item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.doc-table th, .doc-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.doc-table th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    margin-top: 20px;
}

.info-banner.blue {
    background-color: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

.info-banner i {
    flex-shrink: 0;
}

.mt-20 { margin-top: 20px; }

/* Pricing/Grid adjustments */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.plan {
    text-align: center;
}

.plan.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.plan ul {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.plan li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid #f1f5f9;
}

/* Tabs and Pipes */
.tabs {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.tabs .card {
    flex: 1;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.section-title i {
    width: 28px;
    height: 28px;
}

.section-title h2 {
    margin: 0;
}

/* Pipeline steps */
.steps-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.step-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed var(--border-color);
    text-align: center;
}

.step-box h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .steps-detailed {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
}

.doc-footer {
    padding: 40px 64px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
    background: #fdfdfd;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .close-sidebar {
        display: block;
    }
    
    .content-wrapper {
        padding: 32px 24px;
    }
    
    .doc-footer {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 28px; }
    .lead { font-size: 18px; }
    .roles-grid, .tech-stack { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); margin: 8px 0; }
}
