/* ボタンとコントロールのスタイル */

.controls {
  margin-top: 30px;
  text-align: left;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px 10px 10px 10px;
  display: inline-block;
  border: 1.5px solid #d1d1d1;
}

.randomButton-container button,
.controls button,
.controls input[type="file"] {
  background: linear-gradient(90deg, #bdbdbd 0%, #e0e0e0 100%);
  border: 2px solid #b0b0b0;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  margin: 0 5px 10px 5px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s, border-color 0.2s;
  outline: none;
  vertical-align: middle;
}

.randomButton-container button:hover,
.controls button:hover,
.controls input[type="file"]:hover {
  background: linear-gradient(90deg, #9e9e9e 0%, #cccccc 100%);
  border-color: #888;
  box-shadow: 0 4px 12px rgba(120, 120, 120, 0.18);
  transform: translateY(-2px) scale(1.03);
}

.randomButton-container button:active,
.controls button:active,
.controls input[type="file"]:active {
  background: linear-gradient(90deg, #757575 0%, #bdbdbd 100%);
  border-color: #888;
  transform: translateY(1px) scale(0.98);
}

.randomButton-container button {
  width: calc(var(--slot-width)*1.3);
  height: calc(var(--mini-font-size)*2.5);
  font-size: var(--mini-font-size);
  line-height: 1;
  padding: 0px 0px;
  margin: calc(var(--gap)) 0px 0px 0px;
}

/* アクションボタンコンテナ（縦並び） */
.action-button-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: calc(var(--gap));
  margin-left: calc(var(--gap));
  padding: 0;
}

/* アクションボタンの基本スタイル */
.action-btn {
  width: 160px;
  max-width: 100%;
  min-height: 50px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  padding: 10px 15px;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* ドローボタン（紫系） */
.draw-btn {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  border-color: #6c3483;
  color: white;
}

.draw-btn:hover {
  background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
  border-color: #512e5f;
}

/* リセットボタン（オレンジ系） */
.reset-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  border-color: #e65100;
  color: white;
}

.reset-btn:hover {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
  border-color: #bf360c;
}
