/* ====== WEB DESIGN ====== */

/* 1) Body & Container */
body {
  background: #f8f9fa;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
}
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 8px 24px 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(80, 100, 120, 0.09);
}

/* 2) Card design */
.card {
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
  border-radius: 10px;
  margin-bottom: 16px;
  background: #fff;
}
.card-header {
  background: #24712A;
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  border-radius: 10px 10px 0 0;
  padding: 18px;
  letter-spacing: 0.04em;
}
.card-body {
  padding: 18px 18px 14px 18px;
}

/* 3) Tabel Planner */
.table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.table th, .table td {
  vertical-align: middle;
  border: 1px solid #e1e3e5;
  padding: 7px 9px;
  text-align: left;
}
.table th {
  background: #f1f3f5;
  font-size: 1.08rem;
  font-weight: 600;
  color: #2f573a;
}
.table td {
  font-size: 1rem;
}
.planner-row:nth-child(odd) td {
  background: #f7faf7;
}
.planner-row:nth-child(even) td {
  background: #fff;
}

/* 4) Inputs + PDF Mode (span) */
input.form-control {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  font-size: 1rem;
  padding: .35rem .65rem;
  background: #f9f9fb;
}
input.form-control:focus {
  outline: 1px solid #89d290;
  border-color: #62b270;
}
.pdf-span {
  display: inline-block;
  width: 100%;
  min-height: 2.1em;
  padding: .35rem .65rem;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  background: #fff;
  box-sizing: border-box;
  word-break: break-word;
  white-space: pre-line;
}

/* 5) Language Bar + Responsive */
#lang-bar {
  margin-bottom: 18px;
}
.form-select.w-auto {
  min-width: 125px;
  font-size: 1rem;
  padding: 4px 12px 4px 8px;
}

/* 6) Button & Bar */
.btn-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.btn-success {
  background: #24712A;
  border-color: #1f5e22;
  font-weight: 600;
  padding: .56rem 2rem;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  border-radius: 8px;
}
.btn-success:hover,
.btn-success:focus {
  background: #16551b;
  border-color: #14521a;
}
#payment-status {
  color: #16551b;
  font-size: 1.1rem;
}

/* 7) Shopping List */
#shopping-list {
  margin: 0;
  padding-left: 0;
}
#shopping-list .list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
  background: transparent;
  padding: 5px 0 5px 0.7em;
  font-size: 1rem;
}
#shopping-list .list-group-item strong {
  color: #24712A;
}

/* 8) Small & mobile screens */
@media (max-width: 576px) {
  .container {
    padding: 10px 1px;
    border-radius: 0;
  }
  .card-body, .card-header {
    padding: 13px 5px;
  }
  .table th, .table td, .pdf-span {
    font-size: 0.93rem;
    padding: 5px 4px;
  }
  .form-select.w-auto {
    min-width: 90px;
    font-size: .95rem;
  }
}

/* 9) No-print utility */
.no-print {}
@media print {
  .no-print {
    display: none !important;
  }
}

/* ====== PRINT/PDF MODE (for html2pdf) ====== */

@media print {
  @page {
    margin-top: 2.5cm;
    margin-bottom: 1.5cm;
    margin-left: 1.2cm;
    margin-right: 1.2cm;
  }
  html, body {
    background: #fff !important;
    color: #222 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .container, .card, .card-body, .card-header {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .card-header {
    color: #24712A !important;
    background: #fff !important;
    font-size: 1.35rem !important;
    border-radius: 0 !important;
    padding: 4px 0 !important;
    border-bottom: 2px solid #24712A !important;
    text-align: center !important;
    letter-spacing: 0.03em !important;
  }
  .table {
    border: 1.2px solid #bbb !important;
    border-radius: 0 !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }
  .table th, .table td, .pdf-span {
    border: 1px solid #bbb !important;
    padding: 7px 6px !important;
    background: #fff !important;
    color: #222 !important;
    word-break: break-word !important;
    white-space: pre-line !important;
    vertical-align: top !important;
    font-size: 13px !important;
  }
  .planner-row:nth-child(odd) td {
    background: #f6f6f6 !important;
  }
  .planner-row:nth-child(even) td {
    background: #fff !important;
  }
  h2, h5 {
    color: #24712A !important;
    margin: 0 0 8px 0 !important;
    font-weight: bold !important;
    page-break-after: avoid !important;
  }
  #shopping-list .list-group-item {
    font-size: 12px !important;
    padding: 4px 0 4px 0.7em !important;
    border: none !important;
    background: #fff !important;
    color: #222 !important;
  }
  #shopping-list .list-group-item strong {
    color: #24712A !important;
    font-weight: 600 !important;
  }
  .btn, select, input, #stripe-buy-btn, #payment-status {
    display: none !important;
  }
  #lang-bar, #lang-switcher {
    display: none !important;
  }
}
@media print {
  #shopping-list {
    margin-bottom: 12px !important;
  }
}
/* ====== PDF IMPACT AREA SPECIAL ====== */
#pdf-impact-area {
  padding: 36px 18px 30px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(80, 100, 120, 0.10);
  margin: 0 auto 20px auto;
  max-width: 600px;
}
#pdf-impact-message {
  color: #198754;
  font-size: 2.1rem;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}
#pdf-list h3 {
  color: #24712A;
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}
#pdf-list ul {
  list-style: disc inside;
  margin: 0 0 0 0.8em;
  padding: 0;
}
#pdf-list li {
  margin-bottom: 7px;
  font-size: 1.07rem;
}
#pdf-list li strong {
  color: #24712A;
}
html[dir="rtl"] #pdf-list ul {
  direction: rtl;
  text-align: right;
}
@media print {
  tr, .planner-row, tbody, ul, ol, li {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
#pdf-impact-area,
#pdf-impact-area * {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 14px !important;
}

#pdf-list ul,
#pdf-list li {
  max-width: 520px;
  box-sizing: border-box;
}
.seo-paragraph {
  background: #f8f9fa;
  border-left: 4px solid #24712A;
  border-radius: 10px;
  margin: 0 0 30px 0;
  padding: 18px 22px 14px 18px;
  box-shadow: 0 1px 6px rgba(36,113,42,0.07);
  font-size: 1.09rem;
  color: #2c3e50;
}
.seo-paragraph p {
  margin-bottom: 12px;
  line-height: 1.65;
}
.seo-paragraph p:last-child {
  margin-bottom: 0;
}
.seo-paragraph strong {
  color: #24712A;
  font-weight: 600;
  font-size: 1.14em;
}
@media (max-width: 600px) {
  .seo-paragraph {
    padding: 13px 8px 10px 10px;
    font-size: 0.98rem;
  }
}
@media print {
  .seo-paragraph {
    background: none !important;
    border-left: 3px solid #555 !important;
    color: #111 !important;
    box-shadow: none !important;
  }
}
body {
  background: linear-gradient(120deg, #fff6f7 0%, #ffe9ee 100%);
}
/* Stil de bază pentru butonul microfon */
.input-group .btn-outline-secondary {
  border: none;
  background: transparent;
  padding: 0 8px;
  color: #198754; /* verdele Bootstrap pentru microfon */
  transition: color 0.2s, background 0.2s;
  outline: none;
  box-shadow: none;
}

.input-group .btn-outline-secondary:hover, 
.input-group .btn-outline-secondary:focus {
  color: #fff;
  background: #198754;
}

/* Iconița mai mare */
.input-group .bi-mic-fill {
  font-size: 1.25rem;
  vertical-align: middle;
}
.input-group .btn-outline-secondary.mic-active {
  color: #fff;
  background: #dc3545; /* roșu Bootstrap */
}
