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

body {
  margin: 0;
  font-family: 'Manrope', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: #0f172a;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(to right, #3b82f6, #2563eb);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Inputs */
.form-input {
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Hero Section */
.hero-section {
  background-image: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.8)), 
                    url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=2000&q=80');
}

.hero-blob-1 {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  background: #60a5fa;
  top: -5rem;
  left: -5rem;
}

.hero-blob-2 {
  position: absolute;
  width: 31rem;
  height: 31rem;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.25;
  background: #3b82f6;
  bottom: -10rem;
  right: -8rem;
}

/* Feature Card */
.feature-icon {
  background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
}

/* Product Tabs */
.product-tab {
  color: #9ca3af;
}

.product-tab:hover {
  color: white;
  background: #374151;
}

.product-tab.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Navigation Items */
.nav-item {
  color: #4b5563;
}

.nav-item:hover {
  background: #f3f4f6;
}

.nav-item.active {
  background: #eff6ff;
  color: #2563eb;
}

/* Role Badge */
.role-badge {
  background: #f3f4f6;
  color: #4b5563;
}

.role-badge.admin {
  background: #dbeafe;
  color: #2563eb;
}

/* Pagination */
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Customer Card */
.customer-card {
  transition: box-shadow 0.2s;
}

.customer-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.customer-card.selected {
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Table Styles */
table {
  border-collapse: collapse;
}

tbody tr {
  border-bottom: 1px solid #f9fafb;
}

tbody tr:hover {
  background: #f9fafb;
}

/* Status Colors */
.text-green-600 { color: #16a34a; }
.text-orange-500 { color: #f97316; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-purple-500 { color: #a855f7; }
.text-red-500 { color: #ef4444; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }

.bg-green-100 { background: #dcfce7; }
.bg-blue-100 { background: #dbeafe; }
.bg-blue-50 { background: #eff6ff; }
.bg-gray-100 { background: #f3f4f6; }
.bg-gray-50 { background: #f9fafb; }
.bg-red-100 { background: #fee2e2; }
.text-red-600 { color: #dc2626; }

/* Console Tab */
.console-tab {
  background: #f3f4f6;
  color: #4b5563;
  border: none;
}

.console-tab:hover {
  background: #e5e7eb;
}

.console-tab.active {
  background: #2563eb;
  color: white;
}

/* Role Badge System */
.role-badge.system {
  background: #fee2e2;
  color: #dc2626;
}

/* Secondary Button */
.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #e5e7eb;
}
