﻿:root {
  --bg: #05070d;
  --panel: #0b1220;
  --panel2: #101a2b;
  --text: #e7efff;
  --muted: #8ba3c1;
  --accent: #5af7ff;
  --accent2: #7f66ff;
  --border: rgba(95, 155, 215, 0.35);
  --shadow: 0 8px 26px rgba(15, 30, 75, 0.32);
  --danger: #ff5370;
  --success: #47f7ac;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #121d33 0%, #05070d 45%, #03050b 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.app-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 16px;
}

.main-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  min-height: calc(100vh - 32px);
}

.left-menu {
  background: linear-gradient(180deg, #0f1830 0%, #0b1226 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top-brand {
  display: flex;
}

.top-brand h1 {
  user-select: none;
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.menu-group small {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  margin-bottom: 6px;
}

.menu-group input,
.menu-group select,
.menu-group button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(10, 14, 27, 0.95);
  color: var(--text);
}

.menu-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-right: 10px;
}

.download-btn {
  margin-bottom: -8px;
  width: 25px;
  cursor: pointer;
  margin-left: auto;
}


.btn.primary {
  color: white;
  border-color: transparent;
  font-weight: 700;
  margin: 10px 0 0 0;
  border: 1px solid var(--border);
  cursor: pointer;
}

.status {
  color: var(--muted);
  font-size: 0.84rem;
  background: rgba(2, 10, 26, 0.7);
  padding: 8px;
  border: 1px solid rgba(121, 167, 238, 0.2);
  border-radius: 10px;
}

.right-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-status {
  color: var(--muted);
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(9, 18, 34, 0.95);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 180px);
}

.result-card {
  background: linear-gradient(180deg, rgba(7, 14, 32, 0.85), rgba(11, 20, 38, 0.92));
  border: 1px solid rgba(54, 86, 150, 0.48);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(5, 12, 25, 0.4);
}

.result-card h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}

.badge-type {
  color: black;
  font-size: .74rem;
  border-radius: 999px;
  padding: 2px 8px;
}

.badge-type-class {
  background-color: palevioletred;
}

.badge-type-method {
  background-color: orange;
}

.badge-type-field {
  background-color: darkcyan;
}

.row {
  display: inline;
  align-items: center;
  margin: 6px 0;
  word-break: break-all;
}

.key {
  color: var(--muted);
  font-size: .76rem;
}

.value {
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.source-btn {
  width: 25px;
  cursor: pointer;
  margin-left: auto;
}

.copy-btn-big {
  width: 25px;
  cursor: pointer;
  margin-bottom: -5px;
}

.copy-btn {
  width: 20px;
  top: 5px;
  position: relative;
  cursor: pointer;
}

.source-expanded {
  margin-top: 8px;
  max-height: 500px;
  overflow: auto;
  background: rgba(1, 9, 24, 0.85);
  border: 1px solid rgba(84, 111, 207, 0.4);
  border-radius: 10px;
  padding: 8px;
}

.source-expanded pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #bbd9ff;
  font-size: .82rem;
}

.hidden {
  display: none;
}

.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  width: 80px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -40px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: small;
  font-weight: normal;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media(max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .left-menu {
    top: 0;
    z-index: 20;
  }
}