/**
 * 📁 ESTILOS DO MÓDULO DOCUMENTOS v2.0
 */

/* Menu dropdown "Novo" */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Grid de documentos */
.documentos-grid {
    animation: fadeIn 0.3s;
}

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

.doc-card {
    transition: all 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.pasta-card:hover {
    border-width: 3px !important;
}

/* Toolbar de busca */
.documentos-toolbar input[type="text"]:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.documentos-toolbar select:focus {
    outline: none;
    border-color: #2196F3;
}

/* Breadcrumb */
#breadcrumb a {
    transition: color 0.2s;
}

#breadcrumb a:hover {
    color: #2196F3 !important;
}

/* Modal extra grande para editores */
.modal-xl .modal-content {
    max-width: 1200px;
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Editor Quill customizado */
.ql-container {
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.ql-editor {
    min-height: 300px;
}

/* Tabela Excel customizada */
#editor-excel input:focus {
    background: #E3F2FD;
    outline: 2px solid #2196F3;
}

#editor-excel input:hover {
    background: #f5f5f5;
}

/* Lista de usuários compartilhados */
input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Barra de progresso de upload */
#upload-progress {
    margin-top: 10px;
}

#upload-bar {
    transition: width 0.3s ease;
    font-weight: 500;
}

/* Badges de categoria */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
}

/* Botões de ação dos cards */
.btn-icon:hover {
    opacity: 0.7;
}

/* Responsivo */
@media (max-width: 768px) {
    .documentos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .doc-card {
        padding: 15px !important;
    }
    
    .doc-card i {
        font-size: 36px !important;
    }
    
    .documentos-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .documentos-toolbar input,
    .documentos-toolbar select {
        width: 100% !important;
    }
    
    .modal-xl .modal-content {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
    }
}

/* Estados de loading */
.doc-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* Animação de hover nos ícones */
.doc-card i,
.pasta-card i {
    transition: transform 0.3s ease;
}

.doc-card:hover i,
.pasta-card:hover i {
    transform: scale(1.1);
}

/* Tags de documento */
.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.doc-tag {
    background: #E0E0E0;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

/* Ícone de compartilhamento */
.fa-users {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
