/**
 * DQA Documents Management
 * Sistema de gestión de documentos (Drive)
 */

/* ========================================= */
/* Lista de Documentos */
/* ========================================= */
.dqa-documents-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.dqa-document-card {
    background-color: var(--colorLavandaClaro);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: default;
}

.dqa-doc-icon-wrapper {
    font-size: 40px;
    margin-bottom: 10px;
    display: none;
}

.dqa-doc-icon {
    color: #fff;
}

.dqa-doc-title {
    font-size: 0.9em;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    color: #000;
    font-family: var(--fuentePrincipalDash);
}

.dqa-doc-menu-trigger {
    background-color: transparent !important;
    border: none;
    color: #000 !important;
    font-size: 1.1em;
    padding: 5px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.dqa-doc-menu-trigger:hover {
    opacity: 1;
}

/* ========================================= */
/* Menú Contextual */
/* ========================================= */
#dqa-context-menu {
    display: none;
    position: fixed;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    min-width: 150px;
    padding: 5px 0;
}

.dqa-hidden {
    display: none !important;
}

.dqa-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
    display: flex;
    align-items: center;
}

.dqa-menu-item i {
    margin-right: 8px;
    width: 15px;
}

.dqa-menu-item:hover {
    background-color: #f5f5f5;
}

.dqa-menu-item-delete {
    color: #dc3545;
}

/* ========================================= */
/* Área de Subida (Upload Area) */
/* ========================================= */
.dqa-upload-area {
    width: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dqa-upload-icon-container {
    font-size: 3em;
    color: #555;
    margin-bottom: 15px;
}

.dqa-upload-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

/* Estado de arrastre (drag-hover) */
.dqa-upload-area.drag-hover {
    border-color: var(--colorMoradoOscuro);
    background-color: var(--colorLavandaClaro2);
    box-shadow: 0 0 15px rgba(168, 162, 208, 0.6);
}

/* Estado mientras está subiendo */
.dqa-upload-area.is-uploading {
    opacity: 0.7;
    pointer-events: none;
}

.dqa-upload-area .dqa-btn {
    border-color: transparent;
    font-size: 2rem;
    padding: 1rem 2rem;
}
