/* Loan Tracker Pro Styles */

/* スクロールバーのカスタマイズ */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-in-95 {
  animation: zoomIn 0.2s ease-out;
}

/* カスタムグラデーション */
.bg-gradient-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ホバーエフェクト */
.hover-scale {
  transition: transform 0.2s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* プログレスバーアニメーション */
.progress-bar {
  transition: width 0.7s ease-in-out;
}

/* カスタムシャドウ */
.shadow-custom {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
  .text-responsive {
    font-size: 0.875rem;
  }
  
  .grid-responsive {
    grid-template-columns: 1fr;
  }
}

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

/* カスタムボタンスタイル */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* カスタムカード */
.card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
}

/* カスタムバッジ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* カスタムインプット */
.input-custom {
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-custom:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* カスタムモーダル */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
}

/* カスタムプログレスバー */
.progress-custom {
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.7s ease-in-out;
}

/* カスタムグラフ */
.graph-bar {
  transition: all 0.5s ease;
  border-radius: 4px 4px 0 0;
}

.graph-bar:hover {
  opacity: 0.8;
}

/* カスタムツールチップ */
.tooltip {
  position: absolute;
  z-index: 50;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background-color: #1e293b;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

/* カスタムアニメーションクラス */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

/* カスタムスピナー */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

.status-success {
  background-color: #10b981;
}

.status-warning {
  background-color: #f59e0b;
}

.status-error {
  background-color: #ef4444;
}

/* カスタムリスト */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.list-item:hover {
  background-color: #f8fafc;
}

/* カスタムセクション */
.section {
  background: white;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* カスタムグリッド */
.grid-custom {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* カスタムフレックス */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* カスタムテキスト */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: #64748b;
  font-size: 0.875rem;
}

.text-highlight {
  color: #667eea;
  font-weight: 700;
}

/* カスタムボーダー */
.border-soft {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.border-strong {
  border: 2px solid #cbd5e1;
  border-radius: 12px;
}

/* カスタムシャドウ */
.shadow-light {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.shadow-medium {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shadow-heavy {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* レスポンシブユーティリティ */
@media (max-width: 768px) {
  .mobile-full {
    width: 100%;
  }
  
  .mobile-stack {
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-text-center {
    text-align: center;
  }
  
  .mobile-hide {
    display: none;
  }
}

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