/* Verimek VPN Panel — clean corporate theme */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --vm-blue: #0a51a1;
  --vm-deep: #00104b;
  --vm-bright: #0083ff;
  --vm-teal: #46bfaa;
  --vm-bg: #f1f5f9;
  --vm-card: #ffffff;
  --vm-text: #0f172a;
  --vm-muted: #64748b;
  --vm-border: #e2e8f0;
  --vm-shadow: 0 18px 50px rgba(0, 16, 75, 0.10);
}

html, body {
  font-family: 'Manrope', system-ui, sans-serif !important;
}

/* Force readable light Verimek look even if dark class is present */
body.bg-gray-50,
body.dark\:bg-neutral-800,
body {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(0, 131, 255, 0.16), transparent 60%),
    radial-gradient(700px 360px at 95% 0%, rgba(70, 191, 170, 0.12), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 55%, #e8edf3 100%) !important;
  color: var(--vm-text) !important;
  min-height: 100vh !important;
}

/* ===== Brand header ===== */
.vm-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vm-brand img {
  height: 40px;
  width: auto;
  max-width: 220px;
  display: block;
}
.vm-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.vm-brand-text strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--vm-deep) !important;
  letter-spacing: -0.02em;
}
.vm-brand-text span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--vm-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1.vm-hide-default > img[src="./img/logo.png"],
h1.vm-hide-default > span.align-middle {
  display: none !important;
}

/* ===== Cards / clients ===== */
.shadow-md.rounded-lg.bg-white,
.shadow.rounded-md.bg-white,
.dark\:bg-neutral-700.shadow-md,
.dark\:bg-neutral-700.shadow {
  background: var(--vm-card) !important;
  border: 1px solid var(--vm-border) !important;
  box-shadow: var(--vm-shadow) !important;
  border-radius: 18px !important;
  color: var(--vm-text) !important;
}

.border-b-2.border-gray-100,
.dark\:border-neutral-600 {
  border-color: #eef2f7 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.text-2xl.font-medium,
.dark\:text-neutral-200 {
  color: var(--vm-deep) !important;
}

/* Red -> Verimek blue */
.bg-red-800, .dark\:bg-red-800, .bg-red-600, .dark\:bg-red-600 {
  background-color: var(--vm-blue) !important;
}
.hover\:bg-red-800:hover, .hover\:bg-red-700:hover, .dark\:hover\:bg-red-700:hover {
  background-color: var(--vm-bright) !important;
  border-color: var(--vm-bright) !important;
  color: #fff !important;
}
.hover\:border-red-800:hover { border-color: var(--vm-bright) !important; }
.focus\:border-red-800:focus, .dark\:focus\:border-red-800:focus {
  border-color: var(--vm-bright) !important;
  box-shadow: 0 0 0 3px rgba(0, 131, 255, 0.22);
}
.text-red-800, .dark\:text-red-600, .text-red-600 { color: var(--vm-blue) !important; }
.border-red-800, .dark\:border-red-600 { border-color: var(--vm-blue) !important; }
.bg-red-100, .dark\:bg-red-100 { background-color: #eff6ff !important; }

/* Online dot */
.animate-ping.bg-red-100 { background-color: rgba(70, 191, 170, 0.4) !important; }
.w-2.h-2.bg-red-800, .w-2.h-2.dark\:bg-red-600 { background-color: var(--vm-teal) !important; }

/* Keep Mbps readable */
.text-gray-400, .dark\:text-neutral-400, .text-neutral-400 {
  color: #64748b !important;
}
.text-xs, .text-sm { font-variant-numeric: tabular-nums; }

/* ===== LOGIN ===== */
.vm-login-shell {
  max-width: 420px;
  margin: 4rem auto 0;
  padding: 0 1rem;
}
.vm-login-card {
  background: #fff !important;
  border: 1px solid var(--vm-border);
  border-radius: 22px;
  box-shadow: var(--vm-shadow);
  padding: 2rem 1.75rem 1.75rem;
}
.vm-login-title {
  text-align: center;
  margin: 0 0 1.5rem;
}
.vm-login-title img {
  height: 46px;
  width: auto;
  max-width: 260px;
  display: block;
  margin: 0 auto 14px;
}
.vm-login-title strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--vm-deep) !important;
}
.vm-login-title span {
  display: block;
  margin-top: 6px;
  color: var(--vm-muted) !important;
  font-size: 0.92rem;
  font-weight: 500;
}

/* Override original tiny dark login form */
.vm-login-shell form.shadow.rounded-md,
form.shadow.rounded-md.bg-white,
form.shadow.rounded-md.dark\:bg-neutral-700 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.vm-login-shell .h-20.w-20 {
  background: linear-gradient(145deg, var(--vm-blue), var(--vm-deep)) !important;
  box-shadow: 0 10px 24px rgba(10, 81, 161, 0.28);
}
.vm-login-shell input[type="password"] {
  background: #f8fafc !important;
  color: var(--vm-text) !important;
  border: 1.5px solid #dbe3ee !important;
  border-radius: 12px !important;
  padding: 0.85rem 1rem !important;
  font-size: 0.95rem !important;
}
.vm-login-shell input[type="password"]::placeholder {
  color: #94a3b8 !important;
}
.vm-login-shell input[type="submit"],
.vm-login-shell button {
  border-radius: 12px !important;
  padding: 0.85rem 1rem !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

/* Footer */
.vm-footer {
  text-align: center;
  margin: 2.25rem 1rem 2rem;
  color: #64748b !important;
  font-size: 0.9rem;
  font-weight: 600;
}
.vm-footer .heart {
  color: #e11d48;
  display: inline-block;
  margin: 0 0.28rem;
  animation: vm-pulse 1.6s ease-in-out infinite;
}
@keyframes vm-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Dark-mode class leftovers: force light text colors on cards */
.dark\:text-neutral-200,
.dark\:text-neutral-300,
.dark\:text-white {
  color: inherit;
}
body .dark\:bg-neutral-700,
body .dark\:bg-neutral-800,
body .dark\:bg-neutral-600 {
  /* keep overridden by more specific rules above */
}


.vm-search::placeholder { color: #94a3b8; }


/* Monitoring */
.vm-monitor { margin-top: 0.25rem; }
.vm-monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 720px) {
  .vm-monitor-grid { grid-template-columns: 1fr; }
}
.vm-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 16, 75, 0.06);
}
.vm-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.vm-stat-value {
  margin-top: 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #00104b;
  font-variant-numeric: tabular-nums;
}
.vm-stat-sub {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}
.vm-history {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.9rem 1.1rem 0.4rem;
  box-shadow: 0 10px 30px rgba(0, 16, 75, 0.06);
}
.vm-history-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #00104b;
  margin-bottom: 0.55rem;
}
.vm-history-empty {
  color: #94a3b8;
  font-size: 0.85rem;
  padding-bottom: 0.7rem;
}
.vm-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.vm-history-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid #f1f5f9;
}
.vm-history-list li:first-child { border-top: 0; }
.vm-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #46bfaa;
  box-shadow: 0 0 0 4px rgba(70, 191, 170, 0.18);
  flex-shrink: 0;
}
.vm-history-body { flex: 1; min-width: 0; }
.vm-history-body strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}
.vm-history-meta {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.1rem;
}
.vm-history-list time {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  padding-top: 0.15rem;
}
