.glass-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.5s ease;
}

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

.animate-spin-slow {
  animation: spin-slow 6s linear infinite;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 0.75rem;
  border-width: 1px;
  transition: all 0.3s ease;
  width: 100%;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(217,119,6,0.06));
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow:
    0 0 14px rgba(245, 158, 11, 0.2),
    0 0 28px rgba(217, 119, 6, 0.1),
    inset 0 0 12px rgba(245, 158, 11, 0.04);
}

.link-card:hover {
  transform: scale(1.02) translateX(5px);
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(217,119,6,0.12));
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow:
    0 0 22px rgba(245, 158, 11, 0.45),
    0 0 45px rgba(217, 119, 6, 0.2),
    inset 0 0 16px rgba(245, 158, 11, 0.07);
}

/* Keep these classes but make them identical for uniform glow */
.highlight-card {}
.normal-card {}
.highlight-card:hover {}
.normal-card:hover {}

.link-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.highlight-icon {
  background-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.normal-icon {
  background-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

/* --- DARK NAVY MODE OVERRIDES --- */
body.dark-navy-mode {
  background-color: #0b1120 !important; /* Deep dark navy */
  color: #f8fafc !important;
}

/* Hide the golden background images and glows */
body.dark-navy-mode .fixed.inset-0.z-0 {
  display: none !important;
}

/* Add a subtle dark navy gradient background instead */
body.dark-navy-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.05), transparent 40%);
  pointer-events: none;
}

body.dark-navy-mode .glass-card,
body.dark-navy-mode .link-card {
  background: rgba(30, 41, 59, 0.6) !important; /* Slate 800 */
  border-color: rgba(56, 189, 248, 0.2) !important;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.5) !important;
}

body.dark-navy-mode .link-card:hover {
  transform: scale(1.02) translateX(5px);
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2) !important;
}

/* Shift amber/gold accents to cyan/sky blue accents for the Navy theme */
body.dark-navy-mode .text-amber-400,
body.dark-navy-mode .text-amber-500,
body.dark-navy-mode .text-yellow-300 {
  color: #38bdf8 !important; /* Sky 400 */
}

body.dark-navy-mode .bg-amber-400,
body.dark-navy-mode .bg-amber-500,
body.dark-navy-mode .bg-yellow-300 {
  background-color: #38bdf8 !important;
}

body.dark-navy-mode .from-amber-400,
body.dark-navy-mode .from-amber-500 {
  --tw-gradient-from: #0ea5e9 !important; /* Sky 500 */
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(14, 165, 233, 0));
}

body.dark-navy-mode .to-amber-400,
body.dark-navy-mode .to-yellow-300 {
  --tw-gradient-to: #38bdf8 !important;
}

body.dark-navy-mode .border-amber-400\/20,
body.dark-navy-mode .border-amber-500\/30 {
  border-color: rgba(56, 189, 248, 0.3) !important;
}

body.dark-navy-mode .bg-amber-500\/10,
body.dark-navy-mode .bg-amber-500\/20 {
  background-color: rgba(56, 189, 248, 0.15) !important;
}

body.dark-navy-mode input,
body.dark-navy-mode textarea {
  background-color: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

body.dark-navy-mode .selection\:bg-amber-400\/20 *::selection {
  background-color: rgba(56, 189, 248, 0.3) !important;
}

/* --- CHAT WIDGET CUSTOM STYLES --- */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.typing-dot {
  animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
