/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Layout */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 280px; /* Start after navigation */
    right: 0;
    z-index: 200;
    height: 60px; /* Fixed height */
    display: none; /* Hidden on desktop */
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    display: none; /* Hidden on desktop, shown on mobile */
}

header h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

header h1 a:hover {
    opacity: 0.8;
}

main {
    flex: 1;
    padding: 0; /* Remove padding - header will have its own */
    width: calc(100% - 280px); /* Full width minus navigation */
    margin: 0;
    margin-left: 280px; /* Space for navigation */
    margin-top: 0; /* No top margin on desktop */
}

/* Page header bar - always visible, matches nav-header style */
#page-header {
    background-color: #2c3e50;
    padding: 1rem 2rem;
    border-bottom: 2px solid #34495e;
    height: 60px; /* Match nav-header height */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 250; /* Above content, below navigation (300) */
}

#breadcrumb-display {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item:hover {
    opacity: 0.8;
    text-decoration: underline;
    cursor: pointer;
}

.breadcrumb-item.current {
    font-weight: 600;
    opacity: 1;
    cursor: default;
}

.breadcrumb-item.current:hover {
    text-decoration: none;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

#content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin: 2rem;
    min-height: calc(100vh - 140px); /* Full height minus header and margins */
}

/* Remove conditional padding rule - no longer needed */

