/* Symtraflow - Admin & Master Data Styling (Matching Production Monitoring System) */

/* Page View Switching */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Stat Cards in Clean Light Theme */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-rose { background: #fff1f2; color: #e11d48; }
.icon-amber { background: #fffbe6; color: #d97706; }
.icon-emerald { background: #ecfdf5; color: #059669; }

.admin-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.admin-stat-lbl {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

/* Role Matrix Guide (Clean light theme matching Production Monitoring) */
.role-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.role-card-simple {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.role-pill-super { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.role-pill-so { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.role-pill-prod { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

.role-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.role-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.perm-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-perm {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.chip-perm.active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.chip-perm.locked {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px dashed #cbd5e1;
}

/* User Avatar & Name in Table */
.user-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.user-meta-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
}

.user-meta-sub {
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
}

/* Action Buttons inside tables */
.btn-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
}

.btn-action-icon:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-action-icon.danger:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Preset Selector Cards in Modal */
.preset-selector-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.preset-choice {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-choice:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.preset-choice.selected {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.preset-choice i {
  font-size: 18px;
  margin-bottom: 4px;
  display: block;
}

.preset-choice-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.preset-choice-sub {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

/* Permissions Checklist Box in Modal */
.permissions-checklist {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.perm-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.perm-check-row:hover {
  background: #ffffff;
}

.perm-check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
  margin-top: 2px;
  cursor: pointer;
}

.perm-check-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.perm-check-desc {
  font-size: 11px;
  color: #64748b;
}

/* Audit Logs List */
.audit-logs-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-log-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.audit-log-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.audit-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.audit-meta {
  font-size: 11px;
  color: #64748b;
}
