/* version1 */
/* public/css/components.css - デザイン統一版 */

/* ボタン基本スタイル */
button, input[type="button"] {
    padding: 10px 18px;
    border: 1px solid rgba(240, 192, 64, 0.4);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(50, 45, 42, 0.9) 0%, rgba(35, 30, 28, 0.9) 100%);
    color: #f0c040;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(240, 192, 64, 0.1);
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  button:hover, input[type="button"]:hover {
    background: linear-gradient(180deg, rgba(240, 192, 64, 0.3) 0%, rgba(240, 192, 64, 0.2) 100%);
    border-color: #f0c040;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.3),
                inset 0 1px 0 rgba(240, 192, 64, 0.2);
  }
  
  button:active, input[type="button"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4),
                inset 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  button:disabled, input[type="button"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
  }
  
  /* 設定ボタン専用スタイル */
  .settings-btn {
    background: linear-gradient(180deg, rgba(70, 60, 55, 0.9) 0%, rgba(50, 45, 42, 0.9) 100%);
    border-color: rgba(240, 192, 64, 0.3);
    padding: 8px 14px;
    font-size: 16px;
  }
  
  .settings-btn:hover {
    background: linear-gradient(180deg, rgba(240, 192, 64, 0.25) 0%, rgba(240, 192, 64, 0.15) 100%);
    border-color: rgba(240, 192, 64, 0.6);
  }
  
  /* 入力欄 */
  input[type="text"],
  input[type="number"],
  input[type="password"],
  select {
    padding: 8px 12px;
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 4px;
    background: rgba(20, 18, 16, 0.6);
    color: #e8e6e3;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  input[type="text"]:focus,
  input[type="number"]:focus,
  input[type="password"]:focus,
  select:focus {
    outline: none;
    border-color: #f0c040;
    background: rgba(20, 18, 16, 0.8);
    box-shadow: 0 0 0 2px rgba(240, 192, 64, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  input[readonly] {
    background: rgba(35, 30, 28, 0.5);
    color: #a39d96;
    cursor: not-allowed;
  }
  
  /* 音量スライダー */
  input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: rgba(240, 192, 64, 0.2);
    border-radius: 3px;
    outline: none;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #f0c040;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
  }
  
  input[type="range"]::-webkit-slider-thumb:hover {
    background: #ffd060;
    transform: scale(1.1);
    box-shadow: 0 3px 9px rgba(240, 192, 64, 0.5);
  }
  
  input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #f0c040;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
  }
  
  input[type="range"]::-moz-range-thumb:hover {
    background: #ffd060;
    transform: scale(1.1);
  }
  
  /* セレクトボックス */
  select {
    cursor: pointer;
    padding-right: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f0c040" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 20px;
  }
  
  select:hover {
    border-color: #f0c040;
    background-color: rgba(20, 18, 16, 0.8);
  }