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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f4f6f8;
  color: #212b36;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.header h1 {
  font-size: 24px;
  color: #212b36;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-name {
  color: #637381;
  font-size: 14px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.login-card {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
}

.login-card h1 {
  margin-bottom: 8px;
}

.subtitle {
  color: #637381;
  margin-bottom: 24px;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #212b36;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c4cdd5;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #5c6ac4;
  box-shadow: 0 0 0 1px #5c6ac4;
}

.input-suffix {
  display: flex;
  align-items: center;
}

.input-suffix input {
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.input-suffix .suffix {
  padding: 10px 12px;
  background: #f4f6f8;
  border: 1px solid #c4cdd5;
  border-radius: 0 4px 4px 0;
  color: #637381;
  font-size: 14px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-primary {
  background: #5c6ac4;
  color: white;
}

.btn-primary:hover {
  background: #4959bd;
}

.btn-secondary {
  background: #e4e6eb;
  color: #212b36;
}

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

.btn-danger {
  background: #de3618;
  color: white;
}

.btn-danger:hover {
  background: #c42f15;
}

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

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-error {
  background: #fbeae5;
  border: 1px solid #de3618;
  color: #de3618;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #dfe3e8;
  padding-bottom: 0;
}

.tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: #637381;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  color: #212b36;
}

.tab.active {
  color: #5c6ac4;
  border-bottom-color: #5c6ac4;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.inline-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dfe3e8;
}

.inline-form .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dfe3e8;
}

.data-table th {
  font-weight: 500;
  color: #637381;
  background: #f9fafb;
}

.data-table tbody tr:hover {
  background: #f9fafb;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge.received,
.badge.pending {
  background: #ffc58b;
  color: #5e4200;
}

.badge.processed,
.badge.created {
  background: #bbe5b3;
  color: #1e4d2b;
}

.badge.error,
.badge.ceeklo_error,
.badge.mapping_error,
.badge.config_error {
  background: #fbeae5;
  color: #de3618;
}

.badge.skipped {
  background: #e4e6eb;
  color: #637381;
}

.error-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #de3618;
  font-size: 12px;
}

.info {
  color: #637381;
  font-size: 14px;
  margin-bottom: 16px;
}

.info.muted {
  opacity: 0.7;
}

.toggle-group {
  margin-top: 12px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle input {
  width: 18px;
  height: 18px;
}

.toggle-label {
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-top: 22px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .inline-form {
    flex-direction: column;
  }
  
  .inline-form .form-group {
    width: 100%;
  }
  
  .header {
    flex-direction: column;
    gap: 10px;
  }
  
  .tabs {
    overflow-x: auto;
  }
}
