/**
 * LCE - Langpros Conversational Estimator CSS
 * Design: Gold/Beige theme with modern animations
 * Updated with full Dark Mode support
 */

/* ========================================
   LIGHT MODE (Default)
   ======================================== */

:root {
  --lce-bg: #f5f1e8;
  --lce-card: #ffffff;
  --lce-text: #1a1a1a;
  --lce-text-light: #666666;
  --lce-accent: #d4a76a;
  --lce-accent-dark: #b8935a;
  --lce-border: #e8e4d9;
  --lce-error: #d64545;
  --lce-success: #4caf50;
  --lce-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --lce-radius: 16px;
  --lce-transition: all 0.3s ease;
}

/* Reset & Base */
.lce,
.lce * {
  box-sizing: border-box;
}

.lce {
  background: #ffffff00;
  color: var(--lce-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  padding: 40px 20px;
  min-height: 100vh;
}

.lce__wrap {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Card Container */
.lce__card {
  padding: 40px;
  display: none;
  animation: slideIn 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.lce__card.is-active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header with Progress */
.lce__header {
  margin-bottom: 30px;
}

.lce__progress-bar {
  height: 4px;
  background: var(--lce-accent);
  border-radius: 2px;
  margin-bottom: 12px;
  transition: width 0.4s ease;
}

.lce__step-indicator {
  font-size: 12px;
  color: var(--lce-text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

/* Typography */
.lce__headline {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--lce-text);
  line-height: 1.3;
}

.lce__sub {
  font-size: 14px;
  color: var(--lce-text-light);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Fact/Hint Snippets */
.lce__fact,
.lce__hint {
  background: #faf8f3;
  border-left: 4px solid var(--lce-accent);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--lce-text);
  margin: 20px 0;
  line-height: 1.5;
}

/* Choices (Radio & Checkbox) - GRID Layout */
.lce__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .lce__choices {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.lce__choice {
  background: #ffffff;
  border: 2px solid var(--lce-border);
  color: #1a1a1a;
  padding: 18px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--lce-transition);
  text-align: left;
  appearance: none;
  font-family: inherit;
  min-height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}

.lce__choice:hover {
  border-color: var(--lce-accent);
  background: #fef9f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 167, 106, 0.15);
}

.lce__choice.is-selected {
  background: #fef9f5;
  border-color: var(--lce-accent);
  color: var(--lce-accent);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(212, 167, 106, 0.2);
}

.lce__choice.is-selected::before {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 18px;
  color: var(--lce-accent);
}

.lce__choice:focus-visible {
  outline: 2px solid var(--lce-accent);
  outline-offset: 2px;
}

/* ========================================
   ELABORATE CHOICE CARDS
   ======================================== */

.lce__choices-elaborate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

@media (max-width: 768px) {
  .lce__choices-elaborate {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.lce__choice-elaborate {
  background: #f9f9f9;
  border: 2px solid var(--lce-border);
  color: var(--lce-text);
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 12px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  appearance: none;
  font-family: inherit;
  min-height: 140px;
  position: relative;
  align-items: start;
}

.lce__choice-elaborate:hover {
  background: #ffffff;
  border-color: var(--lce-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 167, 106, 0.2);
}

.lce__choice-elaborate.is-selected {
  background: linear-gradient(135deg, var(--lce-accent) 0%, #e5bd80 100%);
  border-color: var(--lce-accent);
  color: white;
  box-shadow: 0 8px 24px rgba(212, 167, 106, 0.35);
}

.lce__choice-elaborate.is-selected .lce__choice-title {
  color: white !important;
}

.lce__choice-elaborate.is-selected .lce__choice-desc {
  color: #ffffff;
}

.lce__choice-elaborate.is-selected::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 14px;
  font-weight: bold;
  font-size: 24px;
  color: white;
}

.lce__choice-elaborate:focus-visible {
  outline: 2px solid var(--lce-accent);
  outline-offset: 3px;
}

/* Choice Icon */
.lce__choice-icon {
  font-size: 48px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  grid-column: 2;
  grid-row: 1;
  padding-left: 12px;
}

/* Choice Content */
.lce__choice-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  grid-column: 1;
  grid-row: 1 / 3;
  justify-content: flex-start;
}

/* Choice Title */
.lce__choice-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--lce-accent) !important;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.lce__choice-elaborate.is-selected .lce__choice-title {
  color: white !important;
}

/* Choice Description */
.lce__choice-desc {
  font-size: 12px;
  color: var(--lce-text-light);
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

.lce__choice-elaborate:hover .lce__choice-desc {
  color: var(--lce-text);
}

.lce__choice-elaborate.is-selected .lce__choice-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Slider */
.lce__slider {
  margin: 24px 0;
}

.lce__slider label {
  display: block;
  font-size: 13px;
  color: var(--lce-text-light);
  margin-bottom: 12px;
  font-weight: 600;
}

.lce__slider input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--lce-border);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.lce__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--lce-accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 167, 106, 0.4);
  transition: var(--lce-transition);
}

.lce__slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(212, 167, 106, 0.6);
}

.lce__slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--lce-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 167, 106, 0.4);
  transition: var(--lce-transition);
}

