/* 👥 Felhasználókezelés Mobil Stílusok */

.users-container {
  padding: 124px 20px 30px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* User Card container */
.user-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  transition: transform 0.2s var(--transition-bezier), box-shadow 0.2s var(--transition-bezier);
}

.user-card:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* User Card Rows (Strictly 2-Row layout) */
.user-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-card-name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.user-card-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.user-card-username {
  display: flex;
  align-items: center;
}

.user-card-username i {
  color: #9ca3af;
  margin-right: 4px;
}

.user-card-badge {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
}

.user-card-badge i {
  color: #3b82f6;
  margin-right: 4px;
}

.user-card-info-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3D78A8 0%, #2c3e50 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.user-card-info-btn i {
  font-size: 11px;
}

/* Toggle Switch Styles */
.user-toggle-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.user-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.user-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.user-toggle-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.user-toggle-switch input:checked + .user-toggle-slider {
  background-color: #10B981;
}

.user-toggle-switch input:checked + .user-toggle-slider::before {
  transform: translateX(14px);
}

/* Header Styles */
.users-search-header {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  min-height: 58px;
}

.users-header-default {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  animation: fadeIn 0.2s ease-out;
}

.users-header-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.users-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.users-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.users-action-btn:hover {
  background: var(--panel-bg-solid);
}

.users-action-btn.primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.users-action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.users-header-search {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  animation: slideInLeft 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.users-search-close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.users-search-close-btn:hover {
  color: var(--text-main);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
