/* ==========================================
   CSS Variables & Theme
   ========================================== */

:root {
  /* Primary Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success-50: #ecfdf5;
  --success-500: #10b981;
  --success-600: #059669;
  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --warning-50: #fffbeb;
  --warning-500: #f59e0b;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--gray-50);
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
}

/* ==========================================
   Redirect Page Styles
   ========================================== */

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.redirect-container {
  opacity: 0;
  transition: opacity var(--transition-base);
}

.redirect-container.visible {
  opacity: 1;
}

.redirect-box {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 480px;
  width: 100%;
  border: 1px solid var(--gray-100);
}

.redirect-box h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.redirect-box p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: var(--space-2);
  word-break: break-all;
}

.container.error .redirect-box {
  border-color: var(--error-500);
  background: var(--error-50);
}

.container.error h1 {
  color: var(--error-600);
}

/* Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-6);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.container.error .spinner {
  display: none;
}

#countdown {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: var(--space-4);
  font-weight: 500;
}

/* ==========================================
   Admin Login Page
   ========================================== */

.admin-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--space-6);
}

.login-box {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(10px);
}

.login-box .logo {
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.login-box h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--gray-900);
}

.login-box > p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: var(--space-8);
}

.google-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 280px;
}

.google-signin-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.google-signin-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.google-signin-btn svg {
  flex-shrink: 0;
}

#googleSignInButton {
  display: flex;
  justify-content: center;
  margin: var(--space-8) 0;
}

.login-note {
  font-size: 0.8125rem !important;
  color: var(--gray-400) !important;
  margin-top: var(--space-6) !important;
  line-height: 1.5;
}

/* ==========================================
   Admin Main Interface
   ========================================== */

.admin-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
}

/* Header */
.admin-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-brand .logo {
  font-size: 1.75rem;
}

.admin-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-picture {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
}

.user-email {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.header-actions {
  display: flex;
  gap: var(--space-2);
}

.manage-users-btn,
.sign-out-btn {
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.manage-users-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
}

.sign-out-btn:hover {
  background: var(--error-50);
  border-color: var(--error-500);
  color: var(--error-600);
}

/* ==========================================
   Admin Content Area
   ========================================== */

.admin-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card h2 .icon {
  font-size: 1.25rem;
}

/* ==========================================
   Form Styles
   ========================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--gray-700);
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  font-family: inherit;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.form-group small {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Messages */
.message {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.message.success {
  background: var(--success-50);
  color: var(--success-600);
  border: 1px solid var(--success-500);
}

.message.error {
  background: var(--error-50);
  color: var(--error-600);
  border: 1px solid var(--error-500);
}

/* ==========================================
   Button Styles
   ========================================== */

.primary-btn,
.secondary-btn {
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.primary-btn {
  background: var(--primary-600);
  color: white;
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  background: var(--primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: translateY(0);
}

.primary-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.secondary-btn {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.secondary-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* ==========================================
   URL List Styles
   ========================================== */

.url-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.url-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-fast);
  background: white;
}

.url-item:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

.url-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
}

.url-main-info {
  flex: 1;
  min-width: 0;
}

.short-code {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-600);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.short-code .click-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: inherit;
}

.url-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.action-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: var(--gray-50);
}

.action-btn.qr-btn:hover {
  background: var(--success-50);
  border-color: var(--success-500);
  color: var(--success-600);
}

.action-btn.edit-btn:hover {
  background: var(--warning-50);
  border-color: var(--warning-500);
  color: var(--warning-500);
}

.action-btn.copy-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.action-btn.delete-btn:hover {
  background: var(--error-50);
  border-color: var(--error-500);
  color: var(--error-600);
}

.url-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.target-url {
  font-size: 0.8125rem;
  color: var(--gray-500);
  word-break: break-all;
  line-height: 1.5;
}

.target-url a {
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.target-url a:hover {
  color: var(--primary-600);
}

.short-url {
  font-size: 0.8125rem;
  color: var(--gray-600);
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  word-break: break-all;
  border: 1px solid var(--gray-100);
}

.short-url a {
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--primary-600);
}

.url-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: var(--space-2);
}

.url-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Loading & Empty States */
.loading,
.empty,
.error-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.loading::before {
  content: '';
  width: 32px;
  height: 32px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-200);
}

.error-state {
  color: var(--error-600);
  background: var(--error-50);
  border-radius: var(--radius-lg);
}

/* ==========================================
   Footer
   ========================================== */

.admin-footer {
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: var(--space-6);
  text-align: center;
  color: var(--gray-500);
  font-size: 0.8125rem;
}

/* ==========================================
   Modal Styles
   ========================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6);
  animation: fadeIn var(--transition-base);
}

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp var(--transition-slow);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-100);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
}

/* ==========================================
   User Management Styles
   ========================================== */

.add-user-form {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-100);
}

.input-with-button {
  display: flex;
  gap: var(--space-3);
}

.input-with-button input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.input-with-button input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.input-with-button .primary-btn {
  padding: var(--space-3) var(--space-5);
  white-space: nowrap;
}

.user-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.user-list-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

.user-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  background: white;
}

.user-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}

.user-item.inactive {
  opacity: 0.6;
  background: var(--gray-50);
}

.user-item-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.user-item-email {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
}

.user-item-meta {
  display: flex;
  gap: var(--space-2);
  font-size: 0.6875rem;
}

.user-item-role {
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.user-item-role.admin {
  background: var(--error-50);
  color: var(--error-600);
}

.user-item-status {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.user-item-status.active {
  background: var(--success-50);
  color: var(--success-600);
}

.user-item-status.inactive {
  background: var(--error-50);
  color: var(--error-600);
}

.user-item-actions {
  display: flex;
  gap: var(--space-2);
}

.deactivate-btn,
.reactivate-btn {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.deactivate-btn:hover {
  background: var(--error-500);
  border-color: var(--error-500);
  color: white;
}

.reactivate-btn:hover {
  background: var(--success-500);
  border-color: var(--success-500);
  color: white;
}

.super-admin-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   Toast Notifications
   ========================================== */

.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 300px;
  animation: slideInRight var(--transition-slow);
  border-left: 4px solid var(--gray-400);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success {
  border-left-color: var(--success-500);
}

.toast.error {
  border-left-color: var(--error-500);
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-message {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-800);
}

.toast-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: var(--space-1);
  font-size: 1rem;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
  .admin-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .header-brand {
    justify-content: center;
  }

  .user-info {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-actions {
    justify-content: center;
  }

  .admin-content {
    padding: var(--space-4);
  }

  .card {
    padding: var(--space-5);
  }

  .url-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .url-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: var(--space-2);
  }

  .login-box {
    padding: var(--space-8) var(--space-6);
  }

  .modal-content {
    max-height: 90vh;
    margin: var(--space-4);
  }

  .input-with-button {
    flex-direction: column;
  }

  .user-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .user-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .admin-header h1 {
    font-size: 1.125rem;
  }

  .short-code {
    font-size: 1rem;
  }

  .card h2 {
    font-size: 1rem;
  }

  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
  }

  .toast {
    min-width: auto;
  }
}

/* ==========================================
   Utility Classes
   ========================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