.lce__slider input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(212, 167, 106, 0.6);
}

.lce__slider output {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--lce-accent);
}

/* Notifications/Alerts System */
.lce__notification {
  position: relative;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
  z-index: 1000;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lce__notification-error {
  background: #ffebee;
  border: 2px solid #ef5350;
  border-left: 6px solid #d32f2f;
}

.lce__notification-success {
  background: #e8f5e9;
  border: 2px solid #66bb6a;
  border-left: 6px solid #2e7d32;
}

.lce__notification-info {
  background: #e3f2fd;
  border: 2px solid #42a5f5;
  border-left: 6px solid #1565c0;
}

.lce__notification-content {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lce-text);
}

.lce__notification-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 15px;
}

.lce__notification-message {
  font-size: 13px;
  opacity: 0.9;
}

/* Action Buttons */
.lce__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.lce__btn {
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--lce-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.lce__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lce__btn-primary {
  background: var(--lce-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(212, 167, 106, 0.3);
}

.lce__btn-primary:hover:not(:disabled) {
  background: var(--lce-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 167, 106, 0.4);
}

.lce__btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(212, 167, 106, 0.3);
}

.lce__btn-back {
  background: transparent;
  color: var(--lce-text-light);
  border: 2px solid var(--lce-border);
}

.lce__btn-back:hover:not(:disabled) {
  background: var(--lce-border);
  color: var(--lce-text);
  border-color: var(--lce-accent);
}

.lce__btn:focus-visible {
  outline: 2px solid var(--lce-accent);
  outline-offset: 2px;
}

/* Form Elements */
.lce__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .lce__form-row {
    grid-template-columns: 1fr;
  }
}

.lce__input-group {
  display: flex;
  flex-direction: column;
}

.lce__input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lce-accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lce__input {
  padding: 12px 14px;
  border: 2px solid var(--lce-border);
  border-radius: 8px;
  font-size: 14px;
  background: #fafafa;
  color: var(--lce-text);
  font-family: inherit;
  transition: var(--lce-transition);
}

.lce__input:focus {
  outline: none;
  border-color: var(--lce-accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(212, 167, 106, 0.1);
}

.lce__input::placeholder {
  color: var(--lce-text-light);
}

/* Autocomplete Dropdown */
.lce__autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--lce-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
}

.lce__autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--lce-transition);
}

.lce__autocomplete-item:hover {
  background: #fef9f5;
  color: var(--lce-accent);
}

/* Checkbox */
.lce__form-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.4;
}

.lce__checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--lce-accent);
  flex-shrink: 0;
}

.lce__checkbox:focus-visible {
  outline: 2px solid var(--lce-accent);
  outline-offset: 2px;
}

/* Estimate Display */
.lce__welcome-icon {
  font-size: 64px;
  line-height: 1;
  opacity: 0.8;
}

.lce__card[data-step="1"].is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.lce__card[data-step="1"].is-active .lce__headline {
  font-size: 36px;
  margin-top: 20px;
}

.lce__card[data-step="1"].is-active .lce__sub {
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lce__card[data-step="1"].is-active .lce__header {
  margin-bottom: 0;
  text-align: center;
}

/* Status Slides */
.lce__card[data-step="4b"].is-active,
.lce__card[data-step="6b"].is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}

.lce__card[data-step="4b"].is-active .lce__headline,
.lce__card[data-step="6b"].is-active .lce__headline {
  font-size: 28px;
  margin-top: 16px;
  line-height: 1.4;
}

.lce__card[data-step="4b"].is-active .lce__sub,
.lce__card[data-step="6b"].is-active .lce__sub {
  font-size: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--lce-text-light);
}

.lce__card[data-step="4b"].is-active .lce__header,
.lce__card[data-step="6b"].is-active .lce__header {
  margin-bottom: 24px;
  text-align: center;
}

.lce__status-spacer {
  flex: 1;
  min-height: 40px;
}

.lce__estimate {
  background: #fef9f5;
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
  text-align: center;
}

.lce__range {
  font-size: 28px;
  font-weight: 700;
  color: var(--lce-accent);
  margin-bottom: 12px;
}

.lce__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.lce__cases {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--lce-border);
}

.lce__cases h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--lce-text);
}

.lce__cases ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lce__cases li {
  font-size: 13px;
  color: var(--lce-text-light);
  padding-left: 16px;
  position: relative;
}

.lce__cases li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--lce-accent);
  font-weight: 700;
}

