/* Unified Navigation Button Styles */

/* All navigation buttons get the same styling */
.nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    width: calc(100% - 2rem) !important;
    margin: 0.5rem 1rem !important;
    padding: 1rem 1.5rem !important;
    border: 1px solid #e0f2fe !important;
    background: #f0f9ff !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
}

/* Add chevron to all nav items */
.nav-item::after {
    content: '›';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #2E7D32;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    background: #e0f2fe !important;
    border-color: #2E7D32 !important;
    transform: translateX(3px) !important;
}

.nav-item:hover::after {
    transform: translateX(3px);
}

.nav-item.active {
    background: #e8f5e9 !important;
    border-color: #2E7D32 !important;
    border-width: 2px !important;
    font-weight: 600 !important;
}

/* Remove the nav-arrow span since we're using ::after */
.nav-arrow {
    display: none !important;
}

/* Updated Recent Preview Box - Larger with wrapping */
.recent-preview {
    margin: 0.75rem 1rem !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.85rem !important;
    max-height: 120px !important; /* About 3 buttons height */
    overflow: hidden !important;
    position: relative !important;
}

.recent-preview:hover {
    background: #f0f9ff !important;
    border-color: #2E7D32 !important;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.1) !important;
}

/* Preview content with wrapping */
.preview-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-line {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.preview-q, .preview-a {
    color: #2E7D32 !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    min-width: 18px !important;
}

.preview-question {
    color: #1f2937 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.preview-answer {
    color: #6b7280 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.preview-confidence {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    font-size: 0.7rem !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

/* Sidebar nav spacing */
.sidebar-nav {
    padding: 1rem 0 !important;
}

/* Remove old divider styling */
.nav-divider {
    display: none !important;
}

/* Consistent spacing between buttons */
.nav-item + .nav-item {
    margin-top: 0.75rem !important;
}

/* Space after preview box */
.recent-preview + .nav-item {
    margin-top: 1.5rem !important;
}