/* Dataroom Page Specific Styles */

.folder {
    background: var(--color-bg-panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 1rem;
}

.folder:hover {
    border-color: rgba(235,209,161,0.3);
    transform: translateY(-2px);
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.folder-icon {
    font-size: 2rem;
}

.collapsible-icon {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.collapsible-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(59,97,177,0.08);
    border: 1px solid rgba(96,165,250,0.2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.document-item:hover {
    background: rgba(59,97,177,0.15);
    border-color: rgba(96,165,250,0.4);
}

.document-icon {
    font-size: 1.5rem;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.deal-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.deal-info-stats {
    display: flex;
    gap: 1.5rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .deal-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deal-info-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar .form-input {
        width: 100%;
    }
}

/* Nova AI Chatbot Styles */
.nova-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.nova-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.nova-chat {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    max-height: 600px;
    background: var(--color-bg-panel);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.nova-chat.active {
    display: flex;
}

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

.nova-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 400px;
}

.nova-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.nova-message.assistant {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
}

.nova-chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nova-chat-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 0.9rem;
    resize: none;
}

.nova-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.nova-suggestion {
    padding: 0.5rem 0.75rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-suggestion:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
}

/* Disclaimer styles */
.disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
}

.disclaimer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Mobile Nova adjustments */
@media (max-width: 768px) {
    .nova-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .nova-float > div {
        font-size: 1.5rem !important;
    }

    .nova-chat {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 5rem;
    }
}
