﻿/*WEBページ全体の初期設定を無しにする*/
*{
  box-sizing: border-box;
}

/*WEBページの基本設定*/
body{
  margin:0;
  min-height:100vh;
  font-family:sans-serif;
}

/*ジェネレーターとしての基本設定*/
.tip-generator{
  min-height: 100vh;
  padding:20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 229, 255, 0.10), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(110, 110, 255, 0.12), transparent 30%),
    #111827;
  color: #f9fafb;
  overflow-x: auto;
}

/*ページヘッダー部分の基本構成*/
.top-menu{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-bottom:16px;
  min-width: 1080px;
}

/*ページヘッダーに置くボタンのデザイン*/
.top-menu button{
  padding: 8px 12px; /* 要素内の余白(ここでは上下8px、横12px) */
  border: 1px solid #263449; /* 要素の外枠 */
  border-radius: 16px; /* 角丸 */
  background-color: #010e1b; /* 背景色 */
  color:  #9ca3af; /* ボタンの中の文字色 */
  font-size: 12px; /* 文字サイズ */
  cursor: pointer; /* ボタンにカーソルを合わせたときの形 */
}

/*ページ本体の2カラム配置*/
.tip-generator .generator-main{
  display: flex;
  align-items: stretch;
  gap:16px;
  width: 100%;
  min-width: 1080px;
}

/*左カラムのデザイン*/
.generator-main .left-column{
  width: 300px;
  flex-shrink: 0;
  background-color: transparent;
  padding:16px;
  border: 1px solid rgba(0, 229, 255, 0.68);
  border-radius:14px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  position: relative;
  overflow: hidden;
}

/*左カラム：通常画面*/
.left-column .left-normal-panel{
  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

/*左カラム：通常画面の見出し*/
.left-column .left-section-title{
  font-size: 14px;
  font-weight: 700;
  color: #f9fafb;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.28);
}

/*左カラム：基本設定見出し*/
.left-column .left-basic-title{
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 229, 255, 0.28);
}

