/* Custom Base & Utilities for Al-Nubala Platform */

@layer utilities {
  .safe-top {
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }
  .safe-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Perspective & 3D Flip Card for Flashcards */
.perspective-1000 {
  perspective: 1000px;
}

.flipped {
  transform: rotateY(180deg);
}

/* Custom Scrollbar for Tasks & Chat */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Active navigation tab highlight */
.nav-tab.active {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
  background-color: rgba(255, 255, 255, 0.05);
}

/* AI Role Buttons */
.ai-role-btn.active {
  background-color: #0b192c;
  color: #fde68a;
  border-color: transparent;
}

/* Pulse Glow */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }
}

.gold-glow {
  animation: goldPulse 2.5s infinite;
}