:root{
  --bg: #0f0f10;
  --panel: #141416;
  --panel-2: #1a1b1e;
  --text: #e7e7ea;
  --muted: #a6a6ad;
  --brand: #2ecc71;
  --accent: #3b82f6;
  --border: #2a2b30;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Top Header Bar */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: #0d0d0e;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.topbar .brand {
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
}

.account-name {
  color: var(--text);
  font-weight: 500;
}

/* Container */
.container {
  display: flex;
  margin-top: 56px;
  min-height: calc(100vh - 56px);
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #0b0b0c;
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: fixed;
  left: 0;
  top: 56px;
  bottom: 0;
  overflow-y: auto;
}

.topbar .brand { display: block; }
.sidebar .brand { display:none; }

.menu { display: flex; flex-direction: column; gap: 12px; }
.nav-item {
  width: 100%;
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: .15s;
  font-size: 14px;
}

.nav-item:hover {
  background: var(--panel-2);
}

.nav-item.active {
  outline: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(36,37,41,.5), rgba(20,20,22,.5));
}

.account {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--brand);
}

/* Account block enrichments */
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #111215;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-weight: 600;
}

.account-meta { display:flex; flex-direction:column; line-height:1.1 }
.account-username { color: var(--text); font-weight:600 }
.account-subtext { color: var(--muted); font-size:12px }

.btn-small { padding:6px 10px; font-size:12px }

/* Main Content */
.main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
}

/* Page Content */
.page {
  display: none;
  padding: 24px;
  flex: 1;
}

.page.visible {
  display: block;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

p {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 16px;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 12px;
  margin: 12px 0 20px;
}

.btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: .15s;
}

.btn:hover {
  background: var(--panel-2);
}

.btn.danger {
  border-color: #4b1d1d;
  background: #171214;
  color: #fecaca;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.header-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.input{background:#0d0d0e;border:1px solid var(--border);color:var(--text);padding:10px 12px;border-radius:8px;min-width:240px}
.actions-right{display:flex;gap:10px;align-items:center}

.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:12px 0 16px}
.stat-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:14px}
.stat-title{color:var(--muted);font-size:12px;margin-bottom:6px}
.stat-value{font-weight:700;font-size:20px}

/* Dashboard Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(45deg, transparent, transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card.online::before {
  background: linear-gradient(45deg, #8b5cf6, #ec4899);
}

.stat-card.frostborn::before {
  background: linear-gradient(45deg, #06b6d4, #3b82f6);
}

.stat-card.plasma::before {
  background: linear-gradient(45deg, #f59e0b, #ef4444);
}

.stat-card.total::before {
  background: linear-gradient(45deg, #10b981, #84cc16);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.stat-card.online .stat-icon {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.stat-card.frostborn .stat-icon {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.stat-card.plasma .stat-icon {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.stat-card.total .stat-icon {
  background: linear-gradient(135deg, #10b981, #84cc16);
}

.stat-content {
  flex: 1;
}

.stat-card .stat-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .stat-value {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.stat-card.online .stat-value {
  color: #8b5cf6;
}

.stat-card.frostborn .stat-value {
  color: #06b6d4;
}

.stat-card.plasma .stat-value {
  color: #f59e0b;
}

.stat-card.total .stat-value {
  color: #10b981;
}

/* Bot Management Section */
.bot-management {
  margin-top: 30px;
}

.search-section {
  flex: 1;
  max-width: 300px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.offline {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0 2px;
}

.action-btn:hover {
  background: var(--panel-2);
}

.action-btn.delete:hover {
  color: #ef4444;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-lg {
  max-width: 600px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--panel-2);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #0d0d0e;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.btn-secondary {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* Custom Notification Modal */
.notification-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.notification-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-content {
  background: var(--panel);
  border: 2px solid var(--danger);
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  animation: notificationSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px rgba(239, 68, 68, 0.3);
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.8) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

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

.notification-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
}

.notification-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.notification-body {
  padding: 20px 24px;
}

