/* 物販ポートフォリオ管理アプリ カスタムスタイル */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

/* スマホでのinput自動ズーム防止 (フォントサイズ16px) */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* カード & シャドウ */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
  transition: all 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.card-highlight {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid #334155;
}

/* バッジスタイル */
.badge-status-purchased {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-status-arrived {
  background-color: #cffafe;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.badge-status-inspected {
  background-color: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.badge-status-listed {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-status-sold {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-status-completed {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-status-refund_pending {
  background-color: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-status-cancelled {
  background-color: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* 星評価 */
.star-filled {
  color: #f59e0b;
}
.star-empty {
  color: #cbd5e1;
}

/* トースト通知 */
#toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  left: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  #toast-container {
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    max-width: 400px;
  }
}

.toast {
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* プログレスバー */
.progress-bar-segment {
  transition: width 0.4s ease-in-out;
}

/* モバイル用ボトムナビゲーションのアクティブスタイル */
.mobile-nav-btn.active {
  color: #4f46e5;
}
.mobile-nav-btn.active i {
  color: #4f46e5;
  transform: scale(1.1);
  transition: transform 0.2s;
}

/* ボトムシートモーダルアニメーション */
@media (max-width: 640px) {
  .modal-sheet {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 85vh;
  }
}
