.inventory-log-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.log-header {
  margin-bottom: 3rem;
}

.admin-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.admin-badge {
  background: #0ea5e9;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  color: #0369a1;
  font-weight: 500;
}

.panel-link, .logout-link {
  color: #0369a1;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.panel-link {
  background: rgba(3, 105, 161, 0.1);
}

.logout-link {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.panel-link:hover, .logout-link:hover {
  transform: translateY(-1px);
}

.log-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.log-header p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
}

.log-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.back-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #1d4ed8;
  transform: translateX(-2px);
}

.log-count {
  color: #6b7280;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin-bottom: 1rem;
  color: #374151;
}

.empty-state p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.transaction-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.transaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.session-id {
  font-family: monospace;
  font-size: 0.9rem;
}

.transaction-number {
  background: #e5e7eb;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.timestamp {
  color: #6b7280;
  font-size: 0.9rem;
}

.updates-section, .errors-section {
  padding: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.section-title.success {
  color: #10b981;
}

.section-title.error {
  color: #ef4444;
}

.updates-grid {
  display: grid;
  gap: 1rem;
}

.update-item {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1rem;
}

.update-item.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.product-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.update-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.quantity-sold, .stock-change {
  font-size: 0.9rem;
  color: #6b7280;
}

.product-id {
  font-size: 0.8rem;
  color: #9ca3af;
  font-family: monospace;
}

.errors-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.error-item {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.75rem;
  color: #dc2626;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .inventory-log-page {
    padding: 1rem;
  }

  .admin-notice {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .admin-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .log-actions, .transaction-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .session-info, .update-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .empty-actions {
    flex-direction: column;
    align-items: center;
  }
}
