/* Estilos para o Mural da Equipe (Team Notes) - Estilo Post-it Adaptado */

.team-notes-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.3s ease-out;
}

.team-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.team-notes-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-note-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.add-note-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.note-form-container {
    background: var(--bg-primary);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

.note-textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.note-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.note-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Post-it Card Style */
.team-note-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Mais quadrado como post-it */
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--accent); /* Dá uma cor no topo */
}

.team-note-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(to top left, var(--bg-primary) 50%, rgba(255,255,255,0.05) 50%);
    border-top-left-radius: 4px;
    box-shadow: -1px -1px 2px rgba(0,0,0,0.1);
}

.team-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 8px 15px rgba(0, 0, 0, 0.2);
}

.team-note-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
    white-space: pre-wrap;
    word-break: break-word;
    flex-grow: 1;
}

.team-note-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.team-note-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-note-actions {
    display: flex;
    gap: 12px;
    opacity: 1; /* Always visible */
}

.team-note-card:hover .team-note-actions {
    opacity: 1;
}

.team-note-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.team-note-actions button:hover {
    opacity: 1;
}

.team-note-actions button:hover {
    transform: translateY(-1px);
}

.team-note-actions button.edit-btn:hover { color: #3b82f6; border-color: #3b82f6; background: rgba(59, 130, 246, 0.15); }
.team-note-actions button.delete-btn:hover { color: #ef4444; border-color: #ef4444; background: rgba(239, 68, 68, 0.15); }

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

@media (max-width: 768px) {
    .notes-list {
        grid-template-columns: 1fr;
    }
    
    .team-note-actions {
        opacity: 1; /* Always visible on mobile */
    }
}


.team-note-card.pinned {
    border: 1px solid rgba(234, 179, 8, 0.4); /* Golden border */
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.team-note-actions button.pin-btn:hover { color: #eab308; border-color: #eab308; background: rgba(234, 179, 8, 0.15); }
