/* ========================================================
   POWERCAKE BUSTA - COMPONENTS: AUDIT, NORMATIVE, PRIVACY
======================================================== */
.license-form {
  display: flex;
  gap: 10px;
}
.input-text {
  flex: 1; background: var(--bg-input); border: 1.5px solid var(--border-color);
  border-radius: 8px; padding: 10px 14px; color: var(--text-dark);
  font-family: inherit; font-size: 14px; outline: none;
}
.input-text:focus {
  border-color: var(--accent-emerald); box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}

.auth-badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.auth-badge.locked { background: #fee2e2; color: #b91c1c; }
.auth-badge.unlocked { background: #d1fae5; color: #047857; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-emerald);
  background: #f0fdf4;
}
.dropzone-icon { font-size: 38px; margin-bottom: 8px; }
.dropzone-title { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.dropzone-desc { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.file-info-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Results KPI */
.results-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi-card {
  background: #f8fafc; border: 1px solid var(--border-color);
  border-radius: 10px; padding: 14px; text-align: center;
}
.kpi-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
}
.kpi-value { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.kpi-value.green { color: var(--accent-emerald); }
.kpi-value.blue { color: #0284c7; }
.kpi-value.orange { color: var(--accent-amber); }

/* Audit Table */
.table-responsive { overflow-x: auto; margin-bottom: 20px; }
.audit-table {
  width: 100%; border-collapse: collapse; font-size: 13px; text-align: left;
}
.audit-table th, .audit-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border-light);
}
.audit-table th {
  background: #f1f5f9; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
}
.badge-tag {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.badge-gl { background: #e0f2fe; color: #0369a1; }
.badge-ok { background: #dcfce7; color: #15803d; }
.badge-omissione { background: #fef3c7; color: #b45309; }

/* Normative Cards Grid */
.normative-grid {
  display: flex; flex-direction: column; gap: 12px;
}
.normative-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.normative-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.normative-badge {
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
  background: #d1fae5; color: #047857;
}
.normative-badge.warning { background: #fef3c7; color: #b45309; }
.normative-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.normative-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

/* Actions Row */
.actions-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Multi-file & Folder upload actions */
.dropzone-btn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-outline-emerald {
  background: #ffffff;
  border: 1.5px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-outline-emerald:hover {
  background: var(--accent-emerald);
  color: #ffffff;
}

/* Password section & alert reminders */
.password-box {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.password-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.app-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  width: 100%;
}
.alert-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}
.alert-error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}
.input-attention {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}
