/* ═══ Shopee Affiliate Pro ═══ */

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

/* Card */
.card {
  background: rgba(15, 15, 25, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.inner-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease;
}

.inner-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Input */
.input-field {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.input-field:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

/* Buttons */
.btn-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.2);
  transition: all 0.2s ease;
}

.btn-orange:hover {
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
}

.btn-orange:active {
  transform: translateY(0) scale(0.98);
}

.btn-violet {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
  transition: all 0.2s ease;
}

.btn-violet:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.btn-violet:active {
  transform: translateY(0) scale(0.97);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}

.btn-green:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-green:active {
  transform: translateY(0) scale(0.95);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Spinner */
.spinner {
  display: inline-block;
  position: relative;
  width: 28px;
  height: 28px;
}

.spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 22px;
  height: 22px;
  margin: 3px;
  border: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-top-color: #f97316;
}

.spinner div:nth-child(1) { animation-delay: -0.45s; }
.spinner div:nth-child(2) { animation-delay: -0.3s; }
.spinner div:nth-child(3) { animation-delay: -0.15s; }

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

/* Pulse */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.12); }

/* Table rows */
#reportTableBody tr {
  transition: background-color 0.15s ease;
}

#reportTableBody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.animate-shake {
  animation: shake 0.3s ease-in-out;
  border-color: rgba(239, 68, 68, 0.5) !important;
}
