/* =========================================================
   DASHBOARD CORE STYLES
========================================================= */

.dashboard-title {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--brand-dark, #1f2937);
}

.admin-icon-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  height: 44px;
  padding: 0 1rem;
  border-radius: 14px;
  white-space: nowrap;
}

.admin-icon-btn i {
  font-size: 1.05rem;
}


/* Hover polish */
.admin-icon-btn:hover i {
  transform: scale(1.05);
}


/* =============================
   Dashboard Stat Tiles
============================= */
.stat-tile {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Left Content */
.stat-content small {
  color: var(--text-muted);
  font-size: 1rem;
}

.stat-content h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
}

/* Icon */
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ===== Brand Variants ===== */
.stat-brand .stat-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: var(--white);
}

.stat-success .stat-icon {
  background: rgba(34,197,94,0.15);
  color: #16a34a;
}

.stat-accent .stat-icon {
  background: rgba(249,115,22,0.18);
  color: var(--accent-dark);
}

.stat-info .stat-icon {
  background: rgba(59,130,246,0.15);
  color: #2563eb;
}

/* Subtle left indicator */
.stat-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: transparent;
}

.stat-brand::before { background: var(--brand); }
.stat-success::before { background: #22c55e; }
.stat-accent::before { background: var(--accent); }
.stat-info::before { background: #3b82f6; }

/* Admin Card */
.admin-card {
  border-radius: 14px;
}

/* Table */
.admin-table thead th {
  font-size: 0.7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6c757d;
  border-bottom: 1px solid #eee;
}

.admin-table tbody tr {
  transition: background .2s ease;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

/* Badges */
.badge-role {
  background: #f1f3f5;
  color: #333;
  font-weight: 500;
}

.badge-success {
  background: rgba(25,135,84,.1);
  color: #198754;
}

.badge-warning {
  background: rgba(255,193,7,.15);
  color: #b78103;
}

.badge-danger {
  background: rgba(220,53,69,.1);
  color: #dc3545;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 20px;
  padding: 6px 14px;
  border: 1px solid #ddd;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 50%;
  padding: 4px 10px;
}
