/* User Display */
.user-display {
	display: flex;
	justify-content: space-between;
	padding: 20px;
	gap: 20px;
}

.user-display-left-panel,
.user-display-right-panel {
	background-color: #1c1c1c;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	padding: 20px;
	flex: 1;
	min-height: 500px;
	overflow-y: auto;
}

.user-display-left-panel {
	max-width: 40%;
}

.user-display-right-panel {
	max-width: 60%;
}

.user-display-left-panel h2,
.user-display-right-panel h2 {
	margin-top: 0;
	font-size: 1.5em;
	color: #ffffff;
	border-bottom: 1px solid #333;
	padding-bottom: 10px;
}

/* All Users Display */
#all-users-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

.user-card {
	background-color: #2a2a2a;
	padding: 10px 15px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.user-card:hover {
	background-color: #3a3a3a;
}

/* Edit User Display */
#edit-user-form {
	margin-top: 10px;
	color: #ddd;
}

#edit-user-form p {
	color: #888;
	font-style: italic;
}

.edit-user-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.edit-user-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 20px;
	align-items: center;
}

.edit-user-labels label {
	font-weight: bold;
	text-align: right;
}

.edit-user-fields input[type="text"],
.edit-user-fields input[type="checkbox"],
.edit-user-fields input[type="dropdown"] {
	width: 100%;
	padding: 6px;
	box-sizing: border-box;
}

.edit-user-fields input[disabled] {
	background-color: #eee;
	color: #666;
	cursor: not-allowed;
}

.edit-user-fields input[type="checkbox"] {
	width: auto;
	transform: scale(1.2);
	margin-top: 4px;
}

/* Pending Refresh Button */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5em;
}

.section-header h2 {
	margin: 0;
	font-size: 1.4rem;
}

.btn-refresh {
	background-color: transparent;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: #3498db;
	padding: 0.2em 0.4em;
	transition: transform 0.2s ease;
}

.btn-refresh:hover {
	transform: rotate(90deg);
	color: #2980b9;
}

/* Back to home button */
.btn-backtoadminpanel {
  --btn-bg-1: hsla(210, 100%, 70%, 1);
  --btn-bg-2: hsla(210, 100%, 50%, 1);
  --btn-bg-color: #fff;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5em 1em;
  min-width: 100px;
  min-height: 36px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: 0.5em;
  color: var(--btn-bg-color);
  box-shadow:
    0px 0px 20px rgba(71, 157, 255, 0.5),
    0px 5px 5px -1px rgba(58, 140, 233, 0.25),
    inset 4px 4px 8px rgba(175, 211, 255, 0.5),
    inset -4px -4px 8px rgba(19, 102, 216, 0.35);
}

.btn-backtoadminpanel:hover {
  background-position: right top;
}

.btn-backtoadminpanel:is(:focus, :focus-visible, :active) {
  outline: none;
  box-shadow:
    0 0 0 3px var(--btn-bg-color),
    0 0 0 6px var(--btn-bg-2);
}

/* Toggle Switch */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  right: 0.3em;
  bottom: 0.3em;
  transform: translateX(150%);
  background-color: #59d102;
  border-radius: inherit;
  transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.slider:after {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  left: 0.3em;
  bottom: 0.3em;
  background-color: #cccccc;
  border-radius: inherit;
  transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #59d102;
}

.switch input:checked + .slider:before {
  transform: translateY(0);
}

.switch input:checked + .slider::after {
  transform: translateX(-150%);
}

/* Status Message */
.local-status-message {
  margin: 10px 0 20px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  display: none;
}

.local-status-message.success {
  background-color: #28a745;
  color: white;
}

.local-status-message.warning {
  background-color: #ffc107;
  color: black;
}

.local-status-message.error {
  background-color: #dc3545;
  color: white;
}