/* ローディングインジケータのスタイル */

/* アプリ初期ローディング */
.app-loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.app-loading-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 300px;
}

.app-loading-spinner {
  border: 4px solid rgba(0, 113, 227, 0.3);
  border-radius: 50%;
  border-top: 4px solid #0071e3;
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

/* 初期ローディングプログレスバー */
.initial-loading-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 113, 227, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 15px 0 10px;
}

.initial-loading-progress {
  height: 100%;
  background-color: #0071e3;
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.loading-status-text {
  font-size: 14px;
  color: #555;
  margin: 5px 0 0;
}

/* データローディング */
.data-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.data-loading-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.data-loading-spinner {
  border: 3px solid rgba(0, 113, 227, 0.2);
  border-radius: 50%;
  border-top: 3px solid #0071e3;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  animation: spin 0.8s linear infinite;
}

/* データエラー表示 */
.data-error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.data-error-content {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.data-error-content h3 {
  margin-top: 10px;
  margin-bottom: 15px;
  color: #222;
}

.data-error-content .error-icon {
  color: #ff3b30;
  font-size: 36px;
}

.data-error-content button {
  margin-top: 15px;
  background-color: #0071e3;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.data-error-content button:hover {
  background-color: #0077ed;
}

/* アニメーション定義 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