footer {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Search Component Styles */

/* Search container at top of navigation */
.search-container {
    padding: 1rem;
    background-color: #151e27;
    border-bottom: 1px solid #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #243342;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.2s ease;
}

.search-input-wrapper:focus-within {
    background-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.search-icon {
    font-size: 1rem;
    color: #7f8c8d;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 0.95rem;
    outline: none;
    padding: 0;
}

.search-input::placeholder {
    color: #7f8c8d;
}

.search-clear-button {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.search-clear-button:hover {
    color: #ecf0f1;
}

/* Search Dropdown Styles */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    display: none;
}

.search-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s ease;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background-color: #f8f9fa;
}

.search-dropdown-item[data-path]:hover {
    background-color: #e3f2fd;
}

.search-dropdown-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.search-dropdown-breadcrumb {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.search-dropdown-empty {
    color: #7f8c8d;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

.search-dropdown-footer {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #ecf0f1;
}

.search-dropdown-view-all {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.search-dropdown-view-all:hover {
    background-color: #2980b9;
}

/* Scrollbar for dropdown */
.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 3px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* Search Results Styles */
.search-results {
    padding: 1rem 0;
}

.search-results h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.search-results-count {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-result-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.search-result-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-link:hover {
    color: #3498db;
}

.search-result-breadcrumb {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
}

.search-result-snippet {
    color: #555;
    line-height: 1.6;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.search-result-matches {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

/* Highlighted search terms */
mark {
    background-color: #fff3cd;
    color: #333;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Welcome Screen Styles */
.welcome-screen-active main {
    margin-left: 280px; /* Keep navigation visible */
}

.welcome-screen {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.welcome-screen-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.welcome-screen h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

.welcome-search-wrapper {
    margin-bottom: 2rem;
}

.welcome-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.welcome-search-input-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.welcome-search-icon {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-right: 1rem;
    flex-shrink: 0;
}

.welcome-search-input {
    flex: 1;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.1rem;
    outline: none;
    padding: 0;
}

.welcome-search-input::placeholder {
    color: #b2bec3;
}

.welcome-search-clear-button {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    margin-left: 1rem;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.welcome-search-clear-button:hover {
    color: #2c3e50;
}

.welcome-hint {
    color: #95a5a6;
    font-size: 0.95rem;
}

/* Navigation Menu Styles */

/* Navigation header with title */
.nav-header {
    background-color: #2c3e50;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #34495e;
    height: 60px; /* Match header height */
    display: flex;
    align-items: center; /* Vertically center the title */
}

.nav-header h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.nav-header h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-header h1 a:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* No ::after (hamburger) on desktop */
.nav-header::after {
    content: none;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: fixed; /* Fixed positioning for mobile */
    right: 1rem; /* Default desktop position (hidden) */
    top: 1.25rem;
    z-index: 300; /* Above navigation */
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

/* Navigation container */
#navigation {
    background-color: #1a252f;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    left: 0;
    top: 0; /* Full height, includes title */
    bottom: 0;
    padding-top: 0;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

/* Navigation menu list */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Navigation items */
.nav-item {
    position: relative;
}

.nav-item-content {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #b8c5d6;
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.nav-item-content:hover {
    background-color: #243342;
    color: #ffffff;
}

/* Indentation based on level */
.nav-item[data-level="2"] .nav-item-content {
    padding-left: 2rem;
}

.nav-item[data-level="3"] .nav-item-content {
    padding-left: 3rem;
}

.nav-item[data-level="4"] .nav-item-content {
    padding-left: 4rem;
}

.nav-item[data-level="5"] .nav-item-content {
    padding-left: 5rem;
}

/* Expand/collapse icons */
.nav-icon {
    display: inline-block;
    width: 1rem;
    font-size: 0.7rem;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-spacer {
    display: inline-block;
    width: 1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Links and text */
.nav-link,
.nav-text {
    color: inherit;
    text-decoration: none;
    flex: 1;
    display: block;
}

.nav-link:hover {
    color: #ffffff;
}

/* Active item highlighting */
.nav-item.nav-active > .nav-item-content {
    background-color: #2c5f8d;
    color: #ffffff;
    font-weight: 600;
}

.nav-item.nav-active > .nav-item-content .nav-link {
    color: #ffffff;
}

/* Submenu visibility */
.nav-submenu {
    transition: all 0.3s ease;
}

/* Parent item states */
.nav-parent.nav-collapsed > .nav-submenu {
    display: none;
}

.nav-parent.nav-expanded > .nav-submenu {
    display: block;
}

/* Expanded icon rotation */
.nav-parent.nav-expanded > .nav-item-content .nav-icon {
    transform: rotate(0deg);
}

.nav-parent.nav-collapsed > .nav-item-content .nav-icon {
    transform: rotate(0deg);
}

/* Scrollbar styling for navigation */
#navigation::-webkit-scrollbar {
    width: 8px;
}

#navigation::-webkit-scrollbar-track {
    background: #151e27;
}

#navigation::-webkit-scrollbar-thumb {
    background: #2c3e50;
    border-radius: 4px;
}

#navigation::-webkit-scrollbar-thumb:hover {
    background: #34495e;
}


/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile header with hamburger button */
    header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
        left: 0;
        width: 100%;
        height: 60px;
        padding: 1rem 1.5rem;
        position: fixed;
        top: 0;
        z-index: 200;
    }
    
    header h1 {
        display: block !important;
        font-size: 1.2rem;
        line-height: 1.2;
        margin: 0;
        flex: 1;
    }
    
    /* Show hamburger button in header */
    .mobile-menu-toggle {
        display: block !important;
        position: static;
        flex-shrink: 0;
        font-size: 1.5rem;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        line-height: 1;
    }
    
    /* Main content - full width, below header */
    main {
        padding: 0;
        margin-left: 0;
        margin-top: 60px; /* Header height */
        width: 100%;
    }
    
    /* Page header bar responsive */
    #page-header {
        padding: 0.75rem 1rem;
        height: auto;
        min-height: 50px;
        position: sticky;
        top: 60px; /* Below mobile header */
        z-index: 250;
    }
    
    #breadcrumb-display {
        font-size: 0.95rem;
    }
    
    .breadcrumb-item {
        font-size: 0.9rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.25rem;
    }
    
    #content {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 8px;
    }
    
    /* Navigation - slide in from left, off-screen by default */
    #navigation {
        position: fixed;
        top: 0;
        left: -100%; /* Off-screen */
        width: 280px;
        height: 100vh;
        z-index: 250;
        transform: none;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    }
    
    /* Navigation visible when open */
    #navigation.nav-mobile-open {
        left: 0; /* Slide in */
    }
    
    /* Hide nav-header on mobile (title is in header) */
    #navigation .nav-header {
        display: none !important;
    }
    
    /* Search container - visible at top of mobile nav */
    #navigation .search-container {
        display: block;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    /* Menu items - scrollable */
    #navigation .nav-menu {
        max-height: calc(100vh - 120px); /* Account for search */
        overflow-y: auto;
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 240;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Welcome screen on mobile */
    .welcome-screen-active main {
        margin-left: 0;
    }
    
    .welcome-screen {
        max-width: 100%;
    }
    
    .welcome-screen h1 {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .welcome-search-input-wrapper {
        padding: 0.75rem 1rem;
    }
    
    .welcome-search-input {
        font-size: 1rem;
    }
}

/* Content Display Styles */

/* Content title */
.content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 2rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Content body wrapper */
.content-body {
    line-height: 1.8;
    color: #333;
}

/* Typography - Headings */
.content-body h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.content-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.content-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #34495e;
    margin: 1.75rem 0 0.75rem 0;
    line-height: 1.4;
}

.content-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #34495e;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
}

.content-body h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    margin: 1.25rem 0 0.5rem 0;
    line-height: 1.4;
}

.content-body h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #34495e;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.4;
}

/* Typography - Paragraphs */
.content-body p {
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
}

.content-body p:last-child {
    margin-bottom: 0;
}

/* Typography - Lists */
.content-body ul,
.content-body ol {
    margin: 0 0 1.25rem 0;
    padding-left: 2rem;
}

