/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 /* 1. 保存・登録（主役） */
.btn-primary {
  background-color: #0f172a; /* ここをご希望の色に変更 */
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
}

.btn-primary:hover {
  background-color: #1e293b; /* 少し明るくするか、お好みのホバー色に */
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 2. キャンセル・戻る（脇役） */
.btn-secondary {
  background-color: white;
  color: #475569;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

/* 通知メッセージのベースデザイン */
.alert-success {
  display: flex;
  align-items: center;
  gap: 12px;
  
  /* 背景と色：ダークモードに映えるエメラルドグリーン */
  background-color: rgba(16, 185, 129, 0.1); 
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  
  /* 形状と余白 */
  padding: 12px 20px;
  border-radius: 8px;
  margin: 10px 0 20px 0;
  
  /* フォント設定 */
  font-size: 13px;
  font-weight: 700;
  
  /* 浮き上がり効果 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  
  /* アニメーションの準備 */
  animation: flashSlideIn 0.4s ease-out forwards;
}

/* アイコンの調整 */
.alert-success .material-icons {
  font-size: 20px;
  color: #10b981;
}

.alert-danger {
  display: flex;
  align-items: center;
  gap: 12px;
  
  /* 背景と色：警告用のビビッドな赤（ローズに近い色味） */
  background-color: rgba(244, 63, 94, 0.1); 
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  
  /* 形状と余白 */
  padding: 12px 20px;
  border-radius: 8px;
  margin: 10px 0 20px 0;
  
  /* フォント設定 */
  font-size: 13px;
  font-weight: 700;
  
  /* 浮き上がり効果 */
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15);
  
  /* 成功時と同じアニメーションを適用 */
  animation: flashSlideIn 0.4s ease-out forwards;
}

/* アイコンの調整（赤） */
.alert-danger .material-icons {
  font-size: 20px;
  color: #f43f5e;
}

/* ふわっと降りてくるアニメーション */
@keyframes flashSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}