/* Basic admin dashboard styles for CREATESONLINE */
:root {
  --bg: #0f1222;
  --panel: #151935;
  --border: #262a4d;
  --text: #e6e8ff;
  --muted: #a9add4;
  --accent: #667eea;
  --accent-2: #8e9cff;
  --success: #35d07f;
  --danger: #ff5f7a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.admin-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text); margin-bottom: 16px;
}
.sidebar-logo img { height: 36px; width: auto; display: block; }
.sidebar-title { font-weight: 700; letter-spacing: .5px; }
.sidebar-subtitle { color: var(--muted); font-size: 12px; }

.sidebar-nav { margin-top: 12px; }
.nav-section { margin-bottom: 16px; }
.nav-section-title { color: var(--muted); font-size: 12px; text-transform: uppercase; margin: 10px 8px; }
.nav-item { list-style: none; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 4px 6px;
  border-radius: 8px; color: var(--text); text-decoration: none;
}
.nav-link:hover { background: #1b2044; }
.nav-link.active { background: #1e2350; outline: 1px solid #2b3170; }
.nav-icon { color: var(--accent-2); font-weight: 600; }

.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border); background: #101430;
}
.header-title { margin: 0; font-size: 20px; }
.breadcrumb { color: var(--muted); font-size: 12px; }

.header-search { display: flex; align-items: center; gap: 8px; background: #0e1330; border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px; }
.search-input { background: transparent; border: 0; outline: none; color: var(--text); }
.action-button { display: inline-flex; align-items: center; justify-content: center; height: 36px; width: 36px; border-radius: 8px; text-decoration: none; color: var(--text); background: #161b3d; border: 1px solid var(--border); }
.action-button:hover { background: #1d2250; }

.user-menu { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: #0f1435; border: 1px solid var(--border); border-radius: 10px; }
.user-avatar { height: 28px; width: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-weight: 700; }
.user-info { line-height: 1.1; }
.user-name { font-size: 13px; }
.user-role { color: var(--muted); font-size: 11px; }

.admin-main { padding: 18px 20px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.metric-card { background: #12163c; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.metric-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.metric-title { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.metric-icon { color: var(--accent-2); font-weight: 700; }
.metric-value { font-size: 28px; font-weight: 800; letter-spacing: .5px; }
.metric-change { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }

.ai-health-card { background: linear-gradient(180deg, #141a48 0%, #10153a 100%); }
.ai-score-circle { height: 80px; width: 80px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #d6dbff; border: 3px solid #3440a3; margin: 8px 0; }

/* Responsiveness */
@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: sticky; top: 0; z-index: 10; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

