/* カスタマイズページのスタイル */

/* カスタマイズページ固有のスタイル */

.setting-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.setting-item {
  margin-bottom: 25px;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.setting-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.select-box {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
  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: 20px;
  padding-right: 40px;
}

.slider-container {
  margin-top: 12px;
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #4CAF50 0%, #FFC107 50%, #FF5722 100%);
  position: relative;
}

.slider-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: absolute;
  top: -7px;
  cursor: pointer;
  transition: transform 0.2s;
}

.slider-thumb:hover {
  transform: scale(1.1);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.textarea-box {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.info-message {
  background-color: #E3F2FD;
  border: 1px solid #90CAF9;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 14px;
  color: #1565C0;
}

.info-message i {
  margin-right: 8px;
}

.save-button {
  width: 100%;
  padding: 14px 24px;
  background-color: #007AFF;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 30px;
}

.save-button:hover {
  background-color: #0051D5;
}

.save-button:disabled {
  background-color: #B0B0B0;
  cursor: not-allowed;
}

.toggle-switch {
  position: relative;
  width: 51px;
  height: 31px;
  background-color: #E0E0E0;
  border-radius: 31px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-switch.active {
  background-color: #4CAF50;
}

.toggle-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-switch-thumb {
  transform: translateX(20px);
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* エラーメッセージ */
.error-message {
  background-color: #FFEBEE;
  border: 1px solid #FFCDD2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 14px;
  color: #C62828;
  display: none;
}

.error-message.show {
  display: block;
}

/* 成功メッセージ */
.success-message {
  background-color: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 14px;
  color: #2E7D32;
  display: none;
}

.success-message.show {
  display: block;
}

/* 全画面ローディングオーバーレイ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.loading-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.loading-spinner-large {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007AFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.loading-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Toggle Slider Fix */
.slider-toggle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  cursor: pointer;
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider-toggle {
  background-color: #4CAF50;
}

input:checked + .slider-toggle:before {
  transform: translateX(20px);
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.character-count {
  text-align: right;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .setting-card {
    padding: 15px;
  }
  
  .setting-label {
    font-size: 15px;
  }
  
  .select-box, .textarea-box {
    font-size: 14px;
  }
}