/* Jarvis Powerpoint - základní styly */

.jarvis-powerpoint-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.pp-header {
  text-align: center;
  padding: 30px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pp-header h1 { font-size: 2em; margin: 0 0 10px; }
.pp-header p { margin: 0 0 20px; opacity: 0.85; }
.pp-header .button--primary {
  background: #0b1326;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.pp-header .button--primary:hover {
  background: #1a2240;
}
.pp-header .button--primary .material-symbols-outlined {
  font-size: 1.3em;
}

/* ── Paywall (anonymous landing) ─────────────────────────────────────────────── */
.pp-paywall {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.pp-paywall__hero {
  background: linear-gradient(150deg, #232a44 0%, #1a1f36 40%, #151b30 100%);
  border: 1px solid #2d3449;
  border-radius: 16px;
  padding: 48px 40px 40px;
  margin-bottom: 32px;
}

.pp-paywall__icon-wrap {
  margin-bottom: 20px;
}

.pp-paywall__icon {
  font-size: 3.4em;
  line-height: 1;
  display: inline-block;
}

.pp-paywall__title {
  margin: 0 0 16px;
  font-size: 1.7em;
  font-weight: 700;
  color: #dae2fd;
}

.pp-paywall__desc {
  margin: 0 auto;
  max-width: 540px;
  font-size: 1em;
  line-height: 1.6;
  color: #c0c8e0;
}

.pp-paywall__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto 32px;
  padding: 0;
  list-style: none;
}

.pp-paywall__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(218,226,253,0.04);
  border: 1px solid rgba(218,226,253,0.08);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: left;
}

.pp-paywall__feature-icon {
  font-size: 1.3em;
  flex-shrink: 0;
  line-height: 1;
}

.pp-paywall__feature-label {
  font-size: 0.92em;
  color: #dae2fd;
  line-height: 1.35;
}

.pp-paywall__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pp-paywall__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  background: #2e5bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.98em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}
.pp-paywall__btn-primary:hover {
  background: #1d4cd9;
  color: #fff;
  text-decoration: none;
}

.pp-paywall__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  background: transparent;
  color: #c0c8e0;
  border: 1px solid #434656;
  border-radius: 8px;
  font-size: 0.98em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.pp-paywall__btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  color: #dae2fd;
  border-color: #6b719c;
  text-decoration: none;
}