.notification-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.notification-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid #dc2626;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-1px);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  animation: toastSlideIn 0.3s ease forwards;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid var(--brand);
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--accent);
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: var(--brand);
}

.toast.warning .toast-icon {
  background: #f59e0b;
}

.toast.error .toast-icon {
  background: var(--danger);
}

.toast.info .toast-icon {
  background: var(--accent);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px 0;
}

.toast-message {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--panel-2);
  color: var(--text);
}

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

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

/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: loginSlideIn 0.5s ease;
}

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

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 20px;
}

.login-header h1 {
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

.input-group i {
  position: absolute;
  left: 12px;
  color: var(--muted);
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.password-toggle:hover {
  color: var(--text);
  background: var(--panel);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: var(--brand);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

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

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.register-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.register-link:hover {
  color: var(--brand);
}

.terms-link {
  color: var(--accent);
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 10px;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .login-header h1 {
    font-size: 24px;
  }
}

/* Logout Button Styles */
.logout-btn {
  background: var(--danger);
  border: 1px solid var(--danger);
  color: white;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  margin-left: auto;
}

.logout-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.logout-btn i {
  font-size: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.card:hover {
  background: var(--panel-2);
  border-color: var(--accent);
}

.card.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(46,204,113,.1), rgba(20,20,22,.5));
}

.card-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.value {
  font-weight: 600;
  font-size: 14px;
}

/* Table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.table th, .table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table thead th {
  background: #101113;
  color: #c9c9ce;
  font-weight: 600;
  font-size: 14px;
}

.table tbody tr:hover {
  background: var(--panel-2);
}

.table tbody td {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 860px) {
  .sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
  }
  
  .main {
    margin-left: 0;
  }
  
  .nav-item {
    flex: 1;
  }
  
  .account {
    margin-top: 0;
  }
  
  .container {
    flex-direction: column;
  }
}

/* Inventory Page Styles */
.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.inventory-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}

.stats-summary {
  display: flex;
  gap: 20px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 120px;
}

.summary-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.summary-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.fish-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fish-box:hover {
  background: var(--panel-2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fish-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.fish-info {
  flex: 1;
}

.fish-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.fish-item:hover {
  background: var(--panel-2);
  border-color: var(--accent);
}

.fish-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.fish-count {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.fish-rarity {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 8px;
  display: inline-block;
}

.fish-rarity.common {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.fish-rarity.uncommon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.fish-rarity.rare {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.fish-rarity.epic {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.fish-rarity.legendary {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.fish-rarity.mythic {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.fish-rarity.secret {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Console Page Styles */
.console-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  height: 500px;
  overflow-y: auto;
}

.console-output {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.log-entry {
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.log-time {
  color: var(--muted);
  min-width: 80px;
}

.log-message {
  color: var(--text);
}

/* Console log types */
.log-entry.system .log-message {
  color: #4CAF50;
}

.log-entry.fish-catch .log-message {
  color: #2196F3;
  font-weight: 500;
}

.log-entry.error .log-message {
  color: #F44336;
}

.log-entry.warning .log-message {
  color: #FF9800;
}

.log-entry.info .log-message {
  color: var(--text);
}

/* Player Data Modal Styles */
.player-data-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-data-summary h4 {
    margin: 0;
    color: var(--brand);
    font-size: 18px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--panel-2);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-label {
    font-weight: 600;
    color: var(--text);
}

.stat-value {
    font-weight: bold;
    color: var(--brand);
}

.equipment-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--panel-2);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.equipment-label {
    font-weight: 600;
    color: var(--text);
}

.equipment-value {
    font-weight: 500;
    color: var(--accent);
}

.fish-inventory {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--panel-2);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.fish-name {
    font-weight: 500;
    color: var(--text);
}

.fish-count {
    font-size: 12px;
    color: var(--muted);
}

.last-updated {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Bot Table Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: #22c55e;
    color: white;
}

.status-badge.offline {
    background: #ef4444;
    color: white;
}

/* Bot Table Action Buttons */
.action-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    margin: 0 2px;
}

.action-btn:hover {
    background: var(--panel-2);
    color: var(--text);
}

.action-btn.delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.action-btn.gift:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Bot Table Backpack */
.table td:nth-child(5) {
    text-align: center;
    color: var(--muted);
}

.table td:nth-child(5) i {
    font-size: 14px;
}

/* Auto-refresh indicator */
.auto-refresh-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    opacity: 0.8;
}

.auto-refresh-indicator i {
    font-size: 10px;
}

.auto-refresh-indicator.show {
    display: flex !important;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Page Navigation */
.page {
  display: none;
}

.page.visible {
  display: block;
}

/* Fish Inventory Styles */
.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fish-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.fish-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fish-image {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fish-info {
    text-align: center;
}

.fish-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.fish-rarity {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.fish-rarity.secret {
    color: #ff6b6b;
}

.fish-rarity.mythic {
    color: #4ecdc4;
}

.fish-player {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.fish-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
}

.no-fish {
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    padding: 40px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* Backpack Button Styles */
.backpack-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.backpack-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.backpack-btn:active {
    transform: scale(0.95);
}

.player-data-btn {
    background: none;
    border: none;
    color: var(--brand);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-data-btn:hover {
    background: var(--brand);
    color: white;
    transform: scale(1.1);
}

.player-data-btn:active {
    transform: scale(0.95);
}

/* Backpack Modal Styles */
#backpackModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#backpackModal.show {
    opacity: 1;
}

#backpackModal .modal-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#backpackModal.show .modal-content {
    transform: scale(1);
}

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

#backpackModal .modal-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
}

#backpackModal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#backpackModal .close-btn:hover {
    background: var(--danger);
    color: white;
}

#backpackModal .modal-body {
    padding: 15px 20px;
    max-height: 50vh;
    overflow-y: auto;
}

#backpackModal .backpack-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
}

#backpackModal .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#backpackModal .info-item .label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#backpackModal .info-item .value {
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
}

#backpackModal .backpack-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

#backpackModal .backpack-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

#backpackModal .backpack-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#backpackModal .item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

#backpackModal .item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#backpackModal .item-details span {
    font-size: 12px;
    color: var(--muted);
    padding: 2px 6px;
    background: var(--panel);
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

#backpackModal .no-items {
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    padding: 40px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    grid-column: 1 / -1;
}

#backpackModal .modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--background);
}

#backpackModal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#backpackModal .btn-secondary {
    background: var(--muted);
    color: white;
}

#backpackModal .btn-secondary:hover {
    background: var(--text);
}

#backpackModal .btn-primary {
    background: var(--primary);
    color: white;
}

#backpackModal .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    #backpackModal .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    #backpackModal .backpack-info {
        grid-template-columns: 1fr;
    }
    
    #backpackModal .backpack-items {
        grid-template-columns: 1fr;
    }
    
    #backpackModal .modal-footer {
        flex-direction: column;
    }
    
    #backpackModal .btn {
        width: 100%;
    }
}

/* Fish Count Display Styles */
.fish-counts-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.fish-count-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fish-count-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.fish-count-item.plasma {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.1));
    border-color: rgba(138, 43, 226, 0.3);
}

.fish-count-item.frostborn {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(0, 100, 200, 0.1));
    border-color: rgba(0, 191, 255, 0.3);
}

.fish-count-item.hermit {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 165, 0, 0.3);
}

.fish-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.fish-info {
    flex: 1;
}

.fish-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fish-count {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive Fish Count Display */
@media (max-width: 768px) {
    .fish-counts-container {
        gap: 10px;
        padding: 15px 0;
    }
    
    .fish-count-item {
        padding: 12px 15px;
    }
    
    .fish-icon {
        font-size: 2rem;
        margin-right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .fish-name {
        font-size: 1.1rem;
    }
    
    .fish-count {
        font-size: 0.9rem;
    }
}
