/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg-base:      #080e1a;
  --bg-panel:     #0d1626;
  --bg-card:      #111e30;
  --bg-hover:     #162338;
  --border:       rgba(0, 180, 255, 0.12);
  --border-light: rgba(0, 180, 255, 0.06);
  --accent:       #00b4ff;
  --accent-dim:   rgba(0, 180, 255, 0.15);
  --accent2:      #f0a500;
  --accent2-dim:  rgba(240, 165, 0, 0.15);
  --green:        #00d68f;
  --red:          #ff4d6d;
  --yellow:       #f0a500;
  --text-1:       #e8f4ff;
  --text-2:       #8badc6;
  --text-3:       #4a6a85;
  --sidebar-w:    220px;
  --radius:       8px;
  --font-mono:    'Rajdhani', monospace;
  --font-body:    'Noto Sans SC', sans-serif;
}

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

html, body { height: 100%; background: var(--bg-base); color: var(--text-1); font-family: var(--font-body); font-size: 14px; line-height: 1.6; }

/* ── App Shell ─────────────────────── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ───────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,180,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.sidebar-brand {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.brand-icon { width: 36px; height: 36px; flex-shrink: 0; }
.brand-icon svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-main { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--text-1); letter-spacing: 0.02em; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.06em; margin-top: 1px; }

.sidebar-nav { flex: 1 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-2);
  transition: all 0.18s ease;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: var(--accent-dim);
  border-color: var(--border);
  color: var(--text-1);
}
.nav-item.active {
  background: var(--accent-dim);
  border-color: rgba(0, 180, 255, 0.35);
  color: var(--accent);
}
.nav-item.active .nav-icon { color: var(--accent); }
.nav-icon { font-size: 16px; color: var(--accent); width: 20px; text-align: center; flex-shrink: 0; }
.nav-labels { display: flex; flex-direction: column; }
.nav-label { font-size: 13px; font-weight: 500; color: inherit; }
.nav-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.04em; }

.sidebar-footer { padding: 14px 16px; border-top: 1px solid var(--border); }
.system-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); margin-bottom: 4px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.version-info { font-size: 11px; color: var(--text-3); }

/* ── Main Content ──────────────────── */
.main-content { flex: 1 1; overflow-y: auto; background: var(--bg-base); }

/* ── Page Layout ───────────────────── */
.page { padding: 24px; min-height: 100%; }
.page-header { margin-bottom: 24px; }
.page-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
  flex-shrink: 0;
}
.page-subtitle { font-size: 13px; color: var(--text-3); margin-top: 4px; padding-left: 14px; }

/* ── Grid ──────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 16px; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 16px; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 16px; gap: 16px; }
.grid-col-2 { grid-column: span 2; }
.grid-col-3 { grid-column: span 3; }
.grid-col-4 { grid-column: span 4; }

/* ── Cards ─────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; text-transform: uppercase; }

/* ── KPI Cards ─────────────────────── */
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.kpi-card:hover { border-color: var(--accent); }
.kpi-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(ellipse at 100% 0%, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}
.kpi-label { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; margin-bottom: 8px; }
.kpi-value { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--text-1); line-height: 1; }
.kpi-unit { font-size: 13px; color: var(--text-2); margin-left: 4px; }
.kpi-trend { font-size: 12px; margin-top: 6px; color: var(--text-3); }
.kpi-trend.up { color: var(--green); }
.kpi-trend.down { color: var(--red); }
.kpi-accent-blue .kpi-value { color: var(--accent); }
.kpi-accent-gold .kpi-value { color: var(--accent2); }
.kpi-accent-green .kpi-value { color: var(--green); }
.kpi-accent-red .kpi-value { color: var(--red); }

/* ── Table ─────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.data-table tr:hover td { background: var(--bg-hover); }
.data-table .mono { font-family: var(--font-mono); color: var(--accent); }

/* ── Badge / Tag ────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-blue { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,180,255,0.3); }
.badge-gold { background: var(--accent2-dim); color: var(--accent2); border: 1px solid rgba(240,165,0,0.3); }
.badge-green { background: rgba(0,214,143,0.12); color: var(--green); border: 1px solid rgba(0,214,143,0.3); }
.badge-red { background: rgba(255,77,109,0.12); color: var(--red); border: 1px solid rgba(255,77,109,0.3); }
.badge-gray { background: rgba(74,106,133,0.2); color: var(--text-2); border: 1px solid var(--border); }

/* ── Alert Items ────────────────────── */
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-hover);
  margin-bottom: 8px;
}
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.alert-dot.warning { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.alert-dot.critical { background: var(--red); box-shadow: 0 0 6px var(--red); animation: pulse 1s infinite; }
.alert-body { flex: 1 1; min-width: 0; }
.alert-msg { font-size: 13px; color: var(--text-1); margin-bottom: 2px; }
.alert-meta { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

/* ── Map container ──────────────────── */
.map-wrap { height: 400px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ── Tabs ───────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Section spacing ────────────────── */
.section { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

/* ── Scrollbar ──────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Loading skeleton ───────────────── */
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-block { height: 120px; }

/* ── Progress bar ───────────────────── */
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.3s ease; }

/* ── Responsive ─────────────────────── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Admin / Modal / Form ───────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 10, 20, 0.85);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 90%; max-width: 680px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.modal-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.modal-close {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-3);
  cursor: pointer; font-size: 18px; transition: all 0.15s;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-1); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1 1; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  flex-shrink: 0;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(0, 180, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 180, 255, 0.08);
}
.form-textarea { resize: vertical; min-height: 72px; }
.form-select option { background: var(--bg-panel); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 6px;
  font-size: 13px; font-family: var(--font-body); font-weight: 500;
  cursor: pointer; border: none; transition: all 0.15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #29c5ff; }
.btn-ghost {
  background: var(--bg-hover); color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-1); border-color: var(--text-3); }
.btn-danger { background: rgba(255,77,109,0.15); color: var(--red); border: 1px solid rgba(255,77,109,0.3); }
.btn-danger:hover { background: rgba(255,77,109,0.25); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.admin-sidebar {
  width: 200px; flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.admin-table-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 12.5px;
  color: var(--text-2); cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.admin-table-item:hover { background: var(--bg-hover); color: var(--text-1); }
.admin-table-item.active {
  color: var(--accent); background: var(--accent-dim);
  border-left-color: var(--accent);
}
.admin-table-icon { font-size: 14px; width: 18px; text-align: center; }
.admin-count {
  margin-left: auto; font-size: 11px;
  font-family: var(--font-mono); color: var(--text-3);
}

.toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; flex-wrap: wrap;
}
.search-input {
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-1); font-family: var(--font-body);
  font-size: 13px; padding: 6px 12px; outline: none;
  transition: border-color 0.15s; min-width: 200px;
}
.search-input:focus { border-color: rgba(0,180,255,0.4); }
.search-input::placeholder { color: var(--text-3); }

.pagination {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-top: 1px solid var(--border);
  flex-shrink: 0; justify-content: flex-end;
}
.page-btn {
  min-width: 32px; height: 28px; border-radius: 5px;
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.page-btn:hover { color: var(--text-1); border-color: var(--text-3); }
.page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.confirm-dialog {
  background: var(--bg-card);
  border: 1px solid rgba(255,77,109,0.3);
  border-radius: 10px;
  width: 360px; padding: 24px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.confirm-icon { font-size: 36px; margin-bottom: 12px; }
.confirm-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.confirm-desc { font-size: 13px; color: var(--text-3); margin-bottom: 20px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