/* Location Section */
.lce__location-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}

@media (max-width: 480px) {
  .lce__location-inputs {
    grid-template-columns: 1fr;
  }
}

.lce__input-group {
  position: relative;
}

.lce__card[data-step="4b"] .lce__btn-primary {
  background: #000;
}

.lce__card[data-step="4b"] .lce__progress-bar {
  height: 24px;
  background-color: #ede6d7c7;
  border-radius: 12px;
}

.lce__card[data-step="4b"] .lce__sub {
  color: #000 !important;
}

.lce__card[data-step="6b"] {
  background-color: #e1c994c7;
  background-size: cover;
  background-position: center;
}

.lce__card[data-step="6b"] .lce__btn-primary {
  background: #000;
}

.lce__card[data-step="6b"] .lce__progress-bar {
  height: 24px;
  background-color: #ede6d7c7;
  border-radius: 12px;
}

.lce__card[data-step="6b"] .lce__sub {
  color: #000 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .lce {
    padding: 20px 16px;
  }

  .lce__card {
    padding: 24px;
  }

  .lce__headline {
    font-size: 20px;
  }

  .lce__form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .lce__row {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .lce__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .lce__card,
  .lce__choice,
  .lce__btn,
  .lce__input {
    animation: none;
    transition: none;
  }
}

/* ========================================
   DARK MODE
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --lce-bg: #0f0f0f;
    --lce-card: #1a1a1a;
    --lce-text: #f5f5f5;
    --lce-text-light: #b3b3b3;
    --lce-accent: #e5bd80;
    --lce-accent-dark: #d4a76a;
    --lce-border: #3a3a3a;
    --lce-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  /* Base background */
  .lce {
    background: #000000;
    color: var(--lce-text);
  }

  /* Card */
  .lce__card {
    background: var(--lce-card);
    box-shadow: var(--lce-shadow);
  }

  /* Typography */
  .lce__headline {
    color: var(--lce-text);
  }

  .lce__sub {
    color: var(--lce-text-light);
  }

  /* Fact/Hint */
  .lce__fact,
  .lce__hint {
    background: #2a2a2a;
    border-left-color: var(--lce-accent);
    color: var(--lce-text);
  }

  /* Regular Choices */
  .lce__choice {
    background: #2a2a2a;
    border-color: var(--lce-border);
    color: var(--lce-text);
  }

  .lce__choice:hover {
    background: #333333;
    border-color: var(--lce-accent);
    box-shadow: 0 4px 12px rgba(229, 189, 128, 0.2);
  }

  .lce__choice.is-selected {
    background: #3a3a3a;
    border-color: var(--lce-accent);
    color: var(--lce-accent);
  }

  /* Elaborate Choices */
  .lce__choice-elaborate {
    background: #2a2a2a;
    border-color: var(--lce-border);
    color: var(--lce-text);
  }

  .lce__choice-elaborate:hover {
    background: #333333;
    border-color: var(--lce-accent);
  }

  .lce__choice-elaborate.is-selected {
    background: linear-gradient(135deg, var(--lce-accent) 0%, #f0d0a0 100%);
    border-color: var(--lce-accent);
    color: #000000;
  }

  .lce__choice-elaborate.is-selected .lce__choice-title {
    color: #000000 !important;
  }

  .lce__choice-elaborate.is-selected .lce__choice-desc {
    color: #000000;
  }

  .lce__choice-elaborate.is-selected::after {
    color: #000000;
  }

  .lce__choice-title {
    color: var(--lce-accent) !important;
  }

  .lce__choice-desc {
    color: var(--lce-text-light);
  }

  .lce__choice-elaborate:hover .lce__choice-desc {
    color: #cccccc;
  }

  /* Slider */
  .lce__slider input[type="range"] {
    background: var(--lce-border);
  }

  .lce__slider label {
    color: var(--lce-text-light);
  }

  /* Notifications */
  .lce__notification-error {
    background: #3d1f1f;
    border-color: #d64545;
  }

  .lce__notification-success {
    background: #1f3d1f;
    border-color: #4caf50;
  }

  .lce__notification-info {
    background: #1f2d3d;
    border-color: #42a5f5;
  }

  .lce__notification-content {
    color: var(--lce-text);
  }

  /* Buttons */
  .lce__btn-primary {
    background: var(--lce-accent);
    color: #000000;
  }

  .lce__btn-primary:hover:not(:disabled) {
    background: var(--lce-accent-dark);
  }

  .lce__btn-back {
    background: transparent;
    color: var(--lce-text-light);
    border-color: var(--lce-border);
  }

  .lce__btn-back:hover:not(:disabled) {
    background: #2a2a2a;
    color: var(--lce-text);
    border-color: var(--lce-accent);
  }

  /* Form Inputs */
  .lce__input {
    background: #2a2a2a;
    color: var(--lce-text);
    border-color: var(--lce-border);
  }

  .lce__input:focus {
    background: #1a1a1a;
    border-color: var(--lce-accent);
    box-shadow: 0 0 0 3px rgba(229, 189, 128, 0.2);
  }

  .lce__input::placeholder {
    color: #666666;
  }

  .lce__input-group label {
    color: var(--lce-accent);
  }

  /* Autocomplete */
  .lce__autocomplete {
    background: #2a2a2a;
    border-color: var(--lce-border);
  }

  .lce__autocomplete-item:hover {
    background: #3a3a3a;
    color: var(--lce-accent);
  }

  /* Estimate */
  .lce__estimate {
    background: #2a2a2a;
  }

  .lce__range {
    color: var(--lce-accent);
  }

  /* Cases */
  .lce__cases {
    border-top-color: var(--lce-border);
  }

  .lce__cases h4 {
    color: var(--lce-text);
  }

  .lce__cases li {
    color: var(--lce-text-light);
  }

  /* Step-specific backgrounds in dark mode */
  .lce__card[data-step="4b"] {
    background-color: #2a2520;
  }

  .lce__card[data-step="4b"] .lce__btn-primary {
    background: var(--lce-accent);
    color: #000000;
  }

  .lce__card[data-step="4b"] .lce__progress-bar {
    background-color: #3a3530;
  }

  .lce__card[data-step="4b"] .lce__sub {
    color: var(--lce-text) !important;
  }

  .lce__card[data-step="6b"] {
    background-color: #2a2520;
  }

  .lce__card[data-step="6b"] .lce__btn-primary {
    background: var(--lce-accent);
    color: #000000;
  }

  .lce__card[data-step="6b"] .lce__progress-bar {
    background-color: #3a3530;
  }

  .lce__card[data-step="6b"] .lce__sub {
    color: var(--lce-text) !important;
  }
}

