/* ===== Üzenetek (siker/hiba) ===== */
.message {
  text-align: center;
  padding: 8px 10px;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  margin: 8px 0;
  font-size: .95em;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.message.success {
  background: #2f9e44; /* enyhén zöld */
}
.message.error {
  background: #c92a2a; /* pirosas, de nem rikító */
}

/* ===== Oldal konténer / elrendezés ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 14px;
  text-align: center;
}
.page-header h1 {
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.2;
}

/* gombok / akciók */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 10px 0 18px;
}
.button.special {
  display: block;
  width: max-content;
  margin: 0 auto;
  padding: .55em 1.1em;
  text-decoration: none;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: .15s ease;
  font-weight: 600;
  background: #1b3b8f;
  color: #fff;
}
.button.special:hover {
  opacity: .92;
}

/* ===== Elemző kártyák (strófák) ===== */
.stanza-card {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  padding: 16px;
  margin-bottom: 16px;
}

.stanza-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.stanza-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.scheme-label {
  color: #666;
  margin-right: 6px;
  font-size: .9em;
}
.scheme-badge {
  display: inline-block;
  background: #eef5ff;
  border: 1px solid #cfe1ff;
  color: #0b3b82;
  border-radius: 999px;
  padding: .15em .6em;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .85em;
}

/* ===== Sorok listája ===== */
.line-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Egy sor "kártya" */
.line-card {
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-items: flex-start;
  grid-template-columns: 1fr; /* mobilon egyoszlopos */
}

/* nagyobb kijelzőn: bal sor, jobb elemzés */
@media (min-width: 700px) {
  .line-card {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  }
}

/* Bal oldal: sorszám + szöveg */
.line-left {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.line-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #f2f6ff;
  color: #1b3b8f;
  border: 1px solid #cfe1ff;
  font-size: .9em;
}

/* A verssor – mindenképp balra zárva */
.line-text {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;   /* <-- pre-wrap helyett */
  text-align: left;
}

/* Jobb oldal: elemzés adatai */
.line-right {
  border-left: 1px dashed #e5e5e5;
  padding-left: 12px;
}
@media (max-width: 699px) {
  .line-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px dashed #e5e5e5;
    padding-top: 8px;
  }
}

.line-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-item {
  font-size: .95em;
  color: #222;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.meta-label {
  color: #666;
  flex: 0 0 auto;
  font-weight: 500;
}

.badge {
  display: inline-block;
  background: #eef5ff;
  border: 1px solid #cfe1ff;
  color: #0b3b82;
  border-radius: 999px;
  padding: .1em .6em;
  font-weight: 700;
  font-size: .85em;
}
.dim {
  color: #777;
  font-size: .9em;
}

/* eszköz / jelzés cimkék, ha használod */
.device {
  display: inline-block;
  margin: 2px 6px 0 0;
  padding: .15em .6em;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #f7f7f7;
  font-size: .85em;
}

/* ===== Űrlap (ha marad inputos verzió is) ===== */
.helper {
  color: #666;
  font-size: .9em;
  margin: .25rem 0 .75rem;
}
form textarea {
  width: 100%;
  min-height: 240px;
  padding: .85em 1em;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial;
  line-height: 1.5;
  background: #fafafa;
}
form textarea:focus {
  outline: 0;
  background: #fff;
  border-color: #b5d5ff;
  box-shadow: 0 0 0 4px rgba(0,123,255,.12);
}
form .submit-row {
  margin-top: 10px;
  text-align: right;
}
@media (max-width: 640px) {
  form .submit-row {
    text-align: center;
  }
}

/* ===== Layout: sidebar csak 1024 felett ===== */
@media (max-width: 1023px) {
  .sidebar {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .main-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }
  .content-area {
    flex: 1 1 auto;
    min-width: 0;
  }
  .sidebar {
    flex: 0 0 300px;
  }
}
