/* ========================================================================
   Retrospectiva — estilos
   ======================================================================== */

.rt-toolbar {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: end;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.rt-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 180px; }
.rt-field.grow { flex: 1; }
.rt-field label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.rt-input, .rt-select {
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--t);
    width: 100%;
}
.rt-input:focus, .rt-select:focus { border-color: var(--accent); }
.rt-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 14px;
    padding-right: 2rem;
}
.rt-select option { background: var(--bg-card); color: var(--text); }

.rt-actions-top {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-left: auto;
}

.rt-action-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.83rem;
    cursor: pointer;
    transition: all var(--t);
}
.rt-action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.rt-action-btn.primary {
    background: var(--accent); color: white; border-color: var(--accent); font-weight: 600;
}
.rt-action-btn.primary:hover { background: var(--accent-hover); }
.rt-action-btn.danger:hover { color: var(--red); border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.06); }
.rt-action-btn svg { width: 14px; height: 14px; }

/* ===== BOARD ===== */
.rt-board {
    display: grid;
    grid-template-columns: repeat(var(--rt-cols, 3), 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 980px) {
    .rt-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .rt-board { grid-template-columns: 1fr; }
}

.rt-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    min-height: 360px;
    transition: border-color var(--t), background var(--t);
}
.rt-column.drag-over {
    border: 2px dashed var(--accent);
    background: var(--accent-soft);
}

.rt-column-head {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    color: white;
}
.rt-column-head.color-green   { background: linear-gradient(180deg, rgba(129,199,132,0.95), rgba(129,199,132,0.7)); }
.rt-column-head.color-red     { background: linear-gradient(180deg, rgba(239,68,68,0.95),  rgba(239,68,68,0.7)); }
.rt-column-head.color-blue    { background: linear-gradient(180deg, rgba(100,181,246,0.95),rgba(100,181,246,0.7)); }
.rt-column-head.color-orange  { background: linear-gradient(180deg, rgba(255,183,77,0.95), rgba(255,183,77,0.7)); color: #1a1a1a; }
.rt-column-head.color-purple  { background: linear-gradient(180deg, rgba(186,104,200,0.95),rgba(186,104,200,0.7)); }

.rt-column-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.rt-column-count {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0,0,0,0.25);
    padding: 0.18rem 0.5rem;
    border-radius: 50px;
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.rt-column-body {
    padding: 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 80px;
}

.rt-add-form {
    display: flex; gap: 0.4rem;
    margin-bottom: 0.4rem;
}
.rt-add-input {
    flex: 1;
    padding: 0.5rem 0.7rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--t);
}
.rt-add-input:focus { border-color: var(--accent); }
.rt-add-btn {
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: var(--radius-xs);
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--t);
    flex-shrink: 0;
}
.rt-add-btn:hover { background: var(--accent-hover); }
.rt-add-btn svg { width: 14px; height: 14px; }

.rt-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    border: 1px dashed var(--border);
    border-radius: var(--radius-xs);
    padding: 1rem;
    text-align: center;
    opacity: 0.65;
    min-height: 60px;
}

/* ===== NOTE CARD ===== */
.rt-note {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.6rem 0.7rem 0.5rem;
    cursor: grab;
    transition: border-color var(--t), background var(--t), transform var(--t);
    touch-action: none;
    user-select: none;
}
.rt-note:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}
.rt-note.dragging { opacity: 0.4; cursor: grabbing; }

.rt-note-text {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
    white-space: pre-wrap;
    cursor: text;
}
.rt-note-edit {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--accent);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.86rem;
    padding: 0.4rem 0.5rem;
    outline: none;
    resize: vertical;
    min-height: 60px;
    line-height: 1.45;
}

.rt-note-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border);
}
.rt-note-actions {
    display: flex; gap: 0.25rem;
}
.rt-note-action {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--t);
}
.rt-note-action:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}
.rt-note-action.up:hover {
    color: var(--green);
    border-color: rgba(34,197,94,0.4);
    background: rgba(34,197,94,0.08);
}
.rt-note-action.del:hover {
    color: var(--red);
    border-color: rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.08);
}
.rt-note-action svg { width: 12px; height: 12px; }
.rt-note-move {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    padding: 0.18rem 0.55rem 0.18rem 0.4rem;
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.3rem center;
    background-size: 10px;
    padding-right: 1.3rem;
    transition: all var(--t);
}
.rt-note-move:hover { border-color: var(--accent); color: var(--accent); }
.rt-note-move option { background: var(--bg-card); color: var(--text); }

.rt-note-votes {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    padding: 0.18rem 0.55rem;
    background: rgba(255,255,255,0.04);
    border-radius: 50px;
}
.rt-note-votes.has-votes {
    color: var(--green);
    background: rgba(34,197,94,0.1);
}
.rt-note-votes svg { width: 11px; height: 11px; }

/* Ghost during drag */
.rt-note-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.85;
    transform: rotate(-1.5deg);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
    border-color: var(--accent) !important;
    background: var(--bg-card) !important;
    cursor: grabbing;
}
@media (prefers-reduced-motion: reduce) {
    .rt-note-ghost { transform: none; }
}

.rt-error {
    margin-top: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-xs);
    color: var(--red);
    font-size: 0.85rem;
}
