@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@600;700;800&display=swap');

:root {
  --mc-bg: #050807;
  --mc-bg-elevated: #0b1210;
  --mc-panel: #0f1a16;
  --mc-panel-2: #13241d;
  --mc-border: #1f3d31;
  --mc-border-strong: #2a5a45;
  --mc-text: #e8f5ef;
  --mc-muted: #8aa99a;
  --mc-accent: #22c55e;
  --mc-accent-2: #16a34a;
  --mc-accent-dim: rgba(34, 197, 94, 0.14);
  --mc-danger: #ef4444;
  --mc-warning: #eab308;
  --mc-glow: 0 0 24px rgba(34, 197, 94, 0.25);
  --mc-radius: 16px;
  --mc-font-display: 'Orbitron', sans-serif;
  --mc-font-body: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  background: var(--mc-bg);
  color: var(--mc-text);
  font-family: var(--mc-font-body);
}

body.micert-app {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(22, 163, 74, 0.08), transparent 50%),
    linear-gradient(180deg, #050807 0%, #0a100e 100%);
}

a { color: var(--mc-accent); }
a:hover { color: #4ade80; }

.btn-micert,
.btn-primary {
  background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-2)) !important;
  border: 0 !important;
  color: #04110a !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  cursor: pointer;
}
.btn-micert:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--mc-glow);
  filter: brightness(1.05);
}

.btn-outline-micert,
.btn-outline-light {
  border: 1px solid var(--mc-border-strong) !important;
  color: var(--mc-text) !important;
  background: transparent !important;
  cursor: pointer;
}
.btn-outline-micert:hover,
.btn-outline-light:hover {
  border-color: var(--mc-accent) !important;
  color: var(--mc-accent) !important;
  background: var(--mc-accent-dim) !important;
}

.form-control, .form-select {
  background: #0a1511 !important;
  border: 1px solid var(--mc-border) !important;
  color: var(--mc-text) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--mc-accent) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}

.card, .login-card, .verify-card {
  background: linear-gradient(160deg, rgba(15, 26, 22, 0.96), rgba(11, 18, 16, 0.98));
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(34, 197, 94, 0.08);
}

.sidebar {
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #0b1411 0%, #07100c 100%) !important;
  color: white;
  position: fixed;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
  border-right: 1px solid var(--mc-border);
}
.sidebar .brand {
  font-family: var(--mc-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--mc-accent);
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}
.sidebar .nav-link {
  color: #b7d0c3 !important;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 5px;
  display: block;
  text-decoration: none;
  transition: 180ms ease;
  position: relative;
  cursor: pointer;
}
.sidebar .nav-link:hover {
  background: var(--mc-accent-dim);
  color: #fff !important;
}
.sidebar .nav-link.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(22, 163, 74, 0.18)) !important;
  color: #fff !important;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.sidebar .section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #6f8f7e;
  margin-top: 20px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-weight: 800;
}
.balance-box {
  background: var(--mc-accent-dim) !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
}

.main-content {
  margin-left: 260px;
  padding: 24px;
}

.alert-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fecaca; }
.alert-success { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); color: #bbf7d0; }
.alert-info { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.25); color: #d1fae5; }

.table { --bs-table-bg: transparent; color: var(--mc-text); }
.table > :not(caption) > * > * { border-bottom-color: var(--mc-border); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 991px) {
  .sidebar { position: relative; width: 100%; height: auto; }
  .main-content { margin-left: 0; }
}
