/* ============================================================
   CHAOS CREATURES — ADMINISTRATIVE PORTAL STYLESHEET
   Premium glassmorphism, responsive grids, and clean dark theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-primary:    #06080d;
  --bg-secondary:  #0d1017;
  --bg-tertiary:   #151a24;
  --bg-card:       #111520;
  --bg-glass:      rgba(11, 14, 20, 0.85);

  --text-primary:  #e8ecf2;
  --text-secondary:#8894a8;
  --text-tertiary: #505c72;

  --accent:        #22c55e;
  --accent-hover:  #16a34a;
  --accent-light:  #4ade80;
  --accent-glow:   rgba(34, 197, 94, 0.3);
  --accent-subtle: rgba(34, 197, 94, 0.07);

  --accent-2:      #3b82f6;
  --accent-2-hover:#2563eb;
  --accent-2-glow: rgba(59, 130, 246, 0.25);

  --warning:       #f59e0b;
  --warning-bg:    rgba(245, 158, 11, 0.1);
  --danger:        #ef4444;
  --danger-bg:     rgba(239, 68, 68, 0.1);
  --info:          #3b82f6;
  --info-bg:       rgba(59, 130, 246, 0.1);

  --border:        rgba(255, 255, 255, 0.05);
  --border-hover:  rgba(255, 255, 255, 0.1);
  --border-accent: rgba(34, 197, 94, 0.35);

  --shadow-sm:     0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md:     0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.03);

  --font-display:  'Outfit', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --sidebar-width: 260px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 250ms;
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.01) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover {
  color: var(--accent-light);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================================
   LOGIN STYLES
   ============================================================ */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 10;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s var(--ease);
}

.login-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.login-logo {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulseGlow 3s infinite alternate;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease);
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent);
  color: #06080d;
  font-weight: 600;
  padding: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

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

.login-error {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
  animation: shake 0.4s ease-in-out;
  text-align: center;
}

/* ============================================================
   MAIN APP LAYOUT
   ============================================================ */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform var(--duration) var(--ease);
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-size: 1.8rem;
}

.sidebar-brand h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.sidebar-brand span {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.nav-link.active {
  color: #06080d;
  background: var(--accent);
  font-weight: 600;
}

.nav-link-icon {
  font-size: 1.2rem;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.1);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.user-info .user-name {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
}

.user-info .user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

/* Main Content Panel */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 40px;
  min-height: 100vh;
  position: relative;
  z-index: 10;
  transition: margin var(--duration) var(--ease);
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.page-title h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

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

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #94a3b8;
  border-radius: var(--radius-full);
  display: inline-block;
}

.status-dot.synced {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s infinite;
}

.status-dot.offline {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* ============================================================
   DASHBOARD GRID & KPI CARDS
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.kpi-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-desc {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  margin-top: 10px;
  line-height: 1.3;
}

/* Dashboard Bottom Grid */
.dashboard-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.dashboard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-action {
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.activity-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.activity-badge.feed {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
}

.activity-badge.refusal {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.activity-badge.weight {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.activity-badge.health {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.activity-details {
  flex: 1;
}

.activity-details strong {
  color: var(--text-primary);
}

.activity-time {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ============================================================
   TABLES & CONTROLS
   ============================================================ */
.control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 40px;
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.filter-select:hover {
  border-color: var(--border-hover);
}

.filter-select:focus {
  border-color: var(--accent);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  margin-bottom: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.ok {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge.hungry {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
  animation: pulseBorder 1.5s infinite alternate;
}

.badge.male {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.badge.female {
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
}

.badge.unknown {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
}

/* ============================================================
   MODALS & DETAIL VIEW STYLES
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  width: 100%;
  max-width: 800px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: translateY(20px);
  transition: transform var(--duration) var(--ease);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-card.form-modal {
  max-width: 500px;
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.modal-close:hover {
  color: var(--danger);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.1);
}

/* Profile Detail Layout */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card-simple {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.profile-avatar {
  font-size: 3rem;
  margin-bottom: 12px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-species {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.profile-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.profile-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.profile-meta-label {
  color: var(--text-secondary);
}

.profile-meta-value {
  font-weight: 600;
}

/* Tabs */
.tab-group {
  margin-bottom: 20px;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.tab-btn {
  padding: 10px 4px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration) var(--ease);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s var(--ease);
}

/* Forms Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .form-group.full-width {
  grid-column: span 2;
}

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.qr-code-wrapper h4 {
  color: #06080d;
  font-weight: 700;
}

.qr-image {
  width: 200px;
  height: 200px;
}

/* Custom Sparkline Canvas */
.sparkline-canvas {
  width: 80px;
  height: 24px;
  vertical-align: middle;
}

/* Settings styling */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.settings-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.settings-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.code-block {
  background: #000;
  color: #4ade80;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  user-select: all;
  white-space: pre;
  max-height: 200px;
}

/* ============================================================
   ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 12px var(--accent)); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulseBorder {
  0% { border-color: rgba(239, 68, 68, 0.2); }
  100% { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 8px rgba(239, 68, 68, 0.15); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1024px) {
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .form-group.full-width {
    grid-column: span 1;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   PRINT AND LABEL LAYOUT STYLES
   ============================================================ */
.print-only-layout {
  display: none;
}

@media print {
  body > * {
    display: none !important;
  }
  
  .print-only-layout {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 3.5in !important;
    height: 1.5in !important;
    margin: 0 !important;
    padding: 0.08in !important;
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .print-label-card {
    border: 1.5px solid #000 !important;
    border-radius: 6px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 5px !important;
    box-sizing: border-box !important;
  }
  
  .print-label-header {
    font-weight: 800 !important;
    font-size: 8px !important;
    text-align: center !important;
    border-bottom: 1px solid #000 !important;
    padding-bottom: 2px !important;
    letter-spacing: 0.5px !important;
    color: #000 !important;
  }
  
  .print-label-body {
    display: flex !important;
    flex: 1 !important;
    align-items: center !important;
    gap: 8px !important;
    padding-top: 4px !important;
  }
  
  .print-label-qr {
    width: 1.05in !important;
    height: 1.05in !important;
    display: block !important;
  }
  
  .print-label-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    color: #000 !important;
  }
  
  .print-label-id {
    font-weight: 900 !important;
    font-size: 16px !important;
    line-height: 1.0 !important;
    margin-bottom: 2px !important;
  }
  
  .print-label-name {
    font-weight: 700 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin-bottom: 1px !important;
  }
  
  .print-label-species {
    font-size: 8px !important;
    color: #333 !important;
    line-height: 1.1 !important;
    margin-bottom: 1px !important;
  }
  
  .print-label-genes {
    font-size: 7.5px !important;
    color: #444 !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    word-break: break-word !important;
    max-height: 22px !important;
    overflow: hidden !important;
  }
}
