/* NESKI — Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

body { font-family: 'Inter', sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #909090; }

/* Glass card */
.glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
}

/* Float card hover */
.float-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.float-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Stat card */
.stat-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Neski button pill */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #0a0a0a;
  border: 1.5px solid #0a0a0a;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #0a0a0a;
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

/* Form controls */
.form-input {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #0a0a0a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10,10,10,0.08);
}
.form-input::placeholder { color: #b0b0b0; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3a;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-select {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #0a0a0a;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23606060' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color 0.2s;
}
.form-select:focus { border-color: #0a0a0a; box-shadow: 0 0 0 3px rgba(10,10,10,0.08); }

.form-textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #0a0a0a;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.form-textarea:focus { border-color: #0a0a0a; box-shadow: 0 0 0 3px rgba(10,10,10,0.08); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #606060; border-bottom: 2px solid #f0f0f0; background: #fafafa; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid #f4f4f4; color: #1a1a1a; vertical-align: middle; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #fafafa; }

/* Sidebar */
.sidebar { width: 260px; height: 100vh; background: #0a0a0a; position: fixed; top: 0; left: 0; z-index: 100; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #909090; text-decoration: none; transition: all 0.2s ease; margin: 2px 10px; }
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar-link svg { flex-shrink: 0; }

/* Top bar */
.topbar { margin-left: 260px; background: #fff; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 50; padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; }

/* Page wrapper */
.page-wrapper { margin-left: 260px; padding: 32px 28px; min-height: calc(100vh - 64px); background: #fafafa; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* Pill badge */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }

/* Card */
.card { background: #fff; border: 1px solid #ebebeb; border-radius: 16px; overflow: hidden; }
.card-body { padding: 24px; }
.card-header { padding: 18px 24px; border-bottom: 1px solid #f0f0f0; font-weight: 700; font-size: 15px; color: #0a0a0a; }

/* Page title */
.page-title { font-size: 22px; font-weight: 800; color: #0a0a0a; letter-spacing: -0.02em; }
.page-subtitle { font-size: 14px; color: #606060; margin-top: 2px; }

/* Mobile sidebar */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .topbar { margin-left: 0; padding: 0 16px; }
  .page-wrapper { margin-left: 0; padding: 16px 12px; }

  /* Tables: wrap in a scrollable container */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 580px; font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }

  /* Cards */
  .card-body { padding: 16px; }
  .card-header { padding: 14px 16px; }

  /* Stat cards */
  .stat-card { padding: 16px; }
  .stat-card .text-xl { font-size: 18px; }

  /* Page titles */
  .page-title { font-size: 18px; }

  /* Buttons */
  .btn-primary, .btn-secondary, .btn-danger { padding: 9px 18px; font-size: 13px; }

  /* Modal full screen on mobile */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal-box { border-radius: 20px 20px 0 0; max-height: 92vh; }
}

/* Avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #606060; flex-shrink: 0; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-box { background: #fff; border-radius: 20px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 40px 120px rgba(0,0,0,0.25); }
.modal-header { padding: 24px 28px 0; }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 0 28px 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* Checkbox */
.form-checkbox { width: 16px; height: 16px; accent-color: #0a0a0a; cursor: pointer; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 24px; color: #909090; }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; color: #d0d0d0; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: #3a3a3a; margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* Dot pulse */
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; }
