/* ===========================
   components.css - UI Panel 內的所有功能組件
   =========================== */

/* ========== 價格顯示區 ========== */
.price-section {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.price-label {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

.price-value {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
}

/* ========== 功能文字Title ========== */

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 10px 0 10px 0;
}

/* ========== 下拉選單樣式 ========== */

.board-shape-select {
  margin: 0px 0 20px;
  width: 100%;
  padding: 16px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.board-shape-select:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.board-shape-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* ========== 顏色選擇器 ========== */
.picked-object-section {
  margin-bottom: 32px;
}
.object-status-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.object-status-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
  /* text-align: center; */
}

.object-status-card.has-selection {
  border-color: #007bff;
  background: #e3f2fd;
}

.object-label {
  font-size: 16px;
  color: #666;
  /* margin-bottom: 8px; */
  font-weight: 500;
}

.object-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: color 0.2s ease;
}

.object-name.no-selection {
  color: #999;
  font-weight: 400;
}

/* 顏色控制區塊 */
.color-control-section {
  margin-bottom: 32px;
}

.color-control-wrapper {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.color-control-wrapper:hover {
  border-color: #007bff;
}

.color-control-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.color-label {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-picker-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.color-hex {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  font-family: "Monaco", "Menlo", monospace;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  min-width: 65px;
  text-align: center;
}

/*配件欄位功能(無啟用)*/
/* .accessory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
} */

/* ========== 功能按鈕區 ========== */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  margin-bottom: 20px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: #000000;
  color: white;
}

.btn-primary:hover {
  background: #cc0001;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(206, 0, 0, 0.3);
}

.btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* border-color: #007bff; */
}