/*左カラムに置く要素のデザイン*/
.left-column .custom-character,
.left-column .custom-message,
.left-column .custom-amount,
.left-column .custom-mainBtn,
.left-column .custom-subBtn{
  display: grid;
  grid-template-columns: 1fr 58px;
  grid-template-areas:
    "title button"
    "desc button";
  column-gap: 8px;
  align-items: center;

  background-color: #081522;
  padding:8px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 14px;
  font-size: 12px;

  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

/*左カラムに置いた要素の中のデザイン*/
.left-column .card-title {
  grid-area: title;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.left-column .card-desc {
  grid-area: desc;
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;
  margin-bottom: 0;
}
.left-column .card-setting {
  grid-area: button;
  width: 58px;
  padding: 8px 0;
  border: 1px solid;
  border-color: #263B52;
  border-radius: 10px;
  background-color: transparent;
  color: #f9fafb;
  font-size: 12px;
  cursor: pointer;
}

/*左カラム：詳細設定画面*/
.left-column .left-detail-panel{
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;

  background-color: #081522;
  padding: 8px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 14px;
  font-size: 12px;

  opacity: 0;
  transform: translateX(110%);
  pointer-events: none;

  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

/*左カラム：詳細画面表示中は、通常画面を左へ逃がす*/
.left-column.is-detail-mode .left-normal-panel{
  opacity: 0;
  transform: translateX(-110%);
  pointer-events: none;
}

/*左カラム：詳細画面表示中は、詳細設定画面を右から出す*/
.left-column.is-detail-mode .left-detail-panel{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/*左カラム：詳細設定の戻るボタン*/
.left-column .left-detail-back{
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #263B52;
  border-radius: 10px;
  background-color: transparent;
  color: #f9fafb;
  font-size: 12px;
  cursor: pointer;
}

/*左カラム：詳細設定タイトル*/
.left-column .left-detail-title{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

/*左カラム：詳細設定本文*/
.left-column .left-detail-body{
  color: #9ca3af;
  line-height: 1.5;
}

/*左カラム：詳細設定画面の切り替え*/
.left-column .detail-view{
  display: none;
}

/*左カラム：表示中の詳細設定画面*/
.left-column .detail-view.is-active{
  display: block;
}

/*左カラム：詳細設定フォームのラベル*/
.left-column .detail-label{
  display: block;
  margin-bottom: 6px;
  color: #9ca3af;
  font-size: 12px;
}

/*左カラム：詳細設定フォームの入力欄*/
.left-column .detail-input,
.left-column .detail-select,
.left-column .detail-textarea{
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #263449;
  border-radius: 10px;
  background-color: #010e1b;
  color: #f9fafb;
  font-size: 12px;
}

/*左カラム：詳細設定フォームの複数行入力*/
.left-column .detail-textarea{
  min-height: 90px;
  line-height: 1.5;
  resize: vertical;
}

/*左カラム：基本設定カード*/
.left-column .widget-name,
.left-column .min-amount,
.left-column .recipient-name,
.left-column .recipient-address,
.left-column .sign-endpoint{
  background-color: #081522;
  padding: 8px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 14px;
  font-size: 12px;
}

/*左カラム：基本設定ラベル*/
.left-column label{
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #9ca3af;
}

/*左カラム：基本設定入力欄*/
.left-column input{
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #263449;
  border-radius: 10px;
  background-color: #010e1b;
  color: #f9fafb;
  font-size: 12px;
}

/*右側エリアのデザイン*/
.generator-main .main-column{
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

/*ページ中央エリアのデザイン*/
.generator-main .center-area{
  flex: 0 0 auto;
  min-width: 0;
  background-color: transparent;
  padding:16px;
  border: 1px solid rgba(0, 229, 255, 0.68);
  border-radius:14px;

  display: flex;
  flex-direction: column;
}

.center-area .section-title{
  margin: 0px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #f9fafb;
}

.center-area .tip-start-btn{
  margin-bottom: 18px;
}

/*中央の投げ銭ボタン編集とライブプレビュー*/
.center-area .tip-start-btn,
.center-area .live-preview{
  padding: 8px 10px;
}

/*中央上の投げ銭ボタン編集*/
.tip-start-btn{
  width: 100%;
  display: flex;
  gap: 12px; /*メニュー同士の間隔*/
  align-items: flex-end; /*入力欄とプレビューボタンの下端を揃える*/
}

.tip-start-btn .button-text,
.tip-start-btn .button-background,
.tip-start-btn .button-color,
.tip-start-btn .button-radius{
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  font-size: 12px;
  color: #d1d5db;
}

.tip-start-btn .button-preview{
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  font-size: 12px;
  color: #d1d5db;
}

.tip-start-btn label{
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.tip-start-btn input{
  width: 100%;
  padding:8px 10px;
  border: 1px solid #263449;
  border-radius:10px;
  background-color: #010e1b;
  color: #f9fafb;
  font-size: 12px;
}

.tip-start-btn .button-preview button{
  width: 100%;
  min-width: 120px;
  padding: 9px 14px;
  border-radius: 12px;
  background-color: #6E6EFF;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/*中央下のプレビューエリア*/
.live-preview .preview-area {
  display: flex;
  gap: 12px;
}

.live-preview .tip-start,
.live-preview .tip-confirm,
.live-preview .tip-result{
  flex: 1;
  min-height:220px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 14px;
  background-color: #081522;
  color: #f9fafb;
  font-size: 13px;
  font-weight: 700;
  
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/*ライブプレビュー：中身を縦に並べる*/
.live-preview .tip-start,
.live-preview .tip-confirm,
.live-preview .tip-result{
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

/*ライブプレビュー：カード内タイトル*/
.live-preview .preview-card-title{
  font-size: 13px;
  font-weight: 700;
  color: #f9fafb;
}

/*ライブプレビュー：メッセージ表示*/
.live-preview .preview-message{
  padding: 8px 10px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 10px;
  background-color: #010e1b;
  color: #d1d5db;
  font-size: 12px;
  line-height: 1.5;
}

/*ライブプレビュー：金額ボタンの並び*/
.live-preview .preview-amount-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/*ライブプレビュー：金額ボタン*/
.live-preview .preview-amount-button{
  padding: 6px 8px;
  border: 1px solid #263449;
  border-radius: 10px;
  background-color: #010e1b;
  color: #f9fafb;
  font-size: 12px;
}

/*ライブプレビュー：メインボタン・サブボタン*/
.live-preview .preview-main-button,
.live-preview .preview-sub-button{
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}

/*ライブプレビュー：メインボタン*/
.live-preview .preview-main-button{
  border: 1px solid #6E6EFF;
  background-color: #6E6EFF;
  color: #ffffff;
  font-weight: 700;
}

/*ライブプレビュー：サブボタン*/
.live-preview .preview-sub-button{
  border: 1px solid #263449;
  background-color: transparent;
  color: #d1d5db;
}

/*ライブプレビュー：未作成部分の仮表示*/
.live-preview .preview-placeholder{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(0, 229, 255, 0.25);
  border-radius: 10px;
  color: #9ca3af;
  font-size: 12px;
}

/*ライブプレビュー：キャラ素材表示*/
.tip-generator .preview-chara{
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 10px;
  background-color: rgba(1, 14, 27, 0.72);
}

/*ライブプレビュー：キャラ素材の種類・ファイル名*/
.tip-generator .preview-chara-type,
.tip-generator .preview-chara-src{
  font-size: 12px;
  line-height: 1.5;
  color: #d1d5db;
  word-break: break-all;
}

/*送金前・送金完了プレビューの表示行*/
.tip-generator .preview-confirm-line,
.tip-generator .preview-result-line{
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #d1d5db;
}

/*送金完了プレビューの見出し*/
.tip-generator .preview-result-title{
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #f9fafb;
}

/*長い受取人名・アドレス・TxHashが枠を突き破らないようにする*/
.tip-generator .preview-confirm-recipient,
.tip-generator .preview-confirm-address,
.tip-generator .preview-result-txhash{
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  color: #9ca3af;
}

/*スマホプレビュー時：ライブプレビューをスマホ幅に寄せる*/
.tip-generator.is-mobile-preview .live-preview .preview-area{
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  flex-direction: column;
}

/*スマホプレビュー時：各画面の高さを少し抑える*/
.tip-generator.is-mobile-preview .live-preview .tip-start,
.tip-generator.is-mobile-preview .live-preview .tip-confirm,
.tip-generator.is-mobile-preview .live-preview .tip-result{
  min-height: 180px;
}

/*出力エリア：設定情報や埋め込みコードを表示する場所*/
.output-area{
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(0, 229, 255, 0.68);
  border-radius: 14px;
  background-color: transparent;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.28),
    0 0 18px rgba(0,229,255,0.06);
  position: relative;
  overflow: hidden;
}

/*出力エリア上部の細いアクセントライン*/
.output-area::before{
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 229, 255, 0.62),
    rgba(110, 110, 255, 0.38),
    transparent
  );
  pointer-events: none;
}

/*保存・コピー結果を出す場所*/
.output-status{
  margin: 0;
}

/*通知文の基本設定*/
.output-status .status-message{
  margin: 0 0 5px;
}

/*通知文が空の時は表示しない*/
.output-status .status-message:empty{
  display: none;
}

/*通知文：成功・エラーの見た目*/
.status-message.is-success{
  color: #4ade80;
}

.status-message.is-error{
  color: #fb7185;
}

/*設定情報出力欄と埋め込みコード出力欄の横並び*/
.output-panels{
  display: flex;
  gap: 16px;
}

/*出力用カード*/
.json-output,
.embed-output{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/*出力欄のタイトル*/
.output-title{
  font-size: 13px;
  font-weight: 700;
  color: #f9fafb;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.28);
}

/*設定情報と埋め込みコードを表示するテキスト欄*/
.outputText{
  width: 100%;
  min-height: 170px;
  padding: 10px;
  border: 1px solid #263449;
  border-radius: 10px;
  background-color: #010e1b;
  color: #d1d5db;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

/*出力欄の見出し行：タイトルとコピーボタンを横並びにする*/
.output-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/*出力欄のコピー用ボタン*/
.copy-json-btn,
.copy-embed-btn{
  padding: 6px 10px;
  border: 1px solid #263449;
  border-radius: 10px;
  background-color: #010e1b;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
}

/*押せるボタンにマウスを乗せた時の共通反応*/
.top-menu button:hover,
.left-column .card-setting:hover,
.tip-start-btn .button-preview button:hover,
.copy-json-btn:hover,
.copy-embed-btn:hover{
  border-color:#6E6EFF;
  background-color:#101b33;
  color:#ffffff;
}

/*コピー用ボタン：コピー成功時の見た目*/
.copy-json-btn.is-copied,
.copy-embed-btn.is-copied{
  border-color: #4ade80;
  color: #4ade80;
}

/*入力欄・出力欄をクリックした時の共通反応*/
.tip-generator input:focus,
.tip-generator textarea:focus{
  outline: none;
  border-color: #6E6EFF;
  box-shadow: 0 0 0 2px rgba(110,110,255,0.18);
}

/*ボタン・入力欄・出力欄の見た目変化をなめらかにする*/
.top-menu button,
.left-column .card-setting,
.tip-start-btn .button-preview button,
.copy-json-btn,
.copy-embed-btn,
.tip-generator input,
.tip-generator textarea{
  transition: border-color 0.1s ease-out, background-color 0.1s ease-out, color 0.1s ease-out, box-shadow 0.1s ease-out;
}

/*主要パネルに軽い奥行きを出す*/
.generator-main .left-column,
.generator-main .center-area,
.center-area .tip-start-btn,
.center-area .live-preview{
  box-shadow:
    0 10px 24px rgba(0,0,0,0.28),
    0 0 18px rgba(0,229,255,0.06);
}

/*見出し文字の質感をそろえる*/
.left-column .card-title,
.center-area .section-title{
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.28);
}

/*選択中の見た目テーマボタン*/
.top-menu .soft-btn.is-selected,
.top-menu .edge-btn.is-selected{
  border-color: #6E6EFF;
  background-color: rgba(110, 110, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(110, 110, 255, 0.22);
}

/*細部調整：大きいパネルに細いアクセントラインを入れる*/
.generator-main .left-column,
.generator-main .center-area,
.center-area .tip-start-btn,
.center-area .live-preview{
  position: relative;
  overflow: hidden;
}

/*細部調整：パネル上部のサイバー風ライン*/
.generator-main .left-column::before,
.generator-main .center-area::before,
.center-area .tip-start-btn::before,
.center-area .live-preview::before{
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 229, 255, 0.62),
    rgba(110, 110, 255, 0.38),
    transparent
  );
  pointer-events: none;
}