/* ConnectBau Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for cards */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Custom focus styles */
.focus-bau:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Mobile menu animations */
.mobile-menu-enter {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu-enter-active {
  transform: translateX(0);
}

/* Progress bars */
.progress-bar {
  background: linear-gradient(90deg, #FF6B35 0%, #00A878 100%);
  height: 4px;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Status badges */
.status-open {
  @apply bg-yellow-100 text-yellow-800;
}

.status-progress {
  @apply bg-blue-100 text-blue-800;
}

.status-completed {
  @apply bg-green-100 text-green-800;
}

/* Chat bubbles */
.chat-bubble-sent {
  @apply bg-bau-orange text-white rounded-lg px-4 py-2 max-w-xs ml-auto;
}

.chat-bubble-received {
  @apply bg-gray-200 text-gray-800 rounded-lg px-4 py-2 max-w-xs mr-auto;
}

/* File upload area */
.file-upload-area {
  border: 2px dashed #D1D5DB;
  transition: all 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: #FF6B35;
  background-color: #FEF3F2;
}

/* Calendar styles */
.calendar-day {
  @apply w-10 h-10 flex items-center justify-center rounded-lg text-sm cursor-pointer transition-all;
}

.calendar-day:hover {
  @apply bg-gray-100;
}

.calendar-day.selected {
  @apply bg-bau-orange text-white;
}

.calendar-day.has-events {
  @apply bg-bau-blue text-white;
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
  
  .print-break {
    page-break-before: always;
  }
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.toast {
  background: #111827;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-6px);
  animation: toastIn 0.2s ease-out forwards;
}

.toast-success {
  background: #16a34a;
}

.toast-warning {
  background: #f59e0b;
  color: #1f2937;
}

.toast-error {
  background: #ef4444;
}

.toast-exit {
  animation: toastOut 0.2s ease-in forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}