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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

.header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  background: #6366f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 16px;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #334155;
  color: #e2e8f0;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn:hover {
  background: #475569;
  border-color: #64748b;
}

.btn-primary {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.btn-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.status-bar {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #10b981;
  font-size: 14px;
}

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}

.search-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input {
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 8px 12px;
  color: #e2e8f0;
  font-size: 14px;
  width: 250px;
}

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

.search-input:focus {
  outline: none;
  border-color: #6366f1;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #0f172a;
}

th {
  text-align: left;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #334155;
}

tbody tr {
  border-bottom: 1px solid #334155;
  transition: background 0.2s;
}

tbody tr:hover {
  background: #0f172a;
}

td {
  padding: 16px 24px;
  font-size: 14px;
  color: #e2e8f0;
}

.product-name {
  font-weight: 500;
  color: #f1f5f9;
}

.product-variant {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.sku-badge {
  background: #334155;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #cbd5e1;
}

.stock-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.stock-negative {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.stock-positive {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.stock-zero {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.limit-badge {
  color: #10b981;
  font-weight: 600;
}

.message-text {
  color: #94a3b8;
  font-size: 13px;
}

.btn-edit {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-edit:hover {
  background: #334155;
  border-color: #64748b;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #64748b;
}

.spinner {
  border: 3px solid #334155;
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 24px;
}

.upload-area {
  border: 2px dashed #475569;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #0f172a;
}

.upload-area:hover, .upload-area.dragging {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.upload-text {
  font-size: 16px;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.progress-container {
  margin-top: 24px;
  padding: 20px;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #334155;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
}

.progress-stat {
  text-align: center;
}

.progress-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #f1f5f9;
}

.progress-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.success { color: #10b981; }
.error { color: #ef4444; }

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

input[type="file"] {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}
