/* ==========================================================================
   VLIX FLOWER ADMIN CMS DASHBOARD STYLES (100% OFFLINE)
   ========================================================================== */

.admin-body {
  background-color: #f1f5f9;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  margin: 0;
  padding: 0;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: #16242e;
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo-subtitle {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
}

.admin-nav {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.admin-nav li {
  margin-bottom: 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.admin-nav-link:hover, .admin-nav-link.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-left-color: var(--primary);
}

/* Main Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 65px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content {
  padding: 30px;
  flex: 1;
}

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-val {
  font-size: 32px;
  font-weight: 900;
  color: #1e293b;
  margin: 10px 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.data-table th {
  background-color: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-unread {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-read {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-replied {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #334155;
  font-weight: 600;
  border-radius: 4px;
  padding: 6px 14px;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
  color: #0f172a;
}
