/* 전체 요소에 box-sizing 적용 */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', 'Malgun Gothic', Arial, sans-serif;
  background: #232324;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.logo-fixed {
  position: fixed;
  top: 32px;
  left: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: -1px;
  z-index: 100;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.beta-tag {
  background: #ff6b35;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.main-title {
  margin-top: 80px;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 30px;
}
.prompt-box {
  background: #2d2d2f;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  width: 100%;
  max-width: 95vw;
  margin: 0 auto;
  margin-bottom: 32px;
}
.prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.15rem;
  padding: 1rem 0.5rem;
  margin: 0 0.5rem;
  min-height: 2.6em;
  max-height: 14em;
  overflow-y: auto;
  line-height: 1.5;
  resize: none;
  font-family: inherit;
}
.prompt-input::-webkit-scrollbar {
  width: 10px;
  background: #2c2c2e;
  border-radius: 8px;
}
.prompt-input::-webkit-scrollbar-thumb {
  background: #444a54;
  border-radius: 8px;
}
.prompt-input::-webkit-scrollbar-thumb:hover {
  background: #5a5f6a;
}
.prompt-input::placeholder {
  color: #bdbdbd;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* placeholder 애니메이션을 위한 컨테이너 */
.placeholder-container {
  position: relative;
  flex: 1;
  margin: 0 0.5rem;
}

.placeholder-text {
  position: absolute;
  top: 1rem;
  left: 0.5rem;
  color: #bdbdbd;
  font-size: 1.1rem;
  pointer-events: none;
  white-space: pre-wrap;
  line-height: 1.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1;
}

.placeholder-text.slide-up {
  transform: translateY(-20px);
  opacity: 0;
}

.placeholder-text.slide-down {
  transform: translateY(20px);
  opacity: 0;
}

.placeholder-text.visible {
  transform: translateY(0);
  opacity: 1;
}
.submit-btn {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0;
  transition: background 0.2s;
}
.submit-btn:hover {
  background: #f1f5f9;
}
/* 결과 카드 스타일 */
.result-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-height: 60px;
}
.result-card {
  background: #23272f;
  color: #f5f6fa;
  border-color: #333a45;
  border-width: 2px;
  border-style: solid;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 20px 28px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  word-break: break-all;
  font-size: 1.08rem;
  line-height: 2;
  margin-top: 0;
  margin-bottom: 0;
  /* border: 2px solid #ececec; */
  transition: box-shadow 0.2s;
  display: none;
}
.result-card.deploying,
.result-card.success,
.result-card.error {
  /* JS에서 block으로 토글 */
}
.result-card.success {
  border-color: #4caf50;
  border-width: 2px;
}
.result-card.error {
  border-color: #f44336;
  color: #ffbdbd;
  border-width: 2px;
}
.result-card code {
  background: #181c22;
  color: #b6e3ff;
  padding: 2px 4px;
  border-radius: 4px;
}

/* BETA 안내 공간 스타일 */
.beta-info {
  background: #2d2d2f;
  border: 1.5px dashed #6b7280;
  color: #9ca3af;
  border-radius: 10px;
  margin: 18px 0 0 0;
  padding: 16px 22px 14px 22px;
  font-size: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 100%;
}
.beta-info ul {
  margin: 0;
  padding-left: 18px;
}
.beta-info li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.beta-info li:last-child {
  margin-bottom: 0;
}
.beta-info strong {
  color: #d1d5db;
}
.beta-info-result {
  margin-top: 18px;
}
.call-btn {
  margin-top: 18px;
  padding: 0.6em 1.3em;
  background: #fff;
  color: #232324;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.18s, color 0.18s;
  display: none;
  align-self: flex-start;
}
.call-btn:hover {
  background: #f1f5f9;
  color: #111;
}
textarea {
  width: 100%;                /* 필요에 따라 조정 */
  min-height: 50px;
  max-height: 200px;          /* 원하는 최대 높이로 조정 */
  overflow-y: hidden;         /* 기본적으로 스크롤바 숨김 */
  resize: none;               /* 수동 크기조절 비활성화 */
  box-sizing: border-box;
  padding: 12px 16px;         /* 디자인에 맞게 조정 */
  font-size: 16px;
  line-height: 1.5;
}
.main-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.form-center {
  display: flex;
  justify-content: center;
}

.param-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.param-modal-content {
  background: #232324;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.param-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.param-modal-desc {
  font-size: 1rem;
  margin-bottom: 18px;
}
.param-modal-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.param-modal-input {
  width: 100%;
  font-size: 1.1rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: #2d2d2f;
  color: #fff;
}
.param-modal-actions {
  display: flex;
  gap: 12px;
}
.param-modal-confirm, .param-modal-cancel {
  padding: 0.6em 1.5em;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.param-modal-confirm {
  background: #fff;
  color: #232324;
}
.param-modal-confirm:hover {
  background: #f1f5f9;
}
.param-modal-cancel {
  background: #444a54;
  color: #fff;
}
.param-modal-cancel:hover {
  background: #232324;
}

.result-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.result-content {
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: #2d2d2f;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

.result-modal-close {
  padding: 0.6em 1.5em;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #232324;
}

.result-modal-close:hover {
  background: #f1f5f9;
}

@media (max-width: 700px) {
  .main-title { font-size: 1.5rem; margin-top: 40px; margin-bottom: 30px; }
  .prompt-box { width: 98vw; min-width: 0; padding: 0.5rem 0.5rem; }
  .logo-fixed { left: 16px; top: 16px; font-size: 1.1rem; }
} 