/* StaffOS Theme — Utility classes for Tailwind CDN */

/* Nav pills */
.nav-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  transition: all .2s;
  text-decoration: none;
}
.nav-pill:hover, .nav-pill.active {
  color: #f5f5f5;
  background: rgba(255,255,255,.05);
}

/* Mobile nav */
.mobile-nav {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: #888;
  text-decoration: none;
  transition: all .15s;
}
.mobile-nav:hover {
  color: #f5f5f5;
  background: rgba(255,255,255,.03);
}

/* Glass card */
.glass-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color .2s;
}
.glass-card:hover {
  border-color: #333;
}

/* Stat card */
.stat-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

/* Badge styles */
.badge-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  background: rgba(34,197,94,.08);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.15);
}
.badge-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.4);
}
.badge-pending {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(234,179,8,.08);
  color: #eab308;
  border: 1px solid rgba(234,179,8,.15);
}
.badge-suspended {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(239,68,68,.08);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.15);
}
.badge-paid {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(34,197,94,.08);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.15);
}
.badge-unpaid {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(239,68,68,.08);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.15);
}

/* Form inputs */
.staffos-input {
  width: 100%;
  padding: 10px 14px;
  background: #050505;
  border: 1px solid #222;
  border-radius: 12px;
  color: #f5f5f5;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.staffos-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.staffos-input::placeholder {
  color: #444;
}

/* Primary button */
.btn-staffos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 0 20px rgba(255,255,255,.06);
}
.btn-staffos:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

/* Secondary button */
.btn-staffos-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: #888;
  border: 1px solid #222;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.btn-staffos-secondary:hover {
  color: #f5f5f5;
  border-color: #444;
  background: rgba(255,255,255,.03);
}

/* Table styles */
.staffos-table {
  width: 100%;
  border-collapse: collapse;
}
.staffos-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #555;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #1a1a1a;
}
.staffos-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.staffos-table tbody tr {
  transition: background .15s;
}
.staffos-table tbody tr:hover {
  background: rgba(255,255,255,.02);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* Danger button */
.btn-staffos-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(239,68,68,.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.btn-staffos-danger:hover {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.35);
}

/* Select */
.staffos-select {
  width: 100%;
  padding: 10px 14px;
  background: #050505;
  border: 1px solid #222;
  border-radius: 12px;
  color: #f5f5f5;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.staffos-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* Textarea */
.staffos-textarea {
  width: 100%;
  padding: 10px 14px;
  background: #050505;
  border: 1px solid #222;
  border-radius: 12px;
  color: #f5f5f5;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}
.staffos-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.staffos-textarea::placeholder { color: #444; }

/* Alerts */
.sf-alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sf-alert-info {
  background: rgba(59,130,246,.08);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,.15);
}
.sf-alert-success {
  background: rgba(34,197,94,.08);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.15);
}
.sf-alert-warning {
  background: rgba(234,179,8,.08);
  color: #eab308;
  border: 1px solid rgba(234,179,8,.15);
}
.sf-alert-error {
  background: rgba(239,68,68,.08);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.15);
}

/* Tabs */
.sf-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 1.5rem;
}
.sf-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: -1px;
}
.sf-tab:hover { color: #aaa; }
.sf-tab.active {
  color: #f5f5f5;
  border-bottom-color: #fff;
}

/* Dialog / Modal */
.sf-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-dialog {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 1.5rem;
  min-width: 360px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
}
.sf-dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 0.75rem;
}
.sf-dialog-body {
  font-size: 14px;
  color: #888;
  margin-bottom: 1.5rem;
}
.sf-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Skeleton loading */
.sf-skeleton {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: sf-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
.sf-skeleton-text { height: 14px; margin-bottom: 8px; }
.sf-skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.sf-skeleton-card { height: 120px; border-radius: 16px; }
@keyframes sf-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Avatar */
.sf-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  overflow: hidden;
  flex-shrink: 0;
}
.sf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.sf-avatar-lg { width: 56px; height: 56px; font-size: 18px; }

/* Empty state */
.sf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.sf-empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  border: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  margin-bottom: 1rem;
}
.sf-empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #888;
  margin-bottom: 0.5rem;
}
.sf-empty-state-desc {
  font-size: 14px;
  color: #555;
  max-width: 320px;
}

/* FOSSBilling form compat */
form.auth [type="submit"] {
  width: 100%;
}

/* Toast compat */
.toast-container-zindex { z-index: 9999 !important; }
