:root {
    --bg-color: #191A1A;
    --sidebar-bg: #202121;
    --text-primary: #E8E8E8;
    --text-secondary: #9DA1A3;
    --accent: #2D9CDB;
    --border: #313333;
    --hover: #2C2D2D;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

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

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--hover);
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15vh;
}

.center-container {
    width: 100%;
    max-width: 700px;
    text-align: center;
    transition: all 0.5s ease;
}

.center-container.minimized {
    padding-top: 0;
    max-width: 800px;
    height: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Search Box */
.search-box-wrapper {
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.search-box-wrapper:focus-within {
    border-color: var(--text-secondary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.search-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.5;
    height: 28px;
    /* Initial height */
}

.action-btn {
    background: var(--hover);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* Suggestions */
.suggestions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.suggestion-pill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.suggestion-pill:hover {
    background: var(--hover);
    color: var(--text-primary);
}

/* Results */
.result-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: left;
    margin-bottom: 50px;
}

.hidden {
    display: none;
}

.query-header h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.section-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.markdown-body {
    line-height: 1.7;
    color: #D1D5DB;
    font-size: 1.05rem;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body code {
    background: #2A2B2B;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.markdown-body pre {
    background: #2A2B2B;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

/* Loading Animation */
.loading-indicator {
    display: inline-flex;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

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

    .sidebar {
        display: none;
        /* Hide sidebar on mobile for now */
    }

    .main-content {
        padding-top: 5vh;
        width: 100%;
    }

    .center-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .nav-item {
        /* If we ever show it, make it touch friendly */
        padding: 15px;
    }
}