/* Print Styles */
@media print {
  .lce {
    background: white;
  }

  .lce__card {
    box-shadow: none;
    border: 1px solid var(--lce-border);
  }

  .lce__btn {
    display: none;
  }
}
.lce {
  background-size: cover;
  background-position: center;
  margin-right: -10px;
}
/* ========================================
   RTL & ARABIC LANGUAGE SUPPORT
   ======================================== */

:lang(ar) .lce,
.lce[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: Cairo, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Font arabo moderno e leggibile */
}

/* Allineamento pulsanti di scelta standard */
:lang(ar) .lce__choice {
  text-align: right;
}

/* Riposizionamento della spunta ✓ sui blocchi selezionati */
:lang(ar) .lce__choice.is-selected::before {
  right: auto;
  left: 12px;
}

/* Inversione del bordo dei messaggi di notifica */
:lang(ar) .lce__notification-error {
  border-left: 2px solid #ef5350;
  border-right: 6px solid #d32f2f;
}

:lang(ar) .lce__notification-success {
  border-left: 2px solid #66bb6a;
  border-right: 6px solid #2e7d32;
}

:lang(ar) .lce__notification-info {
  border-left: 2px solid #42a5f5;
  border-right: 6px solid #1565c0;
}

/* Inversione del bordo dei blocchi di Informazione/Hint */
:lang(ar) .lce__fact,
:lang(ar) .lce__hint {
  border-left: none;
  border-right: 4px solid var(--lce-accent);
}

/* Regolazioni per le liste nei casi d'uso finali */
:lang(ar) .lce__cases li {
  padding-left: 0;
  padding-right: 16px;
}

:lang(ar) .lce__cases li::before {
  content: "◂"; /* Inverte la direzione della freccia */
  left: auto;
  right: 0;
}

/* ========================================
   ELABORATE CHOICE CARDS (RTL)
   ======================================== */

:lang(ar) .lce__choice-elaborate {
  text-align: right;
  grid-template-columns: auto 1fr; /* Inverte le colonne del layout a griglia */
}

/* Spostamento dell'icona a sinistra nel layout arabo */
:lang(ar) .lce__choice-icon {
  grid-column: 1;
  padding-left: 0;
  padding-right: 12px;
}

:lang(ar) .lce__choice-content {
  grid-column: 2;
}

/* Riposizionamento della spunta ✓ sulle schede complesse */
:lang(ar) .lce__choice-elaborate.is-selected::after {
  right: auto;
  left: 14px;
}

/* Specifiche per i popup di notifica via JS */
.lce__notification-rtl {
  direction: rtl !important;
  text-align: right !important;
}

/* ========================================
   DARK MODE ADJUSTMENTS FOR RTL
   ======================================== */
@media (prefers-color-scheme: dark) {
  :lang(ar) .lce__fact,
  :lang(ar) .lce__hint {
    border-left: none;
    border-right-color: var(--lce-accent);
  }
}