/* SIP-Barang Kampus - Design System Stylesheet */
:root {
  --primary-default: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-pressed: #1e40af;
  --primary-soft: #dbeafe;

  --bg-page: #f8fafc;
  --surface-card: #ffffff;
  --border-default: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-on-primary: #ffffff;

  --status-hilang: #ef4444;
  --status-hilang-soft: #fee2e2;
  --status-ditemukan: #10b981;
  --status-ditemukan-soft: #d1fae5;
  --status-verifikasi: #f59e0b;
  --status-verifikasi-soft: #fef3c7;
  --status-dikembalikan: #6366f1;
  --status-dikembalikan-soft: #e0e7ff;
  --status-ditutup: #94a3b8;
  --status-ditutup-soft: #f1f5f9;

  --radius-button: 10px;
  --radius-input: 10px;
  --radius-card: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-dropdown: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.06);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Custom Base Utility Classes */
.btn-primary {
  background-color: var(--primary-default);
  color: var(--text-on-primary);
  border-radius: var(--radius-button);
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}
.btn-primary:active {
  background-color: var(--primary-pressed);
}

.btn-secondary {
  background-color: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-button);
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-soft-primary {
  background-color: var(--primary-soft);
  color: var(--primary-hover);
  border-radius: var(--radius-button);
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-soft-primary:hover {
  background-color: #bfdbfe;
}

.input-default {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-input);
  background-color: var(--surface-card);
  color: var(--text-primary);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  width: 100%;
}
.input-default:focus {
  border-color: var(--primary-default);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.input-default::placeholder {
  color: var(--text-secondary);
}

.card-default {
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
}

/* Lucide Icon Sizing */
.lucide {
  display: inline-block;
  vertical-align: middle;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* OTP Input Boxes */
.otp-input {
  width: 3.25rem;
  height: 3.75rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--border-default);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}
.otp-input:focus {
  border-color: var(--primary-default);
  background-color: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.otp-input.error {
  border-color: var(--status-hilang);
  background-color: #fff5f5;
  color: var(--status-hilang);
}

/* Drag and Drop Zone */
.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-input);
  transition: all 0.2s ease;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary-default);
  background-color: #f0f7ff;
}

/* Toast Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.toast-animate {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Overlay Animation */
.modal-overlay {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
}
