/* --- CONFIGURAÇÕES GERAIS --- */
html, body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Scrollbar invisível mas funcional */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Evita zoom em inputs no iOS */
@media (max-width: 768px) {
    input, select, textarea { font-size: 16px !important; }
} 

/* --- FORM CONTROLS (Padrão Painel) --- */
.form-control-modern {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 0.75rem; /* rounded-xl */
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.form-control-modern:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* --- LOADING OVERLAY --- */
#loading-overlay {
    position: fixed; inset: 0; background: white; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}

/* --- TAB BUTTONS --- */
.tab-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b; /* slate-500 */
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tab-btn:hover { color: #334155; background-color: #f1f5f9; }
.tab-btn.active {
    background-color: #ffffff;
    color: #1e293b; /* slate-800 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

/* --- CARDS DE TAREFAS --- */
.card-tarefa {
    background: white;
    border-radius: 1rem; /* rounded-2xl */
    padding: 1.25rem;
    position: relative;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    will-change: transform;
}
.card-tarefa:active { transform: scale(0.99); }

/* Bordas Laterais por Tipo */
.card-tarefa.tipo-saida { border-left: 5px solid #f97316; } /* Laranja */
.card-tarefa.tipo-arrumacao { border-left: 5px solid #3b82f6; } /* Azul */
.card-tarefa.tipo-entrada { border-left: 5px solid #9333ea; } /* Roxo */
.card-tarefa.tipo-urgente { border-left: 5px solid #ef4444; animation: pulse 2s infinite; }

/* Status Pill */
.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- CHECKLIST ITEMS --- */
.check-btn {
    transition: all 0.2s;
    border: 1px solid transparent;
}
.check-btn:active { transform: scale(0.9); }

/* --- BOTÕES DE AÇÃO --- */
.btn-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}
.btn-gradient-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.3);
}

/* --- ANIMAÇÕES --- */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-card { animation: fade-in-up 0.3s ease-out forwards; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }

/* Estilo para a lista de auditoria no modal */
#editor-lista-container div.bg-white {
    transition: all 0.2s ease;
}
#editor-lista-container div.bg-white:hover {
    border-color: #cbd5e1;
}