/* Gestionale Festa Vigili del Fuoco */

body { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-heading { font-family: 'Space Grotesk', sans-serif; }

[x-cloak] { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Glass cards */
.glass {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Festive hero gradient */
.hero-pompieri {
    background: linear-gradient(135deg, #7A0620 0%, #C8102E 50%, #F39200 100%);
    color: white;
}

/* Stat card hover */
.stat-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(200, 16, 46, 0.2);
}

/* Kanban */
.kanban-col {
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 14px;
    min-height: 200px;
}
.kanban-col.drag-over { background: #fff1f1; border-color: #ff8585; }
.kanban-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    cursor: grab;
    transition: box-shadow .15s ease;
}
.kanban-card:hover { box-shadow: 0 6px 18px -8px rgba(0,0,0,0.15); }
.kanban-card.sortable-ghost { opacity: .4; }
.kanban-card.sortable-drag { transform: rotate(2deg); }

/* Priority colors */
.pri-low    { border-left: 4px solid #94a3b8; }
.pri-medium { border-left: 4px solid #3b82f6; }
.pri-high   { border-left: 4px solid #f59e0b; }
.pri-urgent { border-left: 4px solid #C8102E; background: #fff8f8; }

/* Progress bar */
.progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    height: 8px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C8102E 0%, #F39200 100%);
    border-radius: 999px;
    transition: width .3s ease;
}

/* Form helpers */
.input, .select, .textarea {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: white;
    font-size: 0.875rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
.label { display: block; font-size: 0.8125rem; font-weight: 500; color: #475569; margin-bottom: 0.25rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 0.6rem; font-size: 0.875rem; font-weight: 600; transition: all .15s ease; cursor: pointer; border: none; }
.btn-primary { background: #C8102E; color: white; }
.btn-primary:hover { background: #A30828; }
.btn-secondary { background: white; color: #334155; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #f8fafc; }
.btn-danger { background: white; color: #C8102E; border: 1px solid #FFBABA; }
.btn-danger:hover { background: #FFF1F1; }
.btn-ghost { background: transparent; color: #64748b; }
.btn-ghost:hover { background: #f1f5f9; color: #0f172a; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8125rem; }

/* Cards */
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
}
.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

/* Badge */
.badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tbl thead th { background: #f8fafc; padding: 0.6rem 0.8rem; text-align: left; font-weight: 600; color: #475569; border-bottom: 1px solid #e2e8f0; }
.tbl tbody td { padding: 0.6rem 0.8rem; border-bottom: 1px solid #f1f5f9; }
.tbl tbody tr:hover { background: #fafbfc; }

/* Empty state */
.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}
.empty i { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: #cbd5e1; }

/* Mobile */
@media (max-width: 640px) {
    .card { padding: 1rem; border-radius: 0.75rem; }
    .tbl thead { display: none; }
    .tbl tbody tr { display: block; padding: 0.5rem; border-bottom: 2px solid #f1f5f9; }
    .tbl tbody td { display: flex; justify-content: space-between; padding: 0.4rem 0; border: none; }
    .tbl tbody td::before {
        content: attr(data-label);
        font-weight: 600; color: #64748b; margin-right: 1rem;
    }
}
