/* Custom styles & tweaks — plain CSS (no @apply, since Tailwind CDN doesn't process linked CSS) */

/* Smooth scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Notyf tweaks */
.notyf__toast { border-radius: 12px !important; padding: 14px 18px !important; }
.notyf__message { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.92rem; }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #3b67ff 0%, #1d37e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card */
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Decorative grid */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(59,103,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59,103,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Blob decoration */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   Form controls
   ============================================================ */
.form-input {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:focus {
  outline: none;
  border-color: #3b67ff;
  box-shadow: 0 0 0 3px rgba(59, 103, 255, 0.18);
}
.form-input:disabled { background-color: #f8fafc; color: #94a3b8; cursor: not-allowed; }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-repeat: no-repeat;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.375rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.25rem;
}

.btn-primary {
  background-color: #3b67ff;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(59, 103, 255, 0.25), 0 4px 6px -2px rgba(59, 103, 255, 0.15);
}
.btn-primary:hover { background-color: #2e53e6; transform: translateY(-1px); }
.btn-primary:active { background-color: #243fb0; transform: translateY(0); }

.btn-secondary {
  background-color: #ffffff;
  color: #334155;
  border-color: #e2e8f0;
}
.btn-secondary:hover { background-color: #f8fafc; }

.btn-danger {
  background-color: #e11d48;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.25), 0 4px 6px -2px rgba(225, 29, 72, 0.15);
}
.btn-danger:hover { background-color: #be123c; transform: translateY(-1px); }

.btn-ghost {
  background-color: transparent;
  color: #475569;
}
.btn-ghost:hover { background-color: #f1f5f9; color: #0f172a; }

/* Icon buttons (square) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-icon:hover { background-color: #f8fafc; color: #0f172a; border-color: #cbd5e1; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.animate-fade-in  { animation: fadeIn 0.5s ease both; }
.animate-slide-up { animation: slideUp 0.5s ease both; }
.animate-float    { animation: float 6s ease-in-out infinite; }

/* ============================================================
   Print (for laporan.php -> browser print)
   ============================================================ */
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
}
