/* 病理検査データ管理システム - カスタムスタイル */

/* カスタムスクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* アニメーション */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ローディングスピナー */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

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

/* テーブルホバー効果 */
.table-row-hover:hover {
  background-color: #f9fafb;
  transition: background-color 0.2s ease;
}

/* ステータスインジケーター */
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.status-submitted { background-color: #fbbf24; }
.status-in-progress { background-color: #3b82f6; }
.status-completed { background-color: #10b981; }
.status-cancelled { background-color: #ef4444; }

/* フォーカス効果 */
.focus-ring:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* カードシャドウ */
.card-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-shadow:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

/* レスポンシブテーブル */
@media (max-width: 768px) {
  .responsive-table {
    font-size: 0.875rem;
  }
  
  .responsive-table th,
  .responsive-table td {
    padding: 0.5rem;
  }
}

/* プリント用スタイル */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-friendly {
    color: #000;
    background: #fff;
  }
}

/* アクセシビリティ改善 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
  .high-contrast {
    border: 2px solid;
  }
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
  .dark-mode-bg {
    background-color: #1f2937;
    color: #f9fafb;
  }
}