/* Modal de Imagem */
.modal-imagem {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-imagem-conteudo {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-imagem-conteudo img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.modal-imagem-fechar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10001;
}

.modal-imagem-fechar:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-imagem-nome {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Estilos para anexos */
.comuniki-anexos {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comuniki-anexo {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
    max-width: 200px;
}

.comuniki-imagem-miniatura {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.comuniki-imagem-miniatura:hover {
    transform: scale(1.05);
}

.comuniki-nome-arquivo {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
    word-break: break-word;
}

.comuniki-arquivo-generico {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.comuniki-arquivo-generico i {
    font-size: 20px;
    color: #666;
}

.comuniki-arquivo-generico span {
    font-size: 12px;
    color: #666;
    word-break: break-word;
}

/* Estilos para preview de arquivos */
.comuniki-arquivos-selecionados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.comuniki-arquivo-preview {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
    max-width: 150px;
}

.comuniki-arquivo-preview img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.comuniki-arquivo-preview span {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    display: block;
    text-align: center;
    word-break: break-word;
}

.comuniki-remover-arquivo {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comuniki-remover-arquivo:hover {
    background: #c82333;
}

/* Estilos para mensagens com anexos */
.mensagem-anexos {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.anexo {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
    max-width: 200px;
}

.imagem-miniatura {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.imagem-miniatura:hover {
    transform: scale(1.05);
}

.nome-arquivo {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
    word-break: break-word;
}

.arquivo-generico {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.arquivo-generico i {
    font-size: 20px;
    color: #666;
}

.arquivo-generico span {
    font-size: 12px;
    color: #666;
    word-break: break-word;
}

/* Estilos para preview de arquivos no admin */
.arquivos-selecionados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.arquivo-preview {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
    max-width: 150px;
}

.arquivo-preview img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.arquivo-preview span {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    display: block;
    text-align: center;
    word-break: break-word;
}

.remover-arquivo {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remover-arquivo:hover {
    background: #c82333;
} 