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

body {
  font-family: 'Transducer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  font-weight: 400;
}

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

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

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 50px;
  width: auto;
}

h1 {
  color: #1a1a1a;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

.error {
  background: #fee;
  color: #c33;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #c33;
}

.btn {
  padding: 12px 24px;
  border: 1px solid #1a1a1a;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-primary {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #333333;
}

.btn-success {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-success:hover {
  background: #333333;
}

.btn-danger {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-danger:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #999;
  border-color: #e5e5e5;
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
  margin: 0 4px;
}

.stock-table {
  background: transparent;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

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

th,
td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

th {
  background: transparent;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

tr:hover {
  background: #f9f9f9;
}

.amount-input {
  width: 80px;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  text-align: center;
  background: transparent;
  font-family: inherit;
}

.amount-input:focus {
  outline: none;
  border-color: #1a1a1a;
  background: #f9f9f9;
}

.stock-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #666;
  background: transparent;
  border: 1px solid #e5e5e5;
}

.success-message {
  background: #f9f9f9;
  color: #1a1a1a;
  padding: 15px 20px;
  border: 1px solid #e5e5e5;
  margin-bottom: 20px;
  animation: slideInDown 0.3s ease-out;
  transform-origin: top;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Row update animations */
.row-updating {
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.row-updating td {
  position: relative;
}

.row-updating td::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #e0e0e0;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Button loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Smooth transitions for inputs */
.amount-input,
.stock-checkbox {
  transition: all 0.2s ease;
}

.amount-input:focus,
.stock-checkbox:focus {
  transform: scale(1.02);
}

/* Table row animations */
#stockTableBody tr {
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

#stockTableBody tr:hover {
  transform: translateX(2px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success state animation */
.row-success {
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    background-color: transparent;
  }

  50% {
    background-color: #f0f8f0;
  }

  100% {
    background-color: transparent;
  }
}
