/* kipclip styles - matching the cute chicken mascot aesthetic */

:root {
  --cream: #f5f1e8;
  --coral: #e66456;
  --coral-50: #fef2f1;
  --coral-100: #fde0dd;
  --coral-200: #f9bab4;
  --coral-700: #d45546;
  --teal: #5b8a8f;
  --orange: #f4a261;
  --dark-gray: #2d3748;
  --light-gray: #e2e8f0;
  --sidebar-bg: #f7f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: linear-gradient(135deg, var(--cream) 0%, #e8f4f5 100%);
  color: var(--dark-gray);
  min-height: 100vh;
}

#root {
  min-height: 100vh;
}

/* Utility classes to complement Tailwind */
.btn-primary {
  background-color: var(--coral);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow:
    0 1px 2px rgba(45, 55, 72, 0.08),
    0 1px 3px rgba(230, 100, 86, 0.25);
}

.btn-primary:hover {
  background-color: #d45546;
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(45, 55, 72, 0.1),
    0 4px 8px rgba(230, 100, 86, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(45, 55, 72, 0.08);
}

.btn-secondary {
  background-color: var(--teal);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow:
    0 1px 2px rgba(45, 55, 72, 0.08),
    0 1px 3px rgba(91, 138, 143, 0.25);
}

.btn-secondary:hover {
  background-color: #4a7a7f;
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(45, 55, 72, 0.1),
    0 4px 8px rgba(91, 138, 143, 0.3);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(45, 55, 72, 0.08);
}

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner {
  border: 3px solid var(--light-gray);
  border-top-color: var(--coral);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

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

/* Smooth page transitions */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

/* Slide up animation for floating toolbar */
.animate-slide-up {
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Swipe-to-delete row collapse animation */
.swipe-row-removing {
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden;
}

/* Selected tag/pill state — teal reads as "status", leaves coral for CTAs */
.coral-selected {
  background-color: var(--teal);
  color: white;
}

.coral-selected:hover {
  background-color: #4a7a7f;
}

/* Mobile tag bar scroll fade indicator */
.tag-scroll-fade {
  mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
  -webkit-mask-image: linear-gradient(
    to right,
    black calc(100% - 2rem),
    transparent
  );
}

/* Actor typeahead autocomplete - kipclip themed */
actor-typeahead {
  --color-background: #ffffff;
  --color-border: var(--light-gray);
  --color-shadow: #000000;
  --color-hover: #fff1f1;
  --color-avatar-fallback: #fecaca;
  --radius: 8px;
  --padding-menu: 4px;
}
