/* Admin CSS - Dark Mode Glassmorphism */
:root {
  --bg-color: #0d1117;
  --bg-gradient: radial-gradient(circle at top left, #161b22, #0d1117);
  --glass-bg: rgba(22, 27, 34, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --primary: #58a6ff;
  --primary-hover: #79c0ff;
  --accent: #bc8cff;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  
  --color-text-main: #c9d1d9;
  --color-text-secondary: #fff;
  --color-text-muted: #8b949e;
  --color-border: rgba(255, 255, 255, 0.08);
  --space-md: 16px;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  background-color: var(--bg-color);
  color: var(--color-text-main);
  min-height: 100vh;
  line-height: 1.6;
}

/* Base Layout */
.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.sidebar-brand { display: flex; flex-direction: column; font-weight: 700; color: #fff; line-height: 1.2; }
.sidebar-brand small { font-size: 0.75rem; color: var(--primary); font-weight: 500;}

.sidebar-nav { flex: 1; padding: 20px 0; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-section-label { padding: 0 20px; font-size: 0.75rem; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; margin-bottom: 8px; letter-spacing: 1px; }

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--color-text-main);
  text-decoration: none;
  transition: all 0.2s;
  gap: 12px;
}
.nav-item:hover, .nav-item.active { background: rgba(88, 166, 255, 0.1); color: var(--primary); border-right: 3px solid var(--primary); }

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.page-header {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-header h1 { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--primary); text-decoration: none; }

.page-body {
  padding: 32px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Grids */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.dashboard-content { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

/* Stat Widgets */
.stat-label { font-size: 0.85rem; color: var(--color-text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: #fff; margin-top: 8px; }

/* Status Indicators */
.status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-success { background: rgba(63, 185, 80, 0.15); color: var(--success); }
.status-warning { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.status-danger { background: rgba(248, 81, 73, 0.15); color: var(--danger); }
.status-info { background: rgba(88, 166, 255, 0.15); color: var(--primary); }

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid transparent;
}
.item-row.succeeded { border-left-color: var(--success); }
.item-row.failed { border-left-color: var(--danger); }
.item-row.running { border-left-color: var(--primary); }
