/* ============================================
   IT SUMON — Component Styles
   Buttons, Cards, Forms, Modals, Badges, etc.
   ============================================ */

/* ──────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — Gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: white;
}

/* Shimmer overlay on primary buttons */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

/* Secondary — Outlined */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-secondary);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(14, 165, 233, 0.05);
  transform: translateY(-2px);
}

/* Ghost — Minimal */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* CTA — Big gradient with glow */
.btn-cta {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
  animation: pulseGlow 3s ease-in-out infinite;
}

.btn-cta:hover {
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(-3px) scale(1.02);
  color: white;
}

/* Accent — Green */
.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.btn-accent:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
  color: white;
}

/* Danger */
.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--color-danger);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Button icon */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Button with icon */
.btn svg,
.btn i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   CARDS
   ────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

/* Glass Card */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

/* Service Card */
.service-card {
  text-align: center;
  padding: var(--space-8);
}

.service-card .service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-2xl);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.service-card .service-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-card .service-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.service-card .service-link {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: all var(--transition-fast);
}

.service-card .service-link:hover {
  gap: var(--space-2);
  color: var(--color-primary-light);
}

/* Portfolio Card */
.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.portfolio-card .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 33, 0.9) 0%, rgba(11, 17, 33, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card .portfolio-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: white;
  margin-bottom: var(--space-1);
}

.portfolio-card .portfolio-category {
  font-size: var(--text-xs);
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* Blog Card */
.blog-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card .blog-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-card .blog-content {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.blog-card .blog-category-badge {
  color: var(--color-primary);
  font-weight: var(--font-semibold);
}

.blog-card .blog-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .blog-title a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.blog-card .blog-title a:hover {
  color: var(--color-primary);
}

.blog-card .blog-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card .blog-read-more {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.blog-card .blog-read-more:hover {
  gap: var(--space-2);
}

/* Stat Card (Admin) */
.stat-card {
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.stat-card .stat-icon.blue {
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-primary);
}

.stat-card .stat-icon.violet {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-secondary);
}

.stat-card .stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
}

.stat-card .stat-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

.stat-card .stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ──────────────────────────────────────────────
   FORMS
   ────────────────────────────────────────────── */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: var(--bg-input-focus);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
  cursor: pointer;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select {
  border-color: var(--color-danger);
}

.form-group.error .form-error {
  display: block;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Checkbox & Toggle */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-fast);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

/* ──────────────────────────────────────────────
   BADGES
   ────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge-primary {
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-primary);
}

.badge-secondary {
  background: rgba(139, 92, 246, 0.12);
  color: var(--color-secondary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-accent);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-danger);
}

.badge-neutral {
  background: var(--bg-glass);
  color: var(--text-secondary);
}

/* ──────────────────────────────────────────────
   MODALS & LIGHTBOX
   ────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  animation: slideInOverlay 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  animation: slideInModal 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
  font-size: var(--text-xl);
}

.modal-close:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  animation: scaleIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: var(--space-6); }
.lightbox-next { right: var(--space-6); }

/* ──────────────────────────────────────────────
   LOADING SPINNER
   ────────────────────────────────────────────── */

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-primary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  gap: var(--space-3);
  color: var(--text-tertiary);
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-heavy) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 22px;
  width: 60%;
  margin-bottom: var(--space-3);
}

.skeleton-image {
  aspect-ratio: 16 / 9;
}

/* ──────────────────────────────────────────────
   TOAST NOTIFICATIONS
   ────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: toastSlideIn 0.3s ease;
  min-width: 300px;
}

.toast.removing {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: 2px;
}

.toast-message {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.toast-dismiss {
  flex-shrink: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
}

.toast-dismiss:hover {
  color: var(--text-primary);
}

.toast.success { border-left: 3px solid var(--color-accent); }
.toast.success .toast-icon { color: var(--color-accent); }
.toast.error { border-left: 3px solid var(--color-danger); }
.toast.error .toast-icon { color: var(--color-danger); }
.toast.warning { border-left: 3px solid var(--color-warning); }
.toast.warning .toast-icon { color: var(--color-warning); }
.toast.info { border-left: 3px solid var(--color-primary); }
.toast.info .toast-icon { color: var(--color-primary); }

@media (max-width: 480px) {
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
  
  .toast {
    min-width: auto;
  }
}

/* ──────────────────────────────────────────────
   FILTER TABS (Portfolio)
   ────────────────────────────────────────────── */

.filter-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.filter-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-secondary);
  background: var(--bg-glass);
}

.filter-tab.active {
  color: white;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* ──────────────────────────────────────────────
   RICH TEXT EDITOR TOOLBAR
   ────────────────────────────────────────────── */

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  flex-wrap: wrap;
}

.editor-toolbar .toolbar-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.editor-toolbar .toolbar-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass-heavy);
}

.editor-toolbar .toolbar-btn.active {
  color: var(--color-primary);
  background: rgba(14, 165, 233, 0.1);
}

.editor-toolbar .toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-primary);
  margin: 0 var(--space-2);
}

.editor-content {
  min-height: 300px;
  padding: var(--space-5);
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  overflow-y: auto;
}

.editor-content:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-input-focus);
}

.editor-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.editor-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.editor-content p {
  margin-bottom: var(--space-4);
}

.editor-content ul, .editor-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.editor-content ul { list-style-type: disc; }
.editor-content ol { list-style-type: decimal; }

.editor-content li {
  margin-bottom: var(--space-1);
  color: var(--text-secondary);
}

.editor-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-4);
  color: var(--text-secondary);
  font-style: italic;
  margin: var(--space-4) 0;
}

.editor-content code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--bg-glass-heavy);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.editor-content pre {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  overflow-x: auto;
}

.editor-content pre code {
  background: none;
  padding: 0;
}

.editor-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
}

.editor-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ──────────────────────────────────────────────
   EMPTY STATE
   ────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--text-tertiary);
}

.empty-state .empty-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state .empty-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.empty-state .empty-description {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ──────────────────────────────────────────────
   DATA TABLE (Admin)
   ────────────────────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-bottom: 1px solid var(--border-primary);
  white-space: nowrap;
}

.data-table tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-glass);
}

.data-table .table-actions {
  display: flex;
  gap: var(--space-2);
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

/* ──────────────────────────────────────────────
   PAGINATION
   ────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.pagination .page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination .page-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .page-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}
