/* ============================================================
   Griechisches.com — Tool Console Styles
   Built on global.css (UA-console)
   ============================================================ */

.gx-tool-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}

@media (max-width: 900px){
  .gx-tool-grid{ grid-template-columns: 1fr; }
}

.gx-box{
  border: 1px solid var(--gx-border-soft);
  border-radius: 16px;
  background: rgba(5,10,26,0.30);
  padding: 14px;
}

.gx-kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 900;
}

.gx-letter{
  font-size: 42px;
  font-weight: 1000;
  letter-spacing: .02em;
  color: #F2F7FF;
  text-shadow: 0 0 18px rgba(30,91,255,.18);
}

.gx-practice-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  margin-top: 10px;
}

.gx-result{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--gx-border-soft);
  background: rgba(5,10,26,0.40);
}

.gx-result.is-ok{
  border-color: rgba(79,209,255,.45);
  box-shadow: 0 0 18px rgba(79,209,255,.18);
}

.gx-result.is-bad{
  border-color: rgba(255, 210, 74, .45);
  box-shadow: 0 0 18px rgba(255, 210, 74, .14);
}

.gx-copy-area{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* =========================================================
   FIX: Force Greek Dark Console Identity
   ========================================================= */

/* Main console background */
.ua-console,
.ua-panel{
  background: linear-gradient(
    180deg,
    rgba(10,18,40,.92),
    rgba(6,12,28,.95)
  ) !important;
  color: var(--gx-text) !important;
}

/* Inner boxes (left table + right controls) */
.gx-box{
  background: rgba(5,10,26,.75) !important;
  border: 1px solid var(--gx-border) !important;
}

/* Tabs */
.ua-tab{
  background: rgba(5,10,26,.65) !important;
  color: var(--gx-text) !important;
  border: 1px solid var(--gx-border-soft) !important;
}

.ua-tab[aria-selected="true"]{
  background: linear-gradient(
    180deg,
    rgba(30,91,255,.95),
    rgba(30,91,255,.75)
  ) !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(30,91,255,.35) !important;
}

/* Tables */
.ua-table{
  background: rgba(5,10,26,.55) !important;
}

.ua-table th{
  background: rgba(5,10,26,.85) !important;
  color: #fff !important;
}

.ua-table td{
  color: var(--gx-text) !important;
}

/* Inputs / selects */
.ua-input,
.ua-select,
.ua-textarea,
input,
select{
  background: rgba(5,10,26,.85) !important;
  color: var(--gx-text) !important;
  border: 1px solid var(--gx-border) !important;
}

/* Right sidebar titles */
aside .ua-title,
aside .ua-small{
  color: var(--gx-text) !important;
}

/* Kill any gray fallback */
[style*="background: #7"],
[style*="background:#7"]{
  background: rgba(5,10,26,.8) !important;
}



/* ===== GX_TOOL_ROOT_FIX ===== */
.gx-tool-root{
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 100%;
}
.gx-tool-root .ua-console{ max-width:100%; }



/* ===== GX_TOOL_FRAME_FIX ===== */
.ua-console{
  outline: none !important;
}



/* ===== GX_ICON_COLORS ===== */
.gx-result{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.gx-icon{
  display:inline-flex;
  width:26px;height:26px;
  align-items:center;justify-content:center;
  border-radius:999px;
  font-weight:1000;
  line-height:1;
  flex:0 0 auto;
  margin-top:1px;
}
.gx-icon.ok{
  color:#19ff8a;
  border:1px solid rgba(25,255,138,.45);
  box-shadow:0 0 14px rgba(25,255,138,.18);
  background:rgba(25,255,138,.06);
}
.gx-icon.bad{
  color:#ff3b3b;
  border:1px solid rgba(255,59,59,.45);
  box-shadow:0 0 14px rgba(255,59,59,.18);
  background:rgba(255,59,59,.06);
}



/* ===== GX_WRITE_ANIM ===== */
.gx-write-wrap{
  border: 1px solid var(--gx-border-soft, rgba(79,209,255,0.18));
  border-radius: 16px;
  background: rgba(5,10,26,.55);
  padding: 12px;
  overflow: hidden;
}
.gx-write{ width:100%; height:220px; }
.gx-write-text{
  font-size: 120px;
  font-weight: 900;
  fill: none;
  stroke: url(#gxInk);
  stroke-width: 3.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: gxDraw 1.7s ease forwards;
  filter: drop-shadow(0 0 12px rgba(30,91,255,.18));
}
@keyframes gxDraw{ to { stroke-dashoffset: 0; } }

/* ===== GX_TABLE_CENTER ===== */
.ua-table th,
.ua-table td{
  text-align: center;
}

/* ===== GX_HEADER_SPACING ===== */
.ua-title{
  margin-bottom: 6px;
}
.ua-subtitle{
  margin-bottom: 16px;
  line-height: 1.35;
}

/* ===== GX_TABLE_POLISH ===== */
.ua-table{
  border-radius: 14px;
  overflow: hidden;
}
.ua-table th{
  letter-spacing: .02em;
}
.ua-table tbody tr:hover td{
  background: rgba(30,91,255,.10) !important;
}
.ua-table td{
  padding: 12px 10px;
}

/* ===== GX_PRACTICE_MOBILE ===== */
@media (max-width: 520px){
  .gx-practice-row .ua-btn,
  .gx-practice-row .ua-input{
    width: 100%;
    max-width: 100% !important;
  }
}
.gx-more-row td{
  padding-top: 6px !important;
  padding-bottom: 14px !important;
  opacity: .9;
}

.gx-more-link{
  text-decoration: underline;
}

/* ===== GX_COPYLIST (zeichen.tv style inspired) ===== */
.gx-copylist{
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--gx-border-soft, rgba(79,209,255,0.18));
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5,10,26,.35);
}

.gx-copyli{
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(79,209,255,0.10);
}

.gx-copyli:first-child{ border-top: 0; }

.gx-copychar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--gx-border-soft, rgba(79,209,255,0.18));
  background: rgba(5,10,26,.55);
  cursor: pointer;
  user-select: none;
}