.content-body ul ul,
.content-body ul ol,
.content-body ol ul,
.content-body ol ol {
    margin: 0.5rem 0;
}

.content-body li {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.content-body li > p {
    margin: 0.25rem 0;
}

/* Typography - Links */
.content-body a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.content-body a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Internal links styling */
.content-body a.internal-link {
    color: #27ae60;
    font-weight: 500;
}

.content-body a.internal-link:hover {
    color: #229954;
}

.content-body a.internal-link::before {
    content: '→ ';
    opacity: 0.7;
}

/* External links styling */
.content-body a.external-link::after {
    content: ' ↗';
    font-size: 0.85em;
    opacity: 0.7;
}

/* Typography - Inline code */
.content-body code {
    background-color: #f4f4f4;
    color: #e74c3c;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
    border: 1px solid #e0e0e0;
}

/* Typography - Code blocks */
.content-body pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #34495e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Typography - Blockquotes */
.content-body blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
}

.content-body blockquote p {
    margin: 0.5rem 0;
}

.content-body blockquote p:first-child {
    margin-top: 0;
}

.content-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Typography - Horizontal rules */
.content-body hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}

/* Typography - Strong and emphasis */
.content-body strong {
    font-weight: 700;
    color: #2c3e50;
}

.content-body em {
    font-style: italic;
}

/* Tables */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 6px;
}

.content-body thead {
    background-color: #34495e;
    color: white;
}

.content-body thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2c3e50;
}

.content-body tbody tr {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
}

.content-body tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.content-body tbody tr:hover {
    background-color: #e3f2fd;
}

.content-body tbody td {
    padding: 0.875rem 1rem;
    border-right: 1px solid #e0e0e0;
}

.content-body tbody td:last-child {
    border-right: none;
}

/* Images */
.content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-body .content-figure {
    margin: 2rem 0;
    text-align: center;
}

.content-body .content-figure img {
    margin: 0 auto 0.75rem auto;
}

.content-body .content-figure figcaption {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
    line-height: 1.5;
}

/* Error and loading states */
.error-page,
.loading-page {
    padding: 3rem 0;
    text-align: center;
}

.error-message {
    color: #e74c3c;
    font-size: 1rem;
    padding: 1rem;
    background-color: #fef5f5;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    margin: 1rem 0;
}

.loading-message {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-style: italic;
}

/* Responsive content adjustments */
@media (max-width: 768px) {
    .content-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .content-body h1 {
        font-size: 1.75rem;
    }

    .content-body h2 {
        font-size: 1.5rem;
    }

    .content-body h3 {
        font-size: 1.25rem;
    }

    .content-body h4,
    .content-body h5,
    .content-body h6 {
        font-size: 1.1rem;
    }

    .content-body {
        font-size: 0.95rem;
    }

    .content-body pre {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .content-body table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }

    .content-body thead th,
    .content-body tbody td {
        padding: 0.75rem;
    }

    .content-body ul,
    .content-body ol {
        padding-left: 1.5rem;
    }
}

/* Welcome Page Search Styles */
.welcome-search-container {
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
}

.welcome-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #3498db;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.welcome-search-input-wrapper:focus-within {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    border-color: #2980b9;
}

.welcome-search-icon {
    width: 24px;
    height: 24px;
    color: #3498db;
    margin-right: 1rem;
    flex-shrink: 0;
}

.welcome-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #2c3e50;
    background: transparent;
}

.welcome-search-input::placeholder {
    color: #95a5a6;
}

.welcome-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 100;
}

.welcome-search-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.welcome-search-item:last-child {
    border-bottom: none;
}

.welcome-search-item:hover {
    background-color: #f8f9fa;
}

.welcome-search-item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.welcome-search-item-breadcrumb {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.welcome-search-item-snippet {
    font-size: 0.9rem;
    color: #5a6c7d;
    line-height: 1.4;
}

.welcome-search-empty {
    padding: 2rem;
    text-align: center;
    color: #7f8c8d;
}

.welcome-search-hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.welcome-search-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #ecf0f1;
    background: #f8f9fa;
}

.welcome-search-view-all {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.welcome-search-view-all:hover {
    background: #2980b9;
}

.welcome-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.welcome-tip {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.welcome-tip h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.welcome-tip p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

/* Mobile welcome search adjustments */
@media (max-width: 768px) {
    .welcome-screen {
        padding: 2rem 1rem;
    }
    
    .welcome-screen h1 {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .welcome-search-input-wrapper {
        padding: 0.6rem 1rem;
    }
    
    .welcome-search-input {
        font-size: 1rem;
    }
    
    .welcome-search-icon {
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
    }
    
    .welcome-tips {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .welcome-tip {
        padding: 1.25rem;
    }
}
