/**
 * Project Management Panel Styles
 * Project panel styles
 */

/* Projects Container */
.projects-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0;
    padding: 0;
}

/* ----- MINIMAL PROJECTS HEADER ----- */
.minimal-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}

.project-select-simple {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-select-simple:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.project-select-simple .project-name {
    font-weight: 500;
    color: var(--gt-text, #e8e6e3);
    font-size: 0.9rem;
}

.project-select-simple .project-count {
    color: var(--gt-text-secondary, #9a9790);
    font-size: 0.8rem;
}

.project-select-simple i {
    color: var(--gt-text-secondary, #9a9790);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.simple-actions {
    display: flex;
    gap: 0.5rem;
}

.simple-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: var(--gt-text-secondary, #9a9790);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.simple-btn:hover {
    background: rgba(45, 106, 79, 0.1);
    border-color: rgba(45, 106, 79, 0.2);
    color: var(--gt-green, #2d6a4f);
    transform: translateY(-1px);
}

/* ----- SIMPLE DROPDOWN ----- */
.simple-dropdown {
    position: absolute;
    top: 70px;
    left: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 15000;
    max-height: 320px;
    overflow: hidden;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.simple-dropdown .projects-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.5rem;
}

.new-project-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(45, 106, 79, 0.1);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--gt-green, #2d6a4f);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.new-project-btn:hover {
    background: rgba(45, 106, 79, 0.15);
}

/* ----- Query Input ----- */
.simple-query {
    padding: 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.query-input-container {
    position: relative;
    width: 100%;
}

.simple-query textarea {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: var(--gt-text, #e8e6e3);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    resize: none;
    min-height: 48px;
    height: 48px;
    max-height: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-align: left;
    vertical-align: top;
    box-sizing: border-box;
    outline: none;
}

.simple-query textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    font-style: normal;
}

.simple-query textarea:focus {
    border-color: rgba(45, 106, 79, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 24px rgba(45, 106, 79, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 0 0 2px rgba(45, 106, 79, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.simple-query textarea:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Auto-resize functionality for better UX */
.simple-query textarea.auto-resize {
    overflow-y: hidden;
}

/* MODERN EMBEDDED SEND BUTTON - Like Discord/Slack */
.simple-query .send-btn {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--gt-green, #2d6a4f);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    outline: none;
    box-sizing: border-box;
    z-index: 10;
    opacity: 0.8;
    box-shadow: 
        0 2px 8px rgba(45, 106, 79, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.simple-query .send-btn:hover:not(:disabled) {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 
        0 4px 12px rgba(45, 106, 79, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.15);
    background: var(--gt-green-muted, #40916c);
}

.simple-query .send-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 
        0 1px 4px rgba(45, 106, 79, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.simple-query .send-btn:disabled {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.simple-query .send-btn:focus-visible {
    outline: 2px solid rgba(45, 106, 79, 0.6);
    outline-offset: 2px;
}

/* Enhanced states for embedded button */
.simple-query textarea:focus + .send-btn,
.simple-query textarea:not(:placeholder-shown) + .send-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.simple-query textarea:placeholder-shown + .send-btn {
    opacity: 0.6;
    pointer-events: none;
}

/* Loading state for send button */
.simple-query .send-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.simple-query .send-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Helper text container */
.query-helper {
    padding: 0 1.25rem 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-align: center;
    display: none;
}

.query-helper.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- SIMPLE RESPONSE AREA ----- */
.simple-response {
    flex: 1;
    padding: 0 1.25rem 1.25rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    margin: 0 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.simple-response .response-text {
    padding: 1rem;
    color: var(--gt-text, #e8e6e3);
    line-height: 1.6;
    font-size: 0.9rem;
}

.simple-response .response-sources {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =====================================
   Project Header
   ===================================== */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.header-title h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gt-text, #e8e6e3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-title h3 i {
    color: var(--gt-green, #2d6a4f);
    font-size: 1rem;
}

.header-title p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gt-text-secondary, #9a9790);
    line-height: 1.4;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn, .create-project-btn {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gt-green) !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.action-btn:hover, .create-project-btn:hover {
    background: var(--gt-green-muted);
    transform: translateY(-1px);
}

.action-btn:active, .create-project-btn:active {
    transform: translateY(0);
}

/* =====================================
   PROJECT SELECTOR
   ===================================== */
.project-selector {
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
}

.selector-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gt-text-secondary, #9a9790);
}

.selector-label i {
    color: var(--gt-green, #2d6a4f);
}

.selector-dropdown {
    position: relative;
}

.dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--gt-surface);
    border: 1px solid var(--gt-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-btn:hover {
    border-color: var(--gt-green, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.project-name {
    font-weight: 500;
    color: var(--gt-text, #e8e6e3);
    margin-right: 0.5rem;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: rgba(45, 106, 79, 0.1);
    color: var(--gt-green, #2d6a4f);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.dropdown-btn i {
    color: var(--gt-text-secondary, #9a9790);
    margin-left: auto;
    transition: transform 0.2s ease;
}

.dropdown-btn:hover i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gt-surface);
    border: 1px solid var(--gt-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 15000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(58, 58, 61, 0.5);
}

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

.dropdown-item:hover {
    background: rgba(45, 106, 79, 0.05);
}

.dropdown-item.current-project {
    background: rgba(45, 106, 79, 0.1) !important;
    border-left: 3px solid var(--gt-green, #2d6a4f);
    font-weight: 600;
    position: relative;
}

.dropdown-item.current-project::before {
    content: "✓";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gt-green, #2d6a4f);
    font-weight: bold;
    font-size: 0.875rem;
}

.dropdown-item.current-project:hover {
    background: rgba(45, 106, 79, 0.15) !important;
}

.project-info {
    flex: 1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.project-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-name {
    font-weight: 500;
    color: var(--gt-text, #e8e6e3);
}

.default-badge {
    padding: 0.125rem 0.375rem;
    background: var(--gt-green-light);
    color: white;
    border-radius: 10px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gt-text-secondary, #9a9790);
}

.project-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover .project-actions {
    opacity: 1;
}

.project-action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(154, 151, 144, 0.1);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gt-text-secondary, #9a9790);
}

.project-action-btn:hover {
    background: var(--gt-green, #2d6a4f);
    color: white;
}

/* =====================================
   PROJECT CONTENT AREA
   ===================================== */
.project-content {
    flex: 1;
    padding: 0 1.25rem 1.25rem;
    overflow-y: auto;
}

/* Loading State */
.project-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 1rem;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(45, 106, 79, 0.2);
    border-top: 3px solid var(--gt-green, #2d6a4f);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.project-loading p {
    color: var(--gt-text-secondary, #9a9790);
    margin: 0;
}

/* Empty State */
.project-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    height: 100%;
}

.empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 106, 79, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.empty-icon i {
    font-size: 1.5rem;
    color: var(--gt-green, #2d6a4f);
}

.project-empty h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gt-text, #e8e6e3);
}

.project-empty p {
    margin: 0 0 2rem 0;
    color: var(--gt-text-secondary, #9a9790);
    line-height: 1.5;
    max-width: 300px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gt-green, #2d6a4f);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--gt-green-muted);
    transform: translateY(-1px);
}

/* =====================================
   PROJECT DASHBOARD
   ===================================== */
.project-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Project Stats */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(45, 106, 79, 0.05) 0%, 
        rgba(69, 123, 157, 0.05) 100%);
    border: 1px solid rgba(58, 58, 61, 0.6);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: rgba(45, 106, 79, 0.3);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gt-green, #2d6a4f);
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gt-text, #e8e6e3);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gt-text-secondary, #9a9790);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Project Actions */
.project-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-section {
    background: var(--gt-surface);
    border: 1px solid var(--gt-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.action-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gt-text, #e8e6e3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.upload-btn {
    background: var(--gt-green-light) !important;
    display: flex !important;
    visibility: visible !important;
}

.upload-btn:hover {
    background: var(--gt-green-muted) !important;
}

.view-docs-btn {
    background: var(--gt-green) !important;
    display: flex !important;
    visibility: visible !important;
}

.view-docs-btn:hover {
    background: var(--gt-green-muted) !important;
}

/* Query Interface */
.query-interface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.query-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.query-input-container textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gt-border);
    border-radius: 8px;
    background: var(--gt-surface);
    color: var(--gt-text, #e8e6e3);
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
}

.query-input-container textarea:focus {
    outline: none;
    border-color: var(--gt-green, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.query-input-container textarea::placeholder {
    color: var(--gt-text-secondary, #9a9790);
}

.query-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gt-green) !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    height: fit-content;
    min-width: 80px;
    visibility: visible !important;
    opacity: 1 !important;
}

.query-btn:hover {
    background: var(--gt-green-muted);
    transform: translateY(-1px);
}

.query-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(45, 106, 79, 0.1);
    color: var(--gt-green, #2d6a4f);
    border: 1px solid rgba(45, 106, 79, 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: var(--gt-green, #2d6a4f);
    color: white;
    transform: translateY(-1px);
}

/* Project Settings */
.project-settings {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gt-border);
}

.settings-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--gt-text-secondary, #9a9790);
    border: 1px solid var(--gt-border);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-btn:hover {
    background: var(--gt-surface);
    border-color: var(--gt-green, #2d6a4f);
    color: var(--gt-green, #2d6a4f);
}

/* =====================================
   DOCUMENTS VIEW
   ===================================== */
.documents-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gt-border);
}

.documents-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gt-text, #e8e6e3);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--gt-text-secondary, #9a9790);
    border: 1px solid var(--gt-border);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--gt-surface);
    color: var(--gt-green, #2d6a4f);
    border-color: var(--gt-green, #2d6a4f);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gt-surface);
    border: 1px solid var(--gt-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.document-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(45, 106, 79, 0.3);
}

.doc-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 106, 79, 0.1);
    border-radius: 8px;
    color: var(--gt-green);
    font-size: 1.125rem;
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-name {
    font-weight: 500;
    color: var(--gt-text, #e8e6e3);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gt-text-secondary, #9a9790);
}

.doc-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.document-item:hover .doc-actions {
    opacity: 1;
}

.doc-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(154, 151, 144, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gt-text-secondary, #9a9790);
}

.doc-action-btn:hover {
    background: var(--gt-green, #2d6a4f);
    color: white;
}

.no-documents {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gt-text-secondary, #9a9790);
    font-style: italic;
}

/* =====================================
   QUERY RESPONSE AREA
   ===================================== */
.query-response-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gt-surface);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gt-border);
    background: linear-gradient(135deg, 
        rgba(45, 106, 79, 0.05) 0%, 
        rgba(69, 123, 157, 0.05) 100%);
}

.response-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gt-text, #e8e6e3);
}

.close-response-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(154, 151, 144, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gt-text-secondary, #9a9790);
}

.close-response-btn:hover {
    background: #ef4444;
    color: white;
}

.response-content, .response-sources {
    padding: 1.25rem;
    overflow-y: auto;
}

.response-content {
    flex: 1;
}

.query-result {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.query-question {
    padding: 1rem;
    background: rgba(45, 106, 79, 0.05);
    border-left: 3px solid var(--gt-green);
    border-radius: 0 8px 8px 0;
    font-size: 0.875rem;
}

.query-answer {
    line-height: 1.6;
    color: var(--gt-text, #e8e6e3);
}

.query-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.query-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    color: #ef4444;
    text-align: center;
}

.query-error i {
    font-size: 2rem;
    opacity: 0.7;
}

/* Sources Section */
.sources-section {
    border-top: 1px solid var(--gt-border);
    padding-top: 1rem;
}

.sources-section h5 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gt-text, #e8e6e3);
}

.source-document {
    margin-bottom: 1.5rem;
    border: 1px solid var(--gt-border);
    border-radius: 8px;
    overflow: hidden;
}

.source-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(45, 106, 79, 0.05);
    border-bottom: 1px solid var(--gt-border);
}

.source-header i {
    color: var(--gt-green, #2d6a4f);
}

.source-filename {
    flex: 1;
    font-weight: 500;
    color: var(--gt-text, #e8e6e3);
}

.source-chunks {
    font-size: 0.75rem;
    color: var(--gt-text-secondary, #9a9790);
    padding: 0.25rem 0.5rem;
    background: rgba(154, 151, 144, 0.1);
    border-radius: 12px;
}

.source-chunk {
    padding: 1rem;
    border-bottom: 1px solid rgba(58, 58, 61, 0.5);
}

.source-chunk:last-child {
    border-bottom: none;
}

.chunk-content {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--gt-text, #e8e6e3);
    font-size: 0.875rem;
}

.chunk-scores {
    font-size: 0.75rem;
    color: var(--gt-text-secondary, #9a9790);
    font-weight: 500;
}

/* =====================================
   PROJECT MODAL
   ===================================== */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15001;
}

.project-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.9);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(154, 151, 144, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gt-text-secondary, #9a9790);
}

.modal-close-btn:hover {
    background: #ef4444;
    color: white;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--gt-text, #e8e6e3);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gt-border);
    border-radius: 6px;
    background: var(--gt-surface);
    color: var(--gt-text, #e8e6e3);
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gt-green, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gt-border);
    background: rgba(42, 42, 45, 0.8);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--gt-text-secondary, #9a9790);
    border: 1px solid var(--gt-border);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--gt-surface);
    border-color: var(--gt-green, #2d6a4f);
    color: var(--gt-green, #2d6a4f);
}

/* =====================================
   Main Layout
   ===================================== */
.modern-projects-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    overflow: visible;
}

.projects-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-selector-minimal {
    position: relative;
    flex: 1;
    max-width: 280px;
    z-index: 15003;
    overflow: visible;
}

.current-project-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.current-project-minimal:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(45, 106, 79, 0.3);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-name {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.9);
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.project-count {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.6);
    font-weight: 400;
}

.project-dropdown-minimal {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 20px 64px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 15004;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-dropdown-minimal[style*="block"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.projects-list {
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: rgba(15, 23, 42, 0.8);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(15, 23, 42, 0.9);
    transform: translateX(2px);
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-actions {
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-new-project {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(45, 106, 79, 0.1);
    border: 1px solid rgba(45, 106, 79, 0.2);
    border-radius: 10px;
    color: #3B82F6;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-new-project:hover {
    background: rgba(45, 106, 79, 0.15);
    border-color: rgba(45, 106, 79, 0.3);
    transform: translateY(-1px);
}

.action-buttons-compact {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(15, 23, 42, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.action-btn-compact:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(45, 106, 79, 0.3);
    color: #3B82F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

.projects-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow: visible;
    min-height: 0;
    background: transparent;
}

/* Response Area */
.clean-response {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.response-text {
    padding: 2rem;
    line-height: 1.8;
    color: rgba(15, 23, 42, 0.9);
    font-size: 1rem;
    font-weight: 400;
    border-radius: 16px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.response-text p {
    margin: 0 0 1.2rem 0;
}

.response-text p:last-child {
    margin-bottom: 0;
}

.response-text strong {
    color: #3B82F6;
    font-weight: 600;
}

.response-text em {
    color: rgba(15, 23, 42, 0.7);
    font-style: italic;
}

.response-text ul, .response-text ol {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
}

.response-text li {
    margin-bottom: 0.6rem;
}

.response-sources {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 0 16px 16px;
}

.response-sources h5 {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.response-sources h5:hover {
    color: #3B82F6;
}

.source-document {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.source-document:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.source-document:last-child {
    margin-bottom: 0;
}

.source-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #3B82F6;
    font-size: 0.875rem;
}

.source-header i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.chunk-content {
    color: rgba(15, 23, 42, 0.8);
    line-height: 1.6;
    margin: 0;
    font-size: 0.85rem;
}

/* Query Section */
.query-section {
    margin-bottom: 1rem;
}

.query-input-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.query-input-container textarea {
    flex: 1;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(15, 23, 42, 0.9);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    resize: none;
    min-height: 56px;
    max-height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.query-input-container textarea:focus {
    outline: none;
    border-color: rgba(45, 106, 79, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(45, 106, 79, 0.15),
        0 0 0 3px rgba(45, 106, 79, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.query-input-container textarea::placeholder {
    color: rgba(15, 23, 42, 0.5);
    font-weight: 400;
}

.query-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #2d6a4f;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 
        0 4px 16px rgba(45, 106, 79, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.query-send-btn:hover {
    background: #40916c;
    
    box-shadow: 
        0 8px 32px rgba(45, 106, 79, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.query-send-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 16px rgba(45, 106, 79, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */
@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .query-input-container {
        flex-direction: column;
    }
    
    .query-btn {
        align-self: stretch;
    }
    
    .project-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 0;
    }
    
    .projects-header,
    .project-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .project-selector {
        padding: 0 1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .action-section {
        padding: 1rem;
    }
    
    .suggestion-btn {
        flex: 1;
        text-align: center;
    }
}

/* =====================================
   MODERN MINIMALISTIC PROJECTS LAYOUT
   ===================================== */
.modern-projects-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    overflow: visible;
}

/* Compact Header Section - Keep minimal background */
.projects-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gt-border);
    background: rgba(45, 106, 79, 0.01);
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    z-index: 15002;
}

/* Minimal Project Selector */
.project-selector-minimal {
    position: relative !important;
    flex: 1;
    max-width: 250px;
    z-index: 15003 !important;
    overflow: visible !important;
}

.current-project-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gt-border);
    border-radius: 6px;
    background: var(--gt-surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.current-project-minimal:hover {
    border-color: var(--gt-green, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.project-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gt-text, #e8e6e3);
    line-height: 1.2;
}

.project-count {
    font-size: 0.75rem;
    color: var(--gt-text-secondary, #9a9790);
    line-height: 1;
}

.project-dropdown-minimal {
    position: fixed !important;
    z-index: 15005 !important;
    margin-top: 0.25rem !important;
    border: 1px solid var(--gt-border) !important;
    border-radius: 6px !important;
    background: var(--gt-surface) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    min-width: 200px !important;
}

.projects-list {
    padding: 0.25rem 0;
}

/* Force dropdown to appear above everything when visible */
.project-dropdown-minimal[style*="block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 15004 !important;
    position: absolute !important;
    transform: translateZ(0) !important;
    backface-visibility: visible !important;
}

/* Additional force for ultra project dropdown */
#ultraProjectDropdown[style*="block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 15004 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
}

.ultra-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(58, 58, 61, 0.5);
}

.ultra-project-item:last-child {
    border-bottom: none;
}

.ultra-project-item:hover {
    background: rgba(45, 106, 79, 0.05);
}

.ultra-project-item.selected {
    background: rgba(45, 106, 79, 0.1);
    color: var(--gt-green, #2d6a4f);
}

.ultra-project-item .project-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.ultra-project-item .project-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gt-text, #e8e6e3);
    line-height: 1.2;
}

.ultra-project-item.selected .project-title {
    color: var(--gt-green, #2d6a4f);
}

.ultra-project-item .project-meta {
    font-size: 0.75rem;
    color: var(--gt-text-secondary, #9a9790);
    line-height: 1;
}

.project-check {
    color: var(--gt-green, #2d6a4f);
    font-size: 0.875rem;
}

.project-select-area {
    width: 1rem;
    height: 1rem;
}

.empty-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--gt-text-secondary, #9a9790);
}

.empty-projects i {
    font-size: 1.5rem;
    opacity: 0.5;
}

.empty-projects p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.empty-projects small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.dropdown-actions {
    padding: 0.5rem;
    border-top: 1px solid var(--gt-border);
}

.btn-new-project {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background: var(--gt-green, #2d6a4f);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-new-project:hover {
    background: var(--gt-green);
    transform: translateY(-1px);
}

/* Compact Action Buttons */
.action-buttons-compact {
    display: flex;
    gap: 0.5rem;
}

.action-btn-compact {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--gt-border);
    border-radius: 6px;
    background: var(--gt-surface);
    color: var(--gt-text-secondary, #9a9790);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.action-btn-compact:hover {
    border-color: var(--gt-green, #2d6a4f);
    color: var(--gt-green, #2d6a4f);
    background: rgba(45, 106, 79, 0.05);
    transform: translateY(-1px);
}

/* Main Content Area - Remove background */
.projects-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 0;
    background: transparent;
}

/* Query Section - Remove blocking background */
.query-section {
    padding: 1rem;
    border-bottom: 1px solid var(--gt-border);
    flex-shrink: 0;
    background: transparent;
    z-index: 1;
}

.query-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.query-input-container textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gt-border);
    border-radius: 8px;
    background: var(--gt-surface);
    color: var(--gt-text, #e8e6e3);
    font-size: 0.875rem;
    line-height: 1.4;
    resize: none;
    transition: all 0.2s ease;
    min-height: 2.5rem;
    max-height: 6rem;
}

.query-input-container textarea:focus {
    outline: none;
    border-color: var(--gt-green, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.query-send-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 6px;
    background: var(--gt-green, #2d6a4f);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.query-send-btn:hover {
    background: var(--gt-green);
    transform: translateY(-1px);
}

.query-send-btn:disabled {
    background: var(--gt-text-secondary, #9a9790);
    cursor: not-allowed;
    transform: none;
}

/* Response Container - Remove background blocking */
.response-container {
    flex-direction: column;
    overflow: visible;
    background: transparent;
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--gt-border);
}

.response-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    line-height: 1.6;
    color: var(--gt-text, #e8e6e3);
}

.response-sources {
    border-top: 1px solid var(--gt-border);
    background: rgba(42, 42, 45, 0.8);
    max-height: 40%;
    overflow-y: auto;
    padding: 1rem;
}

.response-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gt-border);
    background: var(--gt-surface);
    flex-shrink: 0;
}

.response-action-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gt-border);
    border-radius: 4px;
    background: var(--gt-surface);
    color: var(--gt-text-secondary, #9a9790);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.response-action-btn:hover {
    border-color: var(--gt-green, #2d6a4f);
    color: var(--gt-green, #2d6a4f);
    background: rgba(45, 106, 79, 0.05);
}

/* Query Result Styling */
.query-result {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.query-question {
    padding: 0.75rem;
    background: rgba(69, 123, 157, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--gt-ocean-light);
    font-size: 0.875rem;
}

.query-answer {
    padding: 1rem;
    background: rgba(45, 106, 79, 0.03);
    border-radius: 6px;
    border-left: 3px solid var(--gt-green, #2d6a4f);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Sources Styling */
.sources-section h5 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gt-text, #e8e6e3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.source-document {
    margin-bottom: 0.75rem;
    border: 1px solid var(--gt-border);
    border-radius: 6px;
    overflow: hidden;
}

.source-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(45, 106, 79, 0.05);
    font-size: 0.8rem;
    font-weight: 500;
}

.source-filename {
    color: var(--gt-text, #e8e6e3);
    flex: 1;
}

.source-chunks {
    color: var(--gt-text-secondary, #9a9790);
    font-size: 0.75rem;
}

.source-chunk {
    padding: 0.75rem;
    border-top: 1px solid var(--gt-border);
}

.chunk-content {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gt-text, #e8e6e3);
    margin-bottom: 0.5rem;
}

.chunk-scores {
    font-size: 0.75rem;
    color: var(--gt-text-secondary, #9a9790);
}

/* Loading and Error States */
.query-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: var(--gt-text-secondary, #9a9790);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(45, 106, 79, 0.3);
    border-top: 2px solid var(--gt-green, #2d6a4f);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.query-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    margin: 1rem;
}

/* =====================================
   DARK MODE SUPPORT
   ===================================== */
@media (prefers-color-scheme: dark) {
    .project-modal-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .loading-spinner {
        border-color: rgba(45, 106, 79, 0.3);
        border-top-color: var(--gt-green, #2d6a4f);
    }
}

