/* =========================
   ✨  Quantara Dashboard - Modern Style - General
   ========================= */

:root {
  --bg: #00175c;
  --panel: #1f2330;
  --hover: #2b2f40;
  --accent: #5865f2;
  --accent-light: #8892f6;
  --danger: #e74c3c;
  --warning: #f39c12;
  --success: #2ecc71;
  --font-color: #ffffff;
  --font-muted: #b0b3b8;
  --border: #232428;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  /* <- aus :root, = #00175c */
  background-image: url('https://quantara-bot.net/assets/avatar.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--font-color);
  display: flex;
  overflow: hidden;
}


.sidebar {
  width: 240px;
  background: var(--panel);
  padding: 24px;
  height: 100vh;
  position: fixed;
  border-right: 1px solid var(--border);
}

.sidebar h1 {
  font-size: 26px;
  margin-bottom: 30px;
  color: var(--accent);
}

.sidebar nav a {
  display: block;
  padding: 10px 16px;
  margin: 6px 0;
  border-radius: 8px;
  color: var(--font-color);
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar nav a:hover {
  background: var(--hover);
}

.sidebar-category {
  margin: 24px 0 10px;
  font-size: 12px;
  color: var(--font-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

main {
  margin-left: 290px;
  padding: 40px;
  flex: 1;
  background-color: rgba(10, 10, 20, 0.92);
  /* dunkler als reines Schwarz */
  backdrop-filter: blur(3px);
}



h2,
h3 {
  color: var(--accent-light);
  margin-top: 1rem;
}

pre,
code {
  background: var(--panel);
  color: var(--font-color);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: Consolas, monospace;
  font-size: 13px;
}

/* =========================
   ✨  Quantara Dashboard - Modern Style - Info Boxes
   ========================= */
.info-box,
.warning-box,
.error-box {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  color: var(--font-color);
}

.info-box {
  background: rgba(88, 101, 242, 0.1);
  border-left: 4px solid var(--accent);
}

.warning-box {
  background: rgba(243, 156, 18, 0.1);
  border-left: 4px solid var(--warning);
}

.error-box {
  background: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--danger);
}

/* =========================
   ✨  Quantara Dashboard - Modern Style - Tables
   ========================= */
.table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--hover);
  color: var(--font-muted);
  text-transform: uppercase;
  font-size: 13px;
}

.table tr:hover {
  background: var(--hover);
}

/* =========================
   ✨  Quantara Dashboard - Modern Style - Buttons
   ========================= */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-muted {
  background: var(--hover);
  color: var(--font-muted);
}

/* =========================
   ✨  Quantara Dashboard - Modern Style - Input Fields
   ========================= */
input[type="text"],
select[multiple] {
  width: 100%;
  background: var(--panel);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem;
  margin-bottom: 1rem;
}

/* Copy Link Icon */
.copy-link {
  font-size: 14px;
  color: var(--accent);
  margin-left: 6px;
  display: none;
}

strong:hover .copy-link {
  display: inline;
}

/* =========================
   ✨  Quantara Dashboard - Modern Style - Dropdowns
   ========================= */
.dropdown {
  margin: 5px 0;
}

.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, .03);
  user-select: none;
  border-left: 3px solid transparent;
  transition: background .2s, border-left .2s;
}

.dropdown-toggle:hover {
  background: rgba(88, 101, 242, .1);
}

.dropdown.open .dropdown-toggle {
  border-left: 3px solid #5865f2;
}

.dropdown-arrow {
  transition: transform .2s;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(90deg);
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  margin-left: 10px;
  border-left: 2px solid rgba(88, 101, 242, .5);
  padding-left: 10px;
}

.dropdown.open .dropdown-menu {
  display: flex;
  padding: 3px 7px;
}

.dropdown-menu a {
  color: #fff;
  padding: 3px 7px;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}

.dropdown-menu a:hover {
  background: rgba(88, 101, 242, .15);
}

/* =========================
   ✨  Quantara Dashboard - Modern Style - Notices
   ========================= */

#notice {
  display: none;
  padding: .65rem .9rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: .85rem
}

#notice.ok {
  background: #27ae60;
  color: #fff
}

#notice.error {
  background: #c0392b;
  color: #fff
}

#notice.warn {
  background: #f39c12;
  color: #fff
}

#notice button {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: 0;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1
}

/* =========================
   ✨  Quantara Dashboard - Modern Style - User State
   ========================= */

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  background-color: var(--card);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 120px;
  z-index: 1;
}

.dropdown-content a {
  color: #fff;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--hover);
}

.dropdown-content.show {
  display: block;
}


a {
  color: var(--accent);
  text-decoration: none;
}