@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Self-hosted SF Pro font faces */
@font-face {
  font-family: "SF Pro";
  font-style: normal;
  font-weight: 400;
  src:
    local("SF Pro Text Regular"),
    local("SFProText-Regular"),
    url("/assets/San-Francisco-Pro-Fonts/SF-Pro-Text-Regular-cb0cdca4.otf") format("opentype");
}

@font-face {
  font-family: "SF Pro";
  font-style: normal;
  font-weight: 500;
  src:
    local("SF Pro Text Medium"),
    local("SFProText-Medium"),
    url("/assets/San-Francisco-Pro-Fonts/SF-Pro-Text-Medium-82039b66.otf") format("opentype");
}

@font-face {
  font-family: "SF Pro";
  font-style: normal;
  font-weight: 600;
  src:
    local("SF Pro Text Semibold"),
    local("SFProText-Semibold"),
    url("/assets/San-Francisco-Pro-Fonts/SF-Pro-Text-Semibold-afaf8099.otf") format("opentype");
}

@font-face {
  font-family: "SF Pro";
  font-style: normal;
  font-weight: 700;
  src:
    local("SF Pro Text Bold"),
    local("SFProText-Bold"),
    url("/assets/San-Francisco-Pro-Fonts/SF-Pro-Text-Bold-d8129860.otf") format("opentype");
}

button:not(:disabled):not([aria-disabled="true"]) {
  cursor: pointer;
}

button:disabled,
button[disabled],
button[aria-disabled="true"] {
  cursor: not-allowed;
}



.disabled {
  opacity: 0.24;
  cursor: not-allowed;
}

.w-sm {
  width: 24rem;
}

/* Standardized Button Classes */
.btn-black {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: normal;
  color: white;
  background-color: black;
  border-radius: 1.2rem;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-black:hover:not(:disabled):not([disabled]) {
  background-color: #ea580c;
}

.btn-blue {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: normal;
  color: white;
  background-color: #3C99DC;
  border-radius: 1.2rem;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-blue:hover:not(:disabled):not([disabled]) {
  background-color: #ea580c;
}

.btn-orange {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: normal;
  color: white;
  background-color: #ea580c;
  border-radius: 1.2rem;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-orange:hover:not(:disabled):not([disabled]) {
  background-color: #c2410c;
}

.btn-black:disabled,
.btn-black[disabled],
.btn-blue:disabled,
.btn-blue[disabled],
.btn-orange:disabled,
.btn-orange[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}





/* Video Loading Animation */
.video-loader {
  --loader-size: 96px;
  --loader-ring-color: #ffffff;
  position: relative;
  width: var(--loader-size);
  height: var(--loader-size);
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.35));
}

.video-loader:before,
.video-loader:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  animation: pulsOut 1.8s ease-in-out infinite;
}

.video-loader:before {
  box-shadow: inset 0 0 0 1rem var(--loader-ring-color);
  animation-name: pulsIn;
}

.video-loader:after {
  inset: 1rem;
  box-shadow: 0 0 0 0 var(--loader-ring-color);
}

@keyframes pulsIn {
  0% {
    box-shadow: inset 0 0 0 1rem var(--loader-ring-color, #fff);
    opacity: 1;
  }
  50%, 100% {
    box-shadow: inset 0 0 0 0 var(--loader-ring-color, #fff);
    opacity: 0;
  }
}

@keyframes pulsOut {
  0%, 50% {
    box-shadow: 0 0 0 0 var(--loader-ring-color, #fff);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 1rem var(--loader-ring-color, #fff);
    opacity: 1;
  }
}

/* Black variant for light backgrounds */
.video-loader-black {
  --loader-ring-color: #000000;
  filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.35));
}

/* Custom styles */

body {
  /* background-color: #F3F1EE; */
  background-color: #fdf8f3;
 
}

.big-shadow {
  box-shadow: 0px 4px 16px rgba(17,17,26,0.1), 0px 8px 24px rgba(17,17,26,0.1), 0px 16px 56px rgba(17,17,26,0.1);
}

/* Modern Dashboard Styles */
.dashboard-card {
  @apply bg-white rounded-2xl shadow-sm hover:shadow-md transition-shadow duration-300;
}

.dashboard-card-hover {
  @apply hover:shadow-lg hover:-translate-y-0.5 transition-all duration-300;
}

.gradient-avatar {
  @apply bg-gradient-to-br from-blue-400 to-purple-500;
}

.gradient-button {
  @apply bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700;
}

.message-bubble {
  @apply bg-blue-50 rounded-xl p-4 hover:bg-blue-100 transition-colors duration-200;
}

.team-member-card {
  @apply p-3 hover:bg-gray-50 rounded-lg transition-colors duration-200 cursor-pointer;
}

.icon-button {
  @apply p-3 bg-gray-100 rounded-full hover:bg-gray-200 transition-all duration-200 hover:scale-110;
}

.sidebar-link {
  @apply flex items-center space-x-3 px-4 py-3 rounded-lg transition-all duration-200;
}

.sidebar-link-active {
  @apply bg-blue-50 text-blue-600 font-medium;
}

.sidebar-link-inactive {
  @apply text-gray-600 hover:bg-gray-50;
}

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 9999px;
  background-color: #3C99DC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  line-height: 1;
}

/* Custom brand color utilities layered for Tailwind v4 */
@layer utilities {
  /* New preferred name */
  .blue-bg { background-color: #3C99DC; }

  /* Backwards-compatible aliases (can be removed later) */
  .bg-blue { background-color: #3C99DC; }
  .border-blue { border-color: #3C99DC; }
  .text-blue { color: #3C99DC; }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

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

/* Audio waveform animation */
@keyframes wave {
  0%, 100% { height: 20px; }
  50% { height: 35px; }
}

.waveform-bar {
  animation: wave 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }

/* Card entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* Pulse animation for notification badge */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.notification-badge {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

.playfair {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
}