.pp-credits-banner {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  color: #666;
}
.pp-credits-banner a { font-weight: bold; color: #0b1326; }

.pp-empty {
  text-align: center;
  padding: 40px;
  color: #ccc;
}

.pp-list table { width: 100%; border-collapse: collapse; }
.pp-list th, .pp-list td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.pp-status-draft { color: #f57c00; font-weight: bold; }
.pp-status-generating { color: #1976d2; font-weight: bold; animation: pulse 1.5s infinite; }
.pp-status-ready { color: #388e3c; font-weight: bold; }
.pp-status-error { color: #d32f2f; font-weight: bold; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Edit page */
.pp-edit-header {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #222;
}
.pp-edit-header h1 { margin: 0 0 10px; font-size: 1.5em; color: #222; }
.pp-edit-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #222;
}
.pp-edit-meta strong { color: #111; }

.pp-generating-bar {
  text-align: center;
  padding: 40px 20px;
}

/* Robot animation */
.pp-generating-robot {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.pp-robot-head {
  font-size: 4em;
  display: inline-block;
  animation: pp-robot-bounce 1.4s ease-in-out infinite;
  line-height: 1;
}

.pp-robot-sparkle {
  position: absolute;
  top: -8px;
  right: -20px;
  font-size: 1.2em;
  animation: pp-sparkle-pulse 0.9s ease-in-out infinite;
  opacity: 0;
}

@keyframes pp-robot-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-12px) scale(1.04); }
  60%  { transform: translateY(0) scale(0.98); }
}

@keyframes pp-sparkle-pulse {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%  { opacity: 1; transform: scale(1.2); }
}

/* Progress bar */
.pp-progress-track {
  max-width: 360px;
  height: 6px;
  background: rgba(218,226,253,0.08);
  border-radius: 3px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.pp-progress-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #2e5bff, #6c8aff);
  border-radius: 3px;
  animation: pp-progress-slide 1.8s ease-in-out infinite;
}

@keyframes pp-progress-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(360px); }
}

.pp-generating-title {
  margin: 0 0 8px;
  font-size: 1.1em;
  color: #dae2fd;
  font-weight: 600;
}

.pp-generating-sub {
  margin: 0 0 12px;
  font-size: 0.9em;
  color: #c0c8e0;
}

.pp-generating-hint {
  margin: 0;
  font-size: 0.82em;
  color: #8e90a2;
}

/* Remove old spinner */
.pp-spinner {
  display: none;
}

.pp-ready-notice {
  text-align: center;
  padding: 20px;
  background: #e8f5e9;
  border-radius: 8px;
  margin-bottom: 20px;
}
.pp-ready-notice p { font-size: 1.2em; margin: 0 0 16px; }

/* ── Success page (thank you) ── */
.pp-success-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 15px;
}
.pp-success-box {
  background: #171f33;
  border: 1px solid #2d3449;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.pp-success-icon {
  font-size: 3em;
  margin-bottom: 16px;
  color: #4caf50;
}
.pp-success-title {
  margin: 0 0 12px;
  font-size: 1.4em;
  font-weight: 700;
  color: #dae2fd;
}
.pp-success-text {
  margin: 0 0 16px;
  font-size: 1em;
  color: #c0c8e0;
  line-height: 1.5;
}
.pp-success-balance {
  background: rgba(184,195,255,.06);
  border: 1px solid rgba(184,195,255,.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 4px;
  font-size: 1em;
  color: #dae2fd;
}
.pp-success-box .button--primary {
  background: #0b1326;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.pp-success-box .button--primary:hover {
  background: #1a2240;
}

.pp-slides-preview h2 { margin-bottom: 16px; }
.pp-slide-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pp-slide-number {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: #1976d2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.pp-slide-content { flex: 1; }
.pp-slide-content h3 { margin: 0 0 8px; font-size: 1.1em; }
.pp-slide-text { line-height: 1.5; color: #444; }

/* Editor */
.pp-slide-editor-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.pp-slide-editor-header {
  background: #f5f5f5;
  padding: 8px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: bold;
}
.pp-slide-editor-body { padding: 16px; }
.pp-field { margin-bottom: 12px; }
.pp-field label { display: block; font-size: 0.85em; font-weight: bold; margin-bottom: 4px; color: #555; }
.pp-input, .pp-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  box-sizing: border-box;
}
.pp-input:focus, .pp-textarea:focus {
  border-color: #1976d2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(25,118,210,0.15);
}
.pp-textarea { min-height: 80px; resize: vertical; font-family: inherit; }

.pp-edit-actions {
  display: flex;
  gap: 12px;
  padding: 20px 0;
}

/* Edit page – width constraint */
.jarvis-powerpoint-edit {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Edit page – button colors on dark background */
.pp-generate-btn {
  color: #fff;
  background: #2e5bff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.98em;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  text-decoration: none;
}
.pp-generate-btn:hover {
  background: #1d4cd9;
  color: #fff;
}
.pp-generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pp-generate-btn .material-symbols-outlined {
  font-size: 1.2em;
}

.pp-edit-actions .button {
  color: #c0c8e0;
  background: rgba(218,226,253,0.06);
  border: 1px solid #434656;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.98em;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.pp-edit-actions .button:hover {
  background: rgba(255,255,255,0.07);
  color: #dae2fd;
  border-color: #6b719c;
}
.pp-edit-actions .button .material-symbols-outlined {
  font-size: 1.2em;
}

/** Override Drupal's default button--primary in edit page context */
.jarvis-powerpoint-edit .button--primary {
  color: #fff;
  background: #2e5bff;
  border: none;
}

.pp-ready-notice .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: #2e5bff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.98em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.pp-ready-notice .button:hover {
  background: #1d4cd9;
  color: #fff;
}
.pp-ready-notice .button .material-symbols-outlined {
  font-size: 1.2em;
}

/* Error notice */
.pp-error-notice {
  text-align: center;
  padding: 40px 20px;
  color: #c0c8e0;
}
.pp-error-notice p {
  color: #c0c8e0;
  margin: 0 0 16px;
  font-size: 1.05em;
}
.pp-error-notice .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c0c8e0;
  background: rgba(218,226,253,0.06);
  border: 1px solid #434656;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.98em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pp-error-notice .button:hover {
  background: rgba(255,255,255,0.07);
  color: #dae2fd;
  border-color: #6b719c;
}
.pp-error-notice .button .material-symbols-outlined {
  font-size: 1.2em;
}

.pp-estimate {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 12px 0;
}

/* Subscription & credit plans */
.pp-subscription-plans, .pp-credit-packages {
  margin: 30px 0;
  color: #fff;
}
.pp-subscription-plans h2,
.pp-credit-packages h2 {
  color: #fff;
}
.pp-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.pp-plan-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.pp-plan-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.pp-plan-featured {
  border: 2px solid #1976d2;
  background: #f5f9ff;
}
.pp-plan-card h3 { margin: 0 0 12px; font-size: 1.2em; color: #000; }
.pp-plan-price { font-size: 1.5em; font-weight: bold; color: #1976d2; margin: 12px 0; }
.pp-plan-card p { color: #000; margin: 8px 0; }
.pp-credit-card { border-color: #ff9800; }

/* Subscribe & credit buttons */
.pp-subscribe-btn,
.pp-credit-btn {
  background: #0b1326;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.pp-subscribe-btn:hover,
.pp-credit-btn:hover {
  background: #1a2240;
}
.pp-subscribe-btn:disabled,
.pp-credit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── New presentation form ─────────────────────────────────────────────────── */

.pp-form-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.pp-form-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}
.pp-form-back {
  margin-bottom: 10px;
}
.pp-form-back a {
  color: #90caf9;
  text-decoration: none;
  font-size: 0.95em;
}
.pp-form-back a:hover { text-decoration: underline; }
.pp-form-header h2 {
  font-size: 2em;
  margin: 0 0 10px;
}
.pp-form-intro {
  font-size: 1.05em;
  color: #ddd;
  margin: 0 auto;
  max-width: 700px;
}

.pp-help-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #1a2235;
  border: 1px solid #2d3449;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #e0e0e0;
}
.pp-help-icon {
  font-size: 1.5em;
  flex-shrink: 0;
  line-height: 1;
}
.pp-help-box p {
  margin: 0;
  font-size: 0.95em;
  color: #e0e0e0;
}

/* Form card on dark background */
.pp-form-card {
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
}
.pp-form-card .form-item {
  margin-bottom: 22px;
}
.pp-form-card .form-item:last-child {
  margin-bottom: 0;
}
.pp-form-card label,
.pp-form-card .fieldset-legend {
  display: block;
  color: #e0e0e0;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1em;
}
.pp-form-card .description {
  color: #aaa;
  font-size: 0.9em;
  margin-top: 4px;
}

.pp-form-card input.form-text,
.pp-form-card input.form-number,
.pp-form-card select.form-select {
  width: 100%;
  max-width: 600px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  color: #222;
  box-sizing: border-box;
}
.pp-form-card input.form-text:focus,
.pp-form-card input.form-number:focus,
.pp-form-card select.form-select:focus {
  border-color: #1976d2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(25,118,210,0.2);
}

/* Radios inline */
.pp-form-card .form-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.pp-form-card .form-radios .form-item,
.pp-form-card .form-item.form-type-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}
.pp-form-card .form-radios .form-item label,
.pp-form-card .form-item.form-type-radio label {
  color: #e0e0e0;
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

/* Fieldset */
.pp-form-card fieldset.form-wrapper {
  border: 1px solid #2d3449;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 0;
}
.pp-form-card fieldset .fieldset-wrapper {
  padding-top: 4px;
}

/* Estimate box */
.pp-form-card .pp-estimate {
  background: #1e2838;
  border: 1px solid #2d3449;
  color: #e0e0e0;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 0 0 22px;
  font-size: 0.95em;
}

/* Actions */
.pp-form-card .form-actions {
  margin-top: 0;
  padding-top: 10px;
}
.pp-form-card .form-actions .button--primary {
  padding: 12px 32px;
  font-size: 1.05em;
}

/* ── Credit error box inside form card ── */
.pp-credit-error-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #4a1c1c;
  border: 1px solid #d32f2f;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;
  color: #fff;
  font-size: 1em;
  line-height: 1.5;
}
.pp-credit-error-icon {
  font-size: 1.6em;
  flex-shrink: 0;
  line-height: 1;
  color: #ffb3b3;
}
.pp-credit-error-body {
  flex: 1;
}
.pp-credit-error-body strong {
  font-size: 1.05em;
}
.pp-credit-error-body a {
  color: #ffb3b3;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.pp-credit-error-body a:hover {
  color: #fff;
}

/* ── Credit use checkbox box (blue border) ─────────────────────────────────── */
.pp-credit-use-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #1a2b3d;
  border: 1px solid #1976d2;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;
  color: #e0e0e0;
  font-size: 1em;
}
.pp-credit-use-box .form-item {
  margin: 0;
  width: 100%;
}
.pp-credit-use-box .form-type-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-credit-use-box label {
  color: #e0e0e0;
  font-weight: 600;
  font-size: 1.05em;
  cursor: pointer;
  margin: 0;
}

/* Override Drupal's form-item label sizing */
.pp-credit-use-box .form-item label.option {
  font-size: 1.05em;
}
.pp-credit-use-box input.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #42a5f5;
  flex-shrink: 0;
}

/* ── Confirmation Modal (reused from jarvis_billing) ──────────────────────── */
.jb-confirm-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,14,25,.85); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.jb-confirm-overlay.is-open { display: flex; }

.jb-confirm-modal {
  background: #171f33; border: 1px solid #434656; border-radius: 16px;
  padding: 2rem 2rem 1.75rem; max-width: 460px; width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: jb-modal-in .25s ease-out;
}

@keyframes jb-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.jb-confirm-modal__close {
  position: absolute; top: .75rem; right: .75rem;
  background: none; border: none; color: #8e90a2; font-size: 1.2rem;
  cursor: pointer; padding: .3rem .5rem; border-radius: 6px; line-height: 1;
  transition: color .15s, background .15s;
}
.jb-confirm-modal__close:hover { color: #dae2fd; background: rgba(255,255,255,.06); }

.jb-confirm-modal__title {
  margin: 0 0 1.25rem; font-size: 1.15rem; font-weight: 700; color: #dae2fd;
}

.jb-confirm-modal__plan {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1rem; background: rgba(184,195,255,.06);
  border: 1px solid rgba(184,195,255,.15); border-radius: 10px;
  margin-bottom: 1rem;
}
.jb-confirm-modal__plan .jb-modal__plan-label { font-size: .9rem; font-weight: 600; color: #b8c3ff; }
.jb-confirm-modal__plan .jb-modal__plan-price { font-size: .9rem; font-weight: 700; color: #dae2fd; }

.jb-confirm-modal__features {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.jb-confirm-modal__features li { font-size: .85rem; color: #c0c8e0; }

.jb-confirm-modal__terms {
  display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem;
}

.jb-confirm-checkbox {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .85rem; color: #c0c8e0; cursor: pointer; user-select: none;
}
.jb-confirm-checkbox input[type="checkbox"] {
  margin-top: .15rem; flex-shrink: 0; accent-color: #2e5bff;
  width: 16px; height: 16px;
}
.jb-confirm-checkbox a { color: #b8c3ff; text-decoration: underline; }
.jb-confirm-checkbox a:hover { color: #dae2fd; }

.jb-modal__confirm-btn { width: 100%; color: #b8c3ff; }

/* ── Slide cards (edit/preview) ─────────────────────────────────────────────── */
.pp-slides-editor-new {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pp-slide-card-new {
  background: #1a2235;
  border: 1px solid #2d3449;
  border-radius: 12px;
  overflow: hidden;
}

.pp-slide-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(218,226,253,0.04);
  border-bottom: 1px solid #2d3449;
}

.pp-slide-card-num {
  font-weight: 700;
  color: #b8c3ff;
  font-size: 0.9em;
}

.pp-slide-card-actions {
  display: flex;
  gap: 8px;
}

.pp-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #434656;
  background: rgba(218,226,253,0.05);
  color: #c0c8e0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.pp-btn-icon:hover {
  background: rgba(218,226,253,0.1);
  color: #dae2fd;
  border-color: #6b719c;
}
.pp-btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pp-btn-icon .material-symbols-outlined {
  font-size: 1.1em;
}

.pp-slide-card-body {
  display: flex;
  gap: 20px;
  padding: 18px;
}

.pp-slide-card-text {
  flex: 1;
  min-width: 0;
}

.pp-slide-heading-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 1.15em;
  font-weight: 700;
  color: #dae2fd;
  margin: 0 0 10px;
  font-family: inherit;
  box-sizing: border-box;
}
.pp-slide-heading-input:hover,
.pp-slide-heading-input:focus {
  border-color: #434656;
  background: rgba(218,226,253,0.04);
  outline: none;
}

.pp-slide-content-textarea {
  width: 100%;
  min-height: 100px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.93em;
  color: #c0c8e0;
  line-height: 1.6;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.pp-slide-content-textarea:hover,
.pp-slide-content-textarea:focus {
  border-color: #434656;
  background: rgba(218,226,253,0.04);
  outline: none;
}

.pp-slide-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.pp-slide-card-image {
  flex: 0 0 240px;
  min-height: 140px;
  border-radius: 8px;
  background: rgba(218,226,253,0.04);
  border: 1px solid #2d3449;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-slide-image-placeholder {
  color: #8e90a2;
  font-size: 0.85em;
  text-align: center;
  padding: 12px;
  word-break: break-word;
}

.pp-no-image {
  color: #555;
}

/* Download button in header */
.pp-header-download {
  margin-top: 12px;
}

.pp-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #2e5bff;
  color: #fff;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.pp-download-btn:hover {
  background: #1d4cd9;
  color: #fff;
  text-decoration: none;
}

.pp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a2235;
  border: 1px solid #2d3449;
  color: #dae2fd;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.pp-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pp-toast--error {
  border-color: #d32f2f;
  color: #ffb3b3;
}
.pp-toast--success {
  border-color: #388e3c;
  color: #a5d6a7;
}

.pp-btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}
.pp-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pp-spin 0.8s linear infinite;
}
@keyframes pp-spin {
  to { transform: rotate(360deg); }
}

.pp-slide-card-image.pp-generating {
  position: relative;
}
.pp-slide-card-image.pp-generating::after {
  content: 'Generuji obrázek…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 34, 53, 0.9);
  color: #b8c3ff;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 8px;
}

.pp-save-btn {
  background: #2e5bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.98em;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.pp-save-btn:hover {
  background: #1d4cd9;
}
.pp-save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pp-rebuild-btn {
  background: rgba(218,226,253,0.06);
  color: #c0c8e0;
  border: 1px solid #434656;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.98em;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}
.pp-rebuild-btn:hover {
  background: rgba(255,255,255,0.07);
  color: #dae2fd;
}
