/* Custom styles to complement Bootstrap theme */

/* Document cards */
.document-card {
    transition: transform 0.2s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Chat container */
.chat-container {
    height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 0.25rem;
}

/* Message bubbles */
.message {
    max-width: 85%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.message-user {
    background-color: var(--bs-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.message-assistant {
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-secondary);
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

/* Document content area */
.document-content {
    height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
    white-space: pre-wrap;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-secondary);
    border-radius: 0.25rem;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    width: 2rem;
    height: 2rem;
}

/* Draft preview */
.draft-preview {
    white-space: pre-wrap;
    font-family: 'Times New Roman', Times, serif;
    padding: 1.5rem;
    border: 1px solid var(--bs-secondary);
    border-radius: 0.25rem;
}

/* Document upload zone */
.upload-zone {
    border: 2px dashed var(--bs-secondary);
    border-radius: 0.5rem;
    padding: 3rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.05);
}

/* Login form */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-secondary);
}

/* Modal styles */
.modal-content {
    background-color: var(--bs-dark);
    color: var(--bs-light);
}

.modal-header, .modal-footer {
    border-color: var(--bs-secondary);
}

.modal-body button {
    color: var(--bs-light);
}

/* Make sure all button text and links in modals are visible */
.modal-content .btn, 
.modal-content a.btn {
    color: var(--bs-light);
}

.modal-content .alert {
    color: var(--bs-dark);
}
