.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--dg-surface);
  border-bottom: 1px solid var(--dg-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-tabs {
  display: flex;
  gap: 0;
  background: var(--dg-surface);
  border-bottom: 2px solid var(--dg-border);
  padding: 0 24px;
}
.tab {
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--dg-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.tab:hover { color: var(--dg-text); }
.tab.active { color: var(--dg-primary); border-bottom-color: var(--dg-primary); }

.admin-main {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 24px;
}

.app-card {
  background: var(--dg-surface);
  border-radius: var(--dg-radius);
  box-shadow: var(--dg-shadow);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.app-card.is-editing {
  border-color: #ffb300;
  background: linear-gradient(135deg, #fff8dc 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(255, 179, 0, 0.18);
}
.app-card-info { flex: 1; }
.app-card-info h4 { margin-bottom: 4px; }
.app-card-info .app-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--dg-text-muted);
}
.app-card-actions { display: flex; gap: 8px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-saml { background: #e8eaf6; color: #1a237e; }
.badge-oidc { background: #fff3e0; color: #e65100; }
.badge-ldap { background: #e8f5e9; color: #1b5e20; }
.badge-hr { background: #e0f2f1; color: #00695c; }
.badge-travel { background: #fce4ec; color: #c62828; }
.badge-detail { background: #eceff1; color: #37474f; }

.path-link {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--dg-primary-light);
  text-decoration: none;
}
.path-link:hover { text-decoration: underline; }

.config-section {
  margin-top: 16px;
  padding: 18px;
  background: #fafbff;
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius);
}

.config-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.config-section-header h5 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--dg-text);
}

.config-section-header p {
  margin: 0;
  font-size: 13px;
  color: var(--dg-text-muted);
}

.config-section-body {
  margin-top: 12px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: var(--dg-radius);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dg-text);
}

#app-form-container.is-editing {
  border: 2px solid #ffb300;
  box-shadow: 0 14px 30px rgba(255, 179, 0, 0.18);
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
}

.app-editing-indicator {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff4cc 0%, #ffe082 100%);
  color: #7a4b00;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(122, 75, 0, 0.12);
}
