/* ============================================================
   LOG CONSOLE — Cyberpunk Terminal Style
   Eigenständige Datei, unabhängig von custom.css
   ============================================================ */

.console-wrap {
  padding: 1.5rem 0;
}

.console-window {
  background: #0a0e0f;
  border: 1px solid #1a3a38;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(4, 255, 235, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(4, 255, 235, 0.04);
  overflow: hidden;
  font-family: "Fira Code", "Consolas", monospace;
  display: flex;
  flex-direction: column;
  height: 85vh;
  position: relative;
}

/* subtle scanline overlay */
.console-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 5;
  opacity: 0.5;
}

/* ---------- Titlebar ---------- */

.console-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: linear-gradient(to bottom, #10171a, #0c1214);
  border-bottom: 1px solid #1a3a38;
  flex-shrink: 0;
}

.console-dots {
  display: flex;
  gap: 0.4rem;
  width: 100px;
  flex-direction: row-reverse;
}

.console-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.85;
}

.console-dot-red    { background: #ff5f56; }
.console-dot-yellow { background: #ffbd2e; }
.console-dot-green  { background: #27c93f; }

.console-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #04FFEB;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  flex-grow: 1;
  justify-content: center;
}

.console-title i {
  font-size: 0.85rem;
}

.console-status {
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: #3ddc97;
  font-weight: 600;
}

.console-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 6px #3ddc97;
  animation: console-pulse 1.6s ease-in-out infinite;
}

.console-status-dot-error {
  background: #ff5f56;
  box-shadow: 0 0 6px #ff5f56;
}

@keyframes console-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ---------- Toolbar ---------- */

.console-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: #0c1214;
  border-bottom: 1px solid #15201f;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.console-filter-group {
  display: flex;
  gap: 0.35rem;
}

.console-filter-btn {
  background: transparent;
  border: 1px solid #1a3a38;
  color: #5e8a85;
  font-size: 0.68rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.console-filter-btn:hover {
  border-color: #04FFEB55;
  color: #04FFEB;
}

.console-filter-btn.active {
  background: #04ffeb14;
  border-color: #04FFEB;
  color: #04FFEB;
}

.console-search-wrap {
  position: relative;
  flex-grow: 1;
  max-width: 260px;
}

.console-search-wrap i {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #4a6a66;
  font-size: 0.75rem;
}

.console-search-wrap input {
  width: 100%;
  background: #060a0b !important;
  border: 1px solid #1a3a38 !important;
  color: #c5f5ef;
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem 0.3rem 1.8rem;
  border-radius: 4px;
  outline: none;
}

.console-search-wrap input::placeholder {
  color: #3f5c59;
}

.console-search-wrap input:focus {
  border-color: #04FFEB;
  box-shadow: 0 0 0 2px #04ffeb22;
}

.console-clear-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid #1a3a38;
  color: #5e8a85;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.console-clear-btn:hover {
  border-color: #ff5f56;
  color: #ff5f56;
}

/* ---------- Body / Log Lines ---------- */

.console-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  background:
    radial-gradient(ellipse at top, rgba(4, 255, 235, 0.025), transparent 60%),
    #060a0b;
  font-size: 0.82rem;
  line-height: 1.7;
}

.console-body::-webkit-scrollbar {
  width: 8px;
}

.console-body::-webkit-scrollbar-track {
  background: #0a0e0f;
}

.console-body::-webkit-scrollbar-thumb {
  background: #1a3a38;
  border-radius: 4px;
}

.console-body::-webkit-scrollbar-thumb:hover {
  background: #04FFEB55;
}

.console-boot-line {
  color: #4a6a66;
  font-style: italic;
}

.console-prompt {
  color: #04FFEB;
  margin-right: 0.4rem;
}

.console-cursor-blink {
  animation: console-blink 1s steps(2, start) infinite;
  color: #04FFEB;
}

@keyframes console-blink {
  to { visibility: hidden; }
}

.console-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  white-space: pre-wrap;
  word-break: break-word;
  animation: console-line-in 0.25s ease;
}

@keyframes console-line-in {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

.console-line:hover {
  background: rgba(4, 255, 235, 0.04);
}

.console-line-icon {
  flex-shrink: 0;
  width: 14px;
  text-align: center;
  font-size: 0.7rem;
}

.console-line-time {
  flex-shrink: 0;
  color: #4a6a66;
  font-size: 0.74rem;
}

.console-line-source {
  flex-shrink: 0;
  color: #6b9b96;
  font-weight: 600;
  font-size: 0.74rem;
}

.console-line-msg {
  color: #c5f5ef;
  flex-grow: 1;
}

/* Level colors */

.console-line-info .console-line-icon     { color: #6b9b96; }
.console-line-info .console-line-msg      { color: #c5f5ef; }

.console-line-success .console-line-icon  { color: #3ddc97; }
.console-line-success .console-line-msg   { color: #9ff5d4; }
.console-line-success                     { background: rgba(61, 220, 151, 0.04); }

.console-line-warn .console-line-icon     { color: #ffbd2e; }
.console-line-warn .console-line-msg      { color: #ffe0a3; }
.console-line-warn                        { background: rgba(255, 189, 46, 0.05); }

.console-line-error .console-line-icon    { color: #ff5f56; }
.console-line-error .console-line-msg     { color: #ffb3b0; }
.console-line-error                       { background: rgba(255, 95, 86, 0.06); }

.console-line-special .console-line-icon    { color: #9f56ff; }
.console-line-special .console-line-msg     { color: #d9b0ff; }
.console-line-special                       { background: rgba(168, 86, 255, 0.06); }

/* ---------- Command Input ---------- */

.console-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: #0c1214;
  border-top: 1px solid #1a3a38;
  flex-shrink: 0;
}

.console-input-prompt {
  color: #04FFEB;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.console-input {
  flex-grow: 1;
  background: transparent !important;
  background: unset !important;
  border: none;
  outline: none;
  color: #c5f5ef;
  font-family: inherit;
  font-size: 0.82rem;
  caret-color: #04FFEB;
}

.console-input::placeholder {
  color: #3f5c59;
}

.console-line-cmd {
  margin-top: 0.3rem;
}

.console-line-cmd .console-line-icon {
  color: #04FFEB;
}

.console-line-msg-cmd {
  color: #7fe9e0;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.console-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #0c1214;
  border-top: 1px solid #15201f;
  color: #4a6a66;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.console-footer-sep {
  opacity: 0.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 767.98px) {
  .console-window {
    height: 60vh;
  }
  .console-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .console-search-wrap {
    max-width: 100%;
  }
  .console-clear-btn {
    margin-left: 0;
    align-self: flex-end;
  }
}