.gx-copychar-inner{
  font-size: 26px;
  font-weight: 900;
  color: #F2F7FF;
}

.gx-copysign{
  opacity: .9;
}

.gx-copyactions{
  display: inline-flex;
  align-items: center;
}

.gx-copybtn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--gx-border-soft, rgba(79,209,255,0.18));
  background: rgba(5,10,26,.55);
  text-decoration: none;
  color: var(--gx-text);
  font-weight: 800;
}

.gx-copyuni{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 900;
  opacity: .95;
}

.gx-copyunilabel{
  opacity: .7;
  white-space: nowrap;
}

/* copied feedback */
.gx-copybtn.is-copied,
.gx-copychar.is-copied{
  border-color: rgba(25,255,138,.45);
  box-shadow: 0 0 16px rgba(25,255,138,.18);
}

/* mobile */
@media (max-width: 560px){
  .gx-copyli{
    grid-template-columns: 70px 1fr;
    grid-auto-rows: auto;
  }
  .gx-copyactions{ grid-column: 1 / -1; }
  .gx-copyuni{ grid-column: 1 / -1; }
  .gx-copyunilabel{ grid-column: 1 / -1; margin-top: -6px; }
}
/* =========================================================
   GX Buttons: make PDF button look like audio buttons
   (works for speaker/mic/download because all use .gx-ico)
   ========================================================= */

/* Button layout: icon + text */
.ua-console .ua-btn,
.ua-console a.ua-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
}

/* Unified SVG icon style (speaker/mic/download) */
.ua-console .ua-btn .gx-ico{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
  opacity: .95;
  transform: translateY(-.5px);
}

/* Keep text aligned nicely with the icon */
.ua-console .ua-btn span{
  display: inline-block;
  transform: translateY(.5px);
}

/* Optional: if PDF button looks slightly different, enforce same weight */
.ua-console a.ua-btn[download]{
  font-weight: 800;
}
