/* Frau Blücher — stili custom (oltre a Tailwind 4 + DaisyUI 5 via CDN) */

html { font-size: 18px; }
html, body { height: 100%; }
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.fb-shell { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.fb-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* Bottom drawer per la chat: NON sovrappone, prende spazio alla pagina */
.fb-bottom-drawer {
    display: none;
    flex-direction: row;
    height: 40vh;
    min-height: 280px;
    max-height: 60vh;
    border-top: 1.5px dashed var(--color-base-300);
    background: var(--color-base-100);
    flex-shrink: 0;
}
.fb-bottom-drawer.open { display: flex; }

/* Side drawer per CRUD form (destro, sopra il contenuto, con backdrop) */
.fb-side-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 480px;
    background: var(--color-base-100);
    border-left: 1px solid var(--color-base-300);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 50;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
}
.fb-side-drawer.open { transform: translateX(0); }
.fb-side-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 40;
}
.fb-side-backdrop.open { display: block; }

/* Kanban */
.fb-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .fb-kanban { grid-template-columns: 1fr; } }
.fb-kanban-col {
    background: var(--color-base-200);
    border: 1.5px dashed var(--color-base-300);
    border-radius: 8px;
    padding: 14px;
    min-height: 200px;
}
.fb-task {
    background: var(--color-base-100);
    border: 1.5px solid var(--color-base-content);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    cursor: grab;
    box-shadow: 2px 2px 0 rgba(31, 27, 22, 0.06);
}
.fb-task:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(31, 27, 22, 0.06); }
.fb-task.is-inprogress { border-left: 4px solid var(--color-primary); }
.fb-task.is-done { opacity: 0.55; }
.fb-task[data-dragging="true"] { opacity: 0.5; }

/* Avatars / chips */
.fb-mini-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 500;
    background: color-mix(in oklch, var(--color-primary) 18%, transparent);
    color: var(--color-primary-content);
    flex-shrink: 0;
}
