:root {
  --bg-dark-start: rgba(10, 15, 30, 1);
  --bg-dark-mid: rgba(13, 27, 42, 1);
  --bg-dark-end: rgba(10, 22, 40, 1);
  --bg-admin-start: rgba(6, 13, 26, 1);
  --bg-admin-end: rgba(10, 18, 32, 1);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(255, 255, 255, 0.06);
  --row-hover: rgba(255, 255, 255, 0.02);
  --row-border: rgba(255, 255, 255, 0.05);
  --blue: rgba(26, 107, 255, 1);
  --blue-light: rgba(77, 166, 255, 1);
  --blue-bg: rgba(26, 107, 255, 0.15);
  --blue-border: rgba(26, 107, 255, 0.3);
  --blue-active: rgba(26, 107, 255, 0.9);
  --green: rgba(0, 204, 136, 1);
  --green-bg: rgba(0, 204, 136, 0.12);
  --green-border: rgba(0, 204, 136, 0.3);
  --orange: rgba(255, 140, 90, 1);
  --orange-bg: rgba(255, 107, 53, 0.15);
  --orange-border: rgba(255, 107, 53, 0.4);
  --red: rgba(239, 68, 68, 1);
  --red-active: rgba(239, 68, 68, 0.85);
  --red-bg: rgba(255, 68, 68, 0.06);
  --yellow: rgba(245, 158, 11, 1);
  --yellow-bg: rgba(245, 158, 11, 0.1);
  --yellow-border: rgba(245, 158, 11, 0.3);
  --text-primary: rgba(232, 244, 255, 1);
  --text-secondary: rgba(156, 163, 175, 1);
  --text-muted: rgba(107, 114, 128, 1);
  --text-header: rgba(0, 204, 136, 1);
  --sidebar-bg: rgba(255, 255, 255, 0.03);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 100px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
  --font-regular: "Inter-Regular", sans-serif;
  --font-medium: "Inter-Medium", sans-serif;
  --font-semibold: "Inter-Semi Bold", sans-serif;
  --font-bold: "Inter-Bold", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ol, ul, menu {
  padding-inline-start: 0;
  list-style: none;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: var(--font-regular);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

span, p {
  word-break: break-word;
}

.bg-gradient {
  background: linear-gradient(90deg, var(--bg-dark-start), var(--bg-dark-mid), var(--bg-dark-end));
}

.bg-gradient-admin {
  background: linear-gradient(90deg, var(--bg-admin-start), var(--bg-admin-end));
}

.glass-nav {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  background: var(--header-bg);
  padding: 0 20px;
  height: 48px;
  display: flex;
  align-items: center;
}

.input-field {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-regular);
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-color: var(--blue);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-semibold);
  font-size: 13px;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--blue-active);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue);
}

.btn-danger {
  background: var(--red-active);
  color: #fff;
}

.btn-danger:hover {
  background: var(--red);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--input-border);
}

.btn-ghost:hover {
  background: var(--input-bg);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  opacity: 0.9;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 24px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: var(--font-medium);
  white-space: nowrap;
}

.tag-orange {
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  color: var(--orange);
}

.tag-green {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.tag-blue {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue-light);
}

.tag-red {
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.tag-yellow {
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  color: var(--yellow);
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.icon {
  width: 14px;
  height: 14px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.icon-sm {
  width: 12px;
  height: 12px;
}

.icon-md {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 18px;
  height: 18px;
}

.title-gradient {
  background: linear-gradient(90deg, var(--blue-light), rgba(0, 229, 160, 1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 8px;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-size: 13px;
  color: #fff;
}

.sidebar-logo-text {
  font-family: var(--font-bold);
  font-size: 16px;
  color: var(--text-primary);
}

.sidebar-comment {
  font-size: 10px;
  font-family: var(--font-medium);
  color: rgba(55, 65, 81, 1);
  padding: 0 8px;
  margin-top: 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: var(--text-secondary);
}

.sidebar-nav-item:hover {
  background: var(--input-bg);
}

.sidebar-nav-item.active {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--text-primary);
}

.sidebar-nav-item .icon-indicators {
  display: flex;
  gap: 2px;
  margin-right: 2px;
}

.sidebar-nav-item .icon-indicators span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.sidebar-nav-item.active .icon-indicators span {
  background: var(--blue-light);
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-card-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-card-value .number {
  font-family: var(--font-bold);
  font-size: 24px;
  color: var(--text-primary);
}

.stat-card-value .change {
  font-size: 12px;
  font-family: var(--font-medium);
}

.change-up {
  color: var(--green);
}

.change-neutral {
  color: var(--text-muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  font-size: 12px;
  font-family: var(--font-semibold);
  color: var(--text-header);
  text-align: left;
  padding: 0 12px;
  height: 48px;
  background: var(--header-bg);
  white-space: nowrap;
}

.table td {
  padding: 0 12px;
  height: 60px;
  border-bottom: 1px solid var(--row-border);
  font-size: 13px;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--row-hover);
}

.site-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.site-dot-blue {
  background: var(--blue);
}

.site-dot-green {
  background: var(--green);
}

.toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--text-muted);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-switch.active {
  background: var(--green);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.toggle-switch.active::after {
  transform: translateX(16px);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.pagination-btn:hover {
  background: var(--input-bg);
}

.pagination-btn.active {
  background: var(--blue-active);
  border-color: var(--blue-active);
  color: #fff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal {
  background: linear-gradient(90deg, var(--bg-admin-start), var(--bg-admin-end));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-family: var(--font-semibold);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-family: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  z-index: 2000;
  animation: slideIn 0.3s ease;
}

.toast-success {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.toast-error {
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width: 240px;
    height: 100vh;
  }

  .sidebar.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex !important;
  }
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-overlay.open {
  display: block;
}

@media (max-width: 640px) {
  .card-header {
    padding: 0 12px;
  }

  .table th, .table td {
    padding: 0 8px;
  }
}
