/* Tool Container Styles */
.tool-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Lorem Tool Styles — golden luxury */
.lorem-tool {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(248, 238, 222, 0.97));
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 14px 36px -24px rgba(94, 65, 30, 0.35);
  border: 1px solid rgba(145, 103, 48, 0.2);
}

.options-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
  align-items: start;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.option-group label {
  display: block;
  color: #5e4329;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-group label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-transform: none;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(145, 103, 48, 0.12);
  grid-column: 1 / -1;
}

.option-group:has(input[type="checkbox"]) {
  grid-column: 1 / -1;
  margin-top: 5px;
}

#loremType,
#loremCount {
  width: 100%;
  background: #fffaf2;
  border: 1px solid rgba(145, 103, 48, 0.26);
  border-radius: 8px;
  padding: 14px 16px;
  color: #4a351f;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-height: 52px;
}

#loremType {
  cursor: pointer;
}

#loremCount {
  font-family: 'Courier New', monospace;
}

#loremType:focus,
#loremCount:focus {
  outline: none;
  border-color: #ab7c34;
  box-shadow: 0 0 0 3px rgba(171, 124, 52, 0.16);
}

#loremType:hover,
#loremCount:hover {
  border-color: rgba(145, 103, 48, 0.4);
}

#loremType option {
  background: #fffaf2;
  color: #4a351f;
  padding: 10px;
}

#startWithLorem {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #b98b3b;
  flex-shrink: 0;
}

.action-buttons.btn-contain-x {
  margin-bottom: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.action-buttons.btn-contain-x .btn {
  width: auto;
  flex: 0 0 auto;
}

.result-section {
  margin-bottom: 25px;
  background: #fffaf2;
  border-radius: 12px;
  border: 1px solid rgba(145, 103, 48, 0.15);
  overflow: hidden;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(182, 138, 58, 0.08);
  border-bottom: 1px solid rgba(145, 103, 48, 0.12);
}

.result-header h3 {
  color: #5e4329;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-header h3 i {
  font-size: 1rem;
}

.copy-btn-small {
  background: transparent;
  border: 1px solid rgba(145, 103, 48, 0.28);
  color: #7a572c;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.copy-btn-small:hover {
  background: rgba(182, 138, 58, 0.12);
  border-color: #ab7c34;
  transform: scale(1.05);
}

.result-content {
  padding: 20px;
}

.result-output {
  width: 100%;
  background: #fff8ef;
  border: 1px solid rgba(145, 103, 48, 0.15);
  border-radius: 8px;
  padding: 16px;
  color: #4a351f;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.6;
}

.result-output:focus {
  outline: none;
  border-color: #ab7c34;
  box-shadow: 0 0 0 3px rgba(171, 124, 52, 0.16);
}

@media (max-width: 768px) {
  .tool-container {
    padding: 0 15px;
  }

  .lorem-tool {
    padding: 25px 20px;
  }

  .options-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .option-group label:has(input[type="checkbox"]) {
    margin-top: 10px;
    padding-top: 15px;
  }

  .action-buttons.btn-contain-x {
    flex-direction: row;
  }

  .action-buttons.btn-contain-x .btn {
    width: auto;
    flex: 0 0 auto;
  }

  .result-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .copy-btn-small.copied {
    animation: copyPulse 0.6s ease;
    box-shadow: 0 0 12px rgba(182, 138, 58, 0.35);
  }

  .copy-btn-small.copied svg {
    display: inline-block;
    vertical-align: middle;
  }

  @keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
  }

  .copy-btn-small {
    width: auto;
    flex-shrink: 0;
  }
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(180deg, #bc8e3d 0%, #9f742f 100%);
  color: #fff8ef;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.toast.success {
  background: linear-gradient(180deg, #bc8e3d 0%, #9f742f 100%);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .toast {
    top: auto;
    bottom: 100px;
    left: 20px;
    right: 20px;
  }
}
