/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}


/* =========================
   INPUTS
========================= */
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}


/* =========================
   CARD
========================= */
.card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}


/* =========================
   BADGE
========================= */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-green { background: #e6f4ea; color: var(--green); }
.badge-red { background: #fde8e8; color: var(--red); }
.badge-yellow { background: #fff4e5; color: var(--yellow); }


/* =========================
   ALERT
========================= */
.alert {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 14px;
}


/* =========================
   NAVIGATION
========================= */
.nav-item {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 500;
}


/* =========================
   FORM GROUP
========================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.label {
  font-size: 13px;
  color: var(--text-secondary);
}


/* =========================
   TABLE (BASE)
========================= */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.table th {
  color: var(--text-secondary);
  font-weight: 500;
}


/* =========================
   EMPTY STATE
========================= */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}


/* =========================
   MODAL (BASE)
========================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: 16px;
  width: 400px;
  max-width: 90%;
}


/* =========================
   SWITCHER OVERLAYS
========================= */
.role-switcher,
.status-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.status-switcher {
  right: 240px;
}