/* Custom styles for Schedule Manager */

/* Font optimization for Japanese */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
}

/* Loading animation improvements */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Modal backdrop improvements */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Custom scrollbar for member selection */
#event-members::-webkit-scrollbar {
  width: 6px;
}

#event-members::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

#event-members::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

#event-members::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Event status badges */
.status-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* Member card hover effects */
.member-card {
  transition: all 0.2s ease-in-out;
}

.member-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Event card improvements */
.event-card {
  transition: all 0.2s ease-in-out;
  border-left: 4px solid transparent;
}

.event-card:hover {
  border-left-color: #3b82f6;
  background-color: #f8fafc;
}

.event-card.today {
  border-left-color: #10b981;
  background-color: #f0fdf4;
}

/* Button hover animations */
.btn-hover {
  transition: all 0.2s ease-in-out;
}

.btn-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Form input focus improvements */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .flex-space-x-2 > * {
    margin-bottom: 0.5rem;
  }
}

/* Japanese text optimization */
.ja-text {
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* Loading spinner color */
.spinner-blue {
  border-color: transparent transparent #3b82f6 transparent;
}

/* Status indicators */
.status-online {
  background-color: #10b981;
}

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

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

/* Date header styling */
.date-header {
  position: relative;
}

.date-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, #3b82f6, transparent);
}

/* Empty state styling */
.empty-state {
  opacity: 0.7;
  transform: scale(0.95);
}

/* Notification styles (for future toast notifications) */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.notification.show {
  transform: translateX(0);
}

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

.notification.error {
  background-color: #ef4444;
  color: white;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-full-width {
    width: 100% !important;
    max-width: none !important;
  }
}