@charset "UTF-8";
:root {
  /* Colors */
  --color-yellow: #eeb51d;
  --color-green: #5ba82f;
  --color-blue: #2d8fc4;
  --color-purple: #8e54b8;
  --color-red: #db4233;
  /* Warm grayscale (light → dark) */
  --gray-50: #f7f4ed;
  --gray-100: #ece7db;
  --gray-200: #d8d0c0;
  --gray-300: #bdb3a0;
  --gray-400: #9c9080;
  --gray-500: #7c7163;
  --gray-600: #5f564b;
  --gray-700: #463f37;
  --gray-800: #2e2925;
  --gray-900: #1a1714;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --primary-shadow: rgba(59, 130, 246, 0.1);
  --success-color: #10b981;
  --success-hover: #059669;
  --success-bg: #dcfce7;
  --error-color: #dc2626;
  --error-hover: #b91c1c;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-hover-bg: #fee2e2;
  --warning-color: #92400e;
  --warning-bg: #fef3c7;
  --neutral-color: #6b7280;
  --neutral-hover: #4b5563;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --code-bg: #f3f4f6;
  --button-bg: #f3f4f6;
  --button-hover-bg: #e5e7eb;
  --hover-bg: #f9fafb;
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  --color-too-dark: #777;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --border-light: #4b5563;
    --code-bg: #374151;
    --button-bg: #374151;
    --button-hover-bg: #4b5563;
    --hover-bg: #1f2937;
  }
}
/* src/styles/components.css */
/* Header styles */
.header {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-xl);
}

.title-section {
  flex: 1;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-50);
  margin: 0 0 var(--spacing-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.subtitle {
  color: var(--text-muted);
  margin: 0 0 var(--spacing-md) 0;
  font-size: 1.125rem;
}

.safe-status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
}

.status-connected {
  background: var(--success-bg);
  color: var(--success-color);
}

.status-mock {
  background: var(--warning-bg);
  color: var(--warning-color);
}

/* Address display */
.addresses {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.address-label {
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.address-value {
  font-family: var(--font-mono);
  background: var(--code-bg);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  word-break: break-all;
  border: 1px solid var(--border-color);
}

/* Search and add section */
.search-section {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.search-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  margin-bottom: var(--spacing-xl);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.add-section {
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-xl);
}

.add-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.add-form {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: var(--spacing-md);
  align-items: end;
}

@media (max-width: 768px) {
  .add-form {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  .header {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .addresses {
    text-align: left;
  }
}
/* Input styles */
.input {
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

/* Button styles */
.button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  background: var(--neutral-color);
  cursor: not-allowed;
  transform: none;
}

/* Records section */
.records-section {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.records-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
}

.records-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.record-count {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-muted);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.empty-description {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  margin-top: var(--spacing-2xl);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: var(--spacing-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.footer p {
  margin: var(--spacing-sm) 0;
}

/* Global styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--gray-900);
  line-height: 1.6;
  color: var(--gray-50);
}

html {
  scroll-behavior: smooth;
}

/* Container and layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--color-yellow);
  border-top: 3px solid var(--color-yellow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-muted);
  font-size: 1.125rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Error message */
.error-message {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-color);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin: var(--spacing-md);
  max-width: 600px;
  text-align: center;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 500;
  z-index: 1000;
  max-width: 400px;
  font-family: inherit;
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.notification--success {
  background: var(--success-color);
}

.notification--error {
  background: var(--error-color);
}

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

.notification--hide {
  transform: translateX(100%);
  opacity: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*# sourceMappingURL=main.css.map */
