/* ============================================================
   VISUAL OVERHAUL — New CSS Classes
   ============================================================ */

/* Card accent left border */
.card-accent-left { position:relative; border-left:4px solid transparent; }
.card-accent-green { border-left-color:#10b981; }
.card-accent-purple { border-left-color:#8b5cf6; }
.card-accent-orange { border-left-color:#f59e0b; }
.card-accent-blue { border-left-color:#3b82f6; }
.card-accent-red { border-left-color:#ef4444; }
.card-accent-gray { border-left-color:#94a3b8; }

/* Card pillar rows — 3 pilares (Entidade, Auditoria, Equipe/Auditor) */
.card-pillar { display:flex; align-items:center; gap:0.4rem; padding:0.2rem 0; font-size:0.82rem; }
.card-pillar-label { color:var(--text-muted); font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:0.03em; min-width:65px; flex-shrink:0; }
.card-pillar-value { color:var(--text-primary); font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Improved fisc-card with accent */
.fisc-card { transition:all 0.2s ease; }
.fisc-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-1px); }

/* Mini stat cards row */
.stats-row { display:flex; gap:0.75rem; margin-bottom:1rem; flex-wrap:wrap; }
.stat-mini { background:white; border:1px solid var(--border); border-radius:10px; padding:0.75rem 1rem; display:flex; align-items:center; gap:0.75rem; flex:1; min-width:140px; transition:all 0.15s ease; }
.stat-mini:hover { box-shadow:var(--shadow-md); }
.stat-mini-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.stat-mini-val { font-size:1.2rem; font-weight:800; color:var(--text); line-height:1; }
.stat-mini-lbl { font-size:0.69rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.04em; font-weight:500; margin-top:1px; }

/* Badge improvements */
.badge-modo-conformidade { background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }
.badge-modo-inspecao { background:#fdf4ff; color:#7e22ce; border:1px solid #e9d5ff; }
.badge-modo-misto { background:#fffbeb; color:#92400e; border:1px solid #fde68a; }
.badge-enviado { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }

/* Type icon circle */
.type-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.type-icon svg { width:16px; height:16px; }

/* Progress bar */
.progress-bar-wrap { width:100%; background:var(--border-light); border-radius:6px; height:6px; overflow:hidden; margin-top:0.35rem; }
.progress-bar-fill { height:100%; border-radius:6px; transition:width 0.4s ease; background:linear-gradient(90deg, var(--primary), #2d5280); }
.progress-bar-fill.green { background:linear-gradient(90deg, #10b981, #059669); }

/* Proc detail header */
.proc-detail-header { display:flex; align-items:center; gap:0.75rem; margin-bottom:1rem; flex-wrap:wrap; }
.proc-detail-title { font-size:1.1rem; font-weight:700; flex:1; min-width:200px; }
.proc-detail-badges { display:flex; gap:0.35rem; align-items:center; flex-wrap:wrap; }

/* Info grid with icons */
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.625rem; }
.info-item { display:flex; align-items:flex-start; gap:0.5rem; font-size:0.82rem; padding:0.5rem 0.625rem; background:var(--bg); border-radius:8px; }
.info-item-icon { width:18px; height:18px; color:var(--primary); flex-shrink:0; margin-top:1px; }
.info-item-icon svg { width:18px; height:18px; }
.info-item-label { font-weight:600; color:var(--text-secondary); font-size:0.7rem; text-transform:uppercase; letter-spacing:0.03em; }
.info-item-val { font-weight:500; color:var(--text); }
.info-item.full { grid-column:1/-1; }

/* Proc tabs with counter */
.proc-tab-counter { display:inline-flex; align-items:center; justify-content:center; background:var(--bg); padding:0.1rem 0.45rem; border-radius:10px; font-size:0.69rem; font-weight:700; margin-left:0.3rem; color:var(--text-muted); }
.proc-tab.active .proc-tab-counter { background:var(--primary-50); color:var(--primary); }

/* IA Button highlighted */
.btn-ia { background:linear-gradient(135deg, #1e3a5f, #2d5280); color:white; box-shadow:0 2px 8px rgba(30,58,95,0.3); font-size:0.88rem; padding:0.7rem 1.25rem; }
.btn-ia:hover { box-shadow:0 4px 16px rgba(30,58,95,0.35); transform:translateY(-1px); }
.btn-ia svg { filter:drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }

/* Admin row improved */
.admin-row { transition:all 0.2s ease; }
.admin-row:hover { transform:translateY(-1px); }

/* Admin card style (for templates/achados) */
.admin-card { background:white; border:1px solid var(--border); border-radius:var(--radius-lg); padding:1rem 1.25rem; display:flex; align-items:center; gap:0.875rem; transition:all 0.2s ease; margin-bottom:0.5rem; }
.admin-card:hover { box-shadow:var(--shadow-md); border-color:var(--primary-200); transform:translateY(-1px); }
.admin-card-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.admin-card-icon svg { width:20px; height:20px; }
.admin-card-body { flex:1; min-width:0; }
.admin-card-title { font-weight:600; font-size:0.85rem; display:flex; align-items:center; gap:0.35rem; flex-wrap:wrap; }
.admin-card-sub { font-size:0.72rem; color:var(--text-muted); margin-top:0.15rem; display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; }
.admin-card-sub .tag { background:var(--bg); padding:0.1rem 0.4rem; border-radius:4px; font-weight:500; }
.admin-card-actions { display:flex; gap:0.35rem; flex-shrink:0; }

/* Improved Loading Overlay */
@keyframes sparkle { 0%{transform:scale(1) rotate(0deg)} 25%{transform:scale(1.1) rotate(5deg)} 50%{transform:scale(1) rotate(0deg)} 75%{transform:scale(1.1) rotate(-5deg)} 100%{transform:scale(1) rotate(0deg)} }
@keyframes progressSlide { 0%{transform:translateX(-100%)} 100%{transform:translateX(200%)} }
.loading-icon { width:64px; height:64px; border-radius:18px; background:linear-gradient(135deg, #1e3a5f, #2d5280); display:flex; align-items:center; justify-content:center; animation:sparkle 2s ease-in-out infinite; box-shadow:0 8px 24px rgba(30,58,95,0.25); }
.loading-icon svg { width:32px; height:32px; color:white; }
.loading-progress { width:200px; height:4px; background:var(--border-light); border-radius:4px; overflow:hidden; position:relative; }
.loading-progress-bar { position:absolute; top:0; left:0; width:50%; height:100%; background:linear-gradient(90deg, var(--primary), #2d5280, var(--primary)); border-radius:4px; animation:progressSlide 1.5s ease-in-out infinite; }
.loading-step { font-size:0.78rem; color:var(--text-muted); font-weight:400; margin-top:-0.25rem; }

/* Improved Empty States */
.empty-icon-green { background:#f0fdf4; }
.empty-icon-green svg { color:#10b981; opacity:0.8; }
.empty-icon-blue { background:#eff6ff; }
.empty-icon-blue svg { color:#3b82f6; opacity:0.8; }
.empty-icon-purple { background:#faf5ff; }
.empty-icon-purple svg { color:#8b5cf6; opacity:0.8; }
.empty-icon-orange { background:#fffbeb; }
.empty-icon-orange svg { color:#f59e0b; opacity:0.8; }
.empty .btn { margin-top:0.25rem; }

/* Modal sections */
.modal-section { margin-bottom:0.5rem; }
.modal-section-title { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted); margin-bottom:0.625rem; padding-bottom:0.375rem; border-bottom:1px solid var(--border-light); display:flex; align-items:center; gap:0.4rem; }
.modal-section-title svg { width:14px; height:14px; opacity:0.5; }
.modal-head h3 { display:flex; align-items:center; gap:0.5rem; }
.modal-head-icon { width:24px; height:24px; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.modal-head-icon svg { width:14px; height:14px; }

/* Btn with icons */
.btn svg { flex-shrink:0; }

/* Improved card hover */
.fisc-card, .admin-card, .admin-row { will-change:transform; }

/* About step icons */
.about-step-num { width:1.6rem; height:1.6rem; border-radius:50%; color:white; font-size:0.75rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.about-step-num.bg-primary { background:var(--primary); }
.about-step-num.bg-green { background:#059669; }
.about-step-num.bg-blue { background:#3b82f6; }
.about-step-num.bg-purple { background:#8b5cf6; }
.about-step-num.bg-orange { background:#f59e0b; }

/* Responsive: stats row */
@media (max-width:768px) {
  .stats-row { flex-direction:column; }
  .info-grid { grid-template-columns:1fr; }
}

