/* YalaBobo - Premium Admin Control Panel CSS */

.admin-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Admin Sidebar */
.admin-sidebar {
  background: rgba(11, 17, 32, 0.7);
  border-left: 1px solid var(--border-color);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

.admin-title {
  font-family: var(--font-cairo);
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.admin-menu-item.active {
  background: rgba(37, 211, 102, 0.1);
  color: var(--primary);
}

/* Admin Workspace / Dashboard */
.admin-workspace {
  padding: 30px;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.admin-header-title {
  font-family: var(--font-cairo);
  font-weight: 800;
  font-size: 28px;
}

/* Stat Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-card-number {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-ibm);
}

.stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-icon.primary { background: rgba(37, 211, 102, 0.1); color: var(--primary); }
.stat-card-icon.accent { background: rgba(0, 229, 168, 0.1); color: var(--accent); }
.stat-card-icon.warning { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

/* Tables and Panels */
.admin-panel-card {
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-family: var(--font-cairo);
  font-weight: 700;
  font-size: 18px;
}

.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* User Badge Flags */
.admin-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.admin-badge.online { background: rgba(37, 211, 102, 0.1); color: var(--primary); }
.admin-badge.offline { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }
.admin-badge.verified { background: rgba(0, 229, 168, 0.1); color: var(--accent); }
.admin-badge.banned { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

/* Control Form */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form-label {
  font-weight: 600;
  font-size: 14px;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  .admin-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .admin-sidebar {
    padding: 15px;
    flex-direction: row;
    overflow-x: auto;
  }
  .admin-brand {
    display: none;
  }
}
