/* Kutuli — Custom Styles */

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

/* Smooth transitions */
* { transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms; }

/* Kanban board columns */
.kanban-column { min-height: 200px; }
.kanban-card { cursor: grab; }
.kanban-card:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { box-shadow: 0 10px 25px -5px rgba(99,102,241,0.2); transform: rotate(2deg); }

/* Modal overlay */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px);
  z-index: 50; display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease-out;
}
.modal-content {
  background: white; border-radius: 1rem; max-width: 600px; width: 95%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Navigation active state */
.nav-item.active { background: rgba(99,102,241,0.1); color: #4f46e5; border-right: 3px solid #4f46e5; }
.nav-item:hover:not(.active) { background: rgba(99,102,241,0.05); }

/* Stat cards hover */
.stat-card { transition: all 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }

/* Toast notifications */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  padding: 0.875rem 1.25rem; border-radius: 0.75rem;
  color: white; font-weight: 500; font-size: 0.875rem;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
}
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }
.toast.info { background: #4f46e5; }

/* Burn rate meter */
.burn-meter { position: relative; overflow: hidden; border-radius: 999px; }
.burn-meter-fill { transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }

/* Snippet card copy animation */
.snippet-copied { animation: pulse 0.5s ease-out; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* Avatar initials */
.avatar {
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: white; border-radius: 0.75rem;
  text-transform: uppercase; font-size: 0.75rem; flex-shrink: 0;
}

/* Page content area */
.page-content { animation: fadeIn 0.2s ease-out; }

/* Income chart area */
.chart-container { position: relative; height: 280px; }

/* Table styles */
.data-table tr:hover td { background: #f8fafc; }

/* Badge pulse for pending items */
.badge-pulse { animation: badgePulse 2s infinite; }
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* Auth / Login Page */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #f0f9ff 100%);
  padding: 1rem;
}

.auth-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  animation: slideUp 0.3s ease-out;
}

.auth-card input:focus {
  border-color: #818cf8;
}

.auth-card button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); position: fixed; z-index: 40; }
  .sidebar.open { transform: translateX(0); }
}
