/* Estilos para listagem de documentos */
.document-list {
    max-width: 100%;
}

.document-item {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.document-item:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-name {
    font-weight: 500;
    color: #333;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

.document-actions .btn {
    white-space: nowrap;
}

/* Estilos para o viewer de documentos */
.documento-viewer {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

#documento-conteudo {
    background-color: #fff;
    overflow-x: auto;
}

#loading-documento {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Estilos para conteúdo DOCX renderizado */
.docx-content {
    max-width: 100%;
}

.docx-content p {
    margin-bottom: 1em;
}

.docx-content h1,
.docx-content h2,
.docx-content h3,
.docx-content h4,
.docx-content h5,
.docx-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.docx-content ul,
.docx-content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

.docx-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

.docx-content table td,
.docx-content table th {
    border: 1px solid #ddd;
    padding: 8px;
}

.docx-content table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .document-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .document-actions {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .document-actions .btn {
        flex: 1;
    }
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-primary {
    background-color: #0d6efd;
    color: white;
}

/* Bootstrap Icons */
.bi {
    display: inline-block;
    vertical-align: middle;
}

.fs-3 {
    font-size: 1.75rem;
}

.me-3 {
    margin-right: 1rem;
}

.me-1 {
    margin-right: 0.25rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25rem;
}

.text-primary {
    color: #0d6efd !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
