/* ==========================================================
 * DARK MODE OVERRIDES
 * ========================================================== */

/* ==========================================================
 * 1. MAIN CONTENT
 * ========================================================== */

body.dark-mode .main-content {
  margin-left: 250px;
  flex: 1;
  padding: 30px 40px;
  transition: margin-left 0.28s ease;
}

/* ==========================================================
 * 2. HEADER
 * ========================================================== */

body.dark-mode .user-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

body.dark-mode .user-management-header h2 {
  font-size: 1.6rem;
  color: #f9fafb;
  margin: 0;
}

body.dark-mode .controls-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ==========================================================
 * 3. SEARCH BOX
 * ========================================================== */

body.dark-mode .search-box {
  position: relative;
  width: 280px;
}

body.dark-mode .search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.07);
  color: #f9fafb;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

body.dark-mode .search-box input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

body.dark-mode .search-box input:focus {
  border-color: #d96f32;
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 111, 50, 0.2);
}

body.dark-mode .search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
}

/* ==========================================================
 * 4. ACTION BUTTONS — matches inventory.css exactly
 * ========================================================== */

body.dark-mode .action-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 8px;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  line-height: 1.5;
  vertical-align: middle;
  width: 75px;
  text-align: center;
}

body.dark-mode .update-btn {
  background: rgba(33, 150, 243, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(33, 150, 243, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 12px rgba(33, 150, 243, 0.15);
}
body.dark-mode .update-btn:hover {
  background: rgba(33, 150, 243, 0.22);
  border-color: rgba(33, 150, 243, 0.55);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 16px rgba(33, 150, 243, 0.25);
}

body.dark-mode .delete-btn {
  background: rgba(244, 67, 54, 0.12);
  color: #f87171;
  border: 1px solid rgba(244, 67, 54, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 12px rgba(244, 67, 54, 0.15);
}
body.dark-mode .delete-btn:hover {
  background: rgba(244, 67, 54, 0.22);
  border-color: rgba(244, 67, 54, 0.55);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 16px rgba(244, 67, 54, 0.25);
}

/* ==========================================================
 * 5. TABLE RESPONSIVE WRAPPER
 * ========================================================== */

body.dark-mode .table-responsive {
  overflow-x: auto;
}
