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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

.app {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

.app-header {
  margin-bottom: 2rem;
}

.app-header h1 {
  font-size: 2.5rem;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.app-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.stat-label {
  display: block;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
}

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

.controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 300px;
  padding: 0.875rem 1.25rem;
  background: #1e293b;
  border: 2px solid #334155;
  color: #f8fafc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.search-input::placeholder {
  color: #64748b;
}

.sort-select {
  padding: 0.875rem 1.25rem;
  background: #1e293b;
  border: 2px solid #334155;
  color: #f8fafc;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.btn-primary {
  padding: 0.875rem 1.5rem;
  background: #3b82f6;
  border: none;
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.customer-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.customer-card:hover {
  border-color: #3b82f6;
}

.customer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.customer-header h3 {
  color: #f8fafc;
  font-size: 1.25rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tag.vip {
  background: #fbbf24;
  color: #78350f;
}

.tag.regular {
  background: #3b82f6;
  color: #fff;
}

.tag.anniversary {
  background: #ec4899;
  color: #fff;
}

.customer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.9375rem;
}

.icon {
  font-size: 1.125rem;
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-item {
  background: #0f172a;
  padding: 0.875rem;
  border-radius: 0.5rem;
  text-align: center;
}

.stat-item .stat-value {
  display: block;
  color: #10b981;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.customer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #334155;
}

.last-visit {
  color: #64748b;
  font-size: 0.875rem;
}

.view-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  border: none;
  color: #fff;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.view-btn:hover {
  background: #2563eb;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: #64748b;
  font-size: 1.125rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
}
