/* ===================================================
   WorkHub — カスタムCSS
   Tailwind CDNで生成できないカスタムクラスのみ定義
   =================================================== */

/* ----- 入力フィールド ----- */
.wh-input {
  display: block;
  width: 100%;
  padding: 9px 14px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.wh-input::placeholder { color: #C9D0D8; }
.wh-input:focus {
  border-color: #3B5BDB;
  box-shadow: 0 0 0 3px rgba(59, 91, 219, .12);
}

/* ----- ビュー切り替え ----- */
.wh-view { display: block; }
.wh-view.hidden { display: none; }

/* ----- スピナー ----- */
.wh-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wh-spin .65s linear infinite;
}
@keyframes wh-spin { to { transform: rotate(360deg); } }

/* ----- ナビゲーションリンク ----- */
.wh-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  transition: background .13s, color .13s;
  cursor: pointer;
  user-select: none;
}
.wh-nav-link:hover { background: #F3F4F6; color: #111827; }
.wh-nav-link.active {
  background: #EEF2FF;
  color: #3B5BDB;
  font-weight: 600;
}
.wh-nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ----- カード ----- */
.wh-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15,17,23,.05), 0 4px 12px rgba(15,17,23,.03);
  padding: 20px 22px;
}

/* ----- フェードインアニメーション ----- */
@keyframes wh-fadein {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wh-fadein { animation: wh-fadein .26s ease forwards; }

/* ----- クイックアクションカード hover ----- */
.wh-action-card {
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.wh-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,17,23,.1);
}
