@charset "UTF-8";
/* ================================================================
   WEBNEY LOCATION HIERARCHY - VISUAL IDENTITY SYSTEM
   Phase 7C: Hierarchy-Specific Design Language
   ================================================================

   Each location level has a distinct visual identity:
   - Country: Expansive, authoritative (deep blues, wide spacing)
   - State: Hub-like, organized (purples, structured)
   - Province: Dynamic, connected (teals, flowing)
   - City: Cool, energetic (blues/greens, compact)
   - Barangay: Warm, cozy (oranges/ambers, intimate)
================================================================ */
/* ================================================================
   COMPONENT IMPORTS
================================================================ */
/* Media Upload Component Styles */
.media-upload-container {
  width: 100%;
  position: relative;
}
.media-upload-container .upload-overlay {
  border: 2px dashed rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}
.media-upload-container .upload-overlay.drag-over {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-style: solid;
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.media-upload-container .upload-overlay:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}
.media-upload-container .upload-overlay .upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.media-upload-container .upload-overlay .upload-placeholder i {
  font-size: 3.5rem;
  color: rgba(16, 185, 129, 0.8);
  margin-bottom: 1.25rem;
  display: block;
  opacity: 0.8;
  transition: all 0.3s ease;
}
.media-upload-container .upload-overlay .upload-placeholder p {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937; /* gray-800 */
  margin-bottom: 0.75rem;
}
.media-upload-container .upload-overlay .upload-placeholder small {
  color: #4b5563; /* gray-600 */
  font-size: 0.875rem;
  display: block;
  opacity: 0.8;
}
.media-upload-container .upload-overlay .upload-placeholder:hover i {
  transform: translateY(-4px);
  opacity: 1;
}
.media-upload-container .uploaded-files-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: auto;
}
.media-upload-container .uploaded-files-grid .drag-item {
  position: relative;
  cursor: grab;
  transition: opacity 0.2s, transform 0.2s;
}
.media-upload-container .uploaded-files-grid .drag-item.dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.media-upload-container .uploaded-files-grid .drag-item.drop-target {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--bs-primary, #84cc16);
  border-radius: 12px;
}
.media-upload-container .uploaded-files-grid .add-more-btn {
  border: 2px dashed rgba(var(--bs-primary-rgb, 13, 110, 253), 0.3);
  border-radius: 12px;
  width: 165px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bs-body-bg, #fff);
  pointer-events: auto;
  flex-shrink: 0;
}
.media-upload-container .uploaded-files-grid .add-more-btn i {
  font-size: 1.75rem;
  color: var(--bs-primary, #0d6efd);
  transition: transform 0.25s ease;
}
.media-upload-container .uploaded-files-grid .add-more-btn span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bs-body-color, #212529);
}
.media-upload-container .uploaded-files-grid .add-more-btn:hover {
  border-color: var(--bs-primary, #0d6efd);
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb, 13, 110, 253), 0.04) 0%, rgba(var(--bs-info-rgb, 13, 202, 240), 0.04) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.15);
}
.media-upload-container .uploaded-files-grid .add-more-btn:hover i {
  transform: scale(1.1);
}
.media-upload-container .uploaded-files-grid .add-more-btn:active {
  transform: translateY(-1px);
}
.media-upload-container {
  /* Dark mode text colors */
}
.dark .media-upload-container .upload-overlay .upload-placeholder p {
  color: #f3f4f6; /* gray-100 */
}
.dark .media-upload-container .upload-overlay .upload-placeholder small {
  color: #d1d5db; /* gray-300 */
}

.media-upload-item {
  position: relative;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  width: 165px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
}
.media-upload-item:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
}
.media-upload-item.uploading {
  opacity: 0.6;
  pointer-events: none;
}
.media-upload-item .media-preview {
  position: relative;
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb, 13, 110, 253), 0.05) 0%, rgba(var(--bs-info-rgb, 13, 202, 240), 0.05) 100%);
  overflow: hidden;
}
.media-upload-item .media-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.media-upload-item .media-preview .upload-spinner,
.media-upload-item .media-preview .video-placeholder,
.media-upload-item .media-preview .file-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.media-upload-item .media-preview .upload-spinner i,
.media-upload-item .media-preview .video-placeholder i,
.media-upload-item .media-preview .file-placeholder i {
  font-size: 2.5rem;
  color: var(--text-muted, #999);
}
.media-upload-item .media-preview .upload-spinner span,
.media-upload-item .media-preview .video-placeholder span,
.media-upload-item .media-preview .file-placeholder span {
  font-size: 0.75rem;
  color: var(--text-muted, #666);
}
.media-upload-item .media-preview .upload-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color, #ddd);
  border-top-color: var(--primary-color, #007bff);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.media-upload-item .media-preview .remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.95);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
  backdrop-filter: blur(4px);
}
.media-upload-item .media-preview .remove-btn:hover {
  background: rgb(220, 53, 69);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6);
}
.media-upload-item .media-preview:hover .remove-btn {
  opacity: 1;
}
.media-upload-item:hover .media-preview img {
  transform: scale(1.05);
}
.media-upload-item .media-info {
  padding: 0.75rem;
}
.media-upload-item .media-info .file-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark, #333);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-upload-item .media-info .file-size {
  font-size: 0.75rem;
  color: var(--text-muted, #666);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.media-upload-item .media-info .file-size .original-size {
  text-decoration: line-through;
  opacity: 0.6;
}
.media-upload-item .media-info .file-size .resized-size {
  font-weight: 600;
  color: var(--success-color, #28a745);
}
.media-upload-item .media-info .file-size .savings {
  color: var(--success-color, #28a745);
  font-weight: 500;
}
.media-upload-item .media-info .file-size .larger {
  color: var(--warning-color, #ff9800);
  font-weight: 500;
}
.media-upload-item .media-info .file-size .same {
  color: var(--text-muted, #999);
}
.media-upload-item .media-info .file-size i {
  font-size: 0.6rem;
}
.media-upload-item .media-info .file-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.media-upload-item .media-info .dimensions {
  font-size: 0.7rem;
  color: var(--text-muted, #999);
}
.media-upload-item .media-info .progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--bg-light, #e0e0e0);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.media-upload-item .media-info .progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color, #007bff), var(--primary-light, #0056b3));
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Dark mode support for media upload items */
.dark .media-upload-item {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}
.dark .media-upload-item .media-info .file-name {
  color: #f3f4f6; /* gray-100 */
}
.dark .media-upload-item .media-info .file-size {
  color: #d1d5db; /* gray-300 */
}
.dark .media-upload-item .media-info .dimensions {
  color: #d1d5db; /* gray-300 */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Responsive adjustments */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
@media (max-width: 1024px) {
  .media-upload-container .media-upload-item,
  .media-upload-container .add-more-btn {
    width: 180px;
    height: 180px;
  }
}
@media (max-width: 768px) {
  .media-upload-container .upload-overlay {
    padding: 1.5rem;
    min-height: 150px;
  }
  .media-upload-container .media-upload-item,
  .media-upload-container .add-more-btn {
    width: 160px;
    height: 160px;
  }
}
@media (max-width: 640px) {
  .media-upload-container .media-upload-item,
  .media-upload-container .add-more-btn {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 480px) {
  .media-upload-container .upload-overlay {
    padding: 1rem;
  }
  .media-upload-container .upload-overlay .uploaded-files-grid {
    gap: 0.5rem;
  }
  .media-upload-container .media-upload-item,
  .media-upload-container .add-more-btn {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 360px) {
  .media-upload-container .media-upload-item,
  .media-upload-container .add-more-btn {
    width: 100px;
    height: 100px;
  }
}
@keyframes emoji-pop {
  0% {
    transform: scale(0) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
@keyframes emoji-bounce {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  25% {
    transform: scale(1.1) translateY(-6px);
  }
  50% {
    transform: scale(1.15) translateY(-10px);
  }
  75% {
    transform: scale(1.05) translateY(-3px);
  }
}
@keyframes emoji-wiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-5deg) scale(1.05);
  }
  50% {
    transform: rotate(5deg) scale(1.1);
  }
  75% {
    transform: rotate(-3deg) scale(1.05);
  }
}
@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
  }
}
.reaction-picker-container {
  animation: picker-slide-up 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes picker-slide-up {
  0% {
    transform: translateY(10px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.reaction-emoji {
  position: relative;
  cursor: pointer;
}
.reaction-emoji span {
  display: inline-block;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  animation: emoji-pop 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
.reaction-emoji:hover span {
  animation: emoji-bounce 0.6s ease-in-out infinite;
}
.reaction-emoji:active span {
  transform: scale(0.9);
}

.reaction-emoji:nth-child(1) span {
  animation-delay: 0.05s;
}

.reaction-emoji:nth-child(2) span {
  animation-delay: 0.1s;
}

.reaction-emoji:nth-child(3) span {
  animation-delay: 0.15s;
}

.reaction-emoji:nth-child(4) span {
  animation-delay: 0.2s;
}

.reaction-emoji:nth-child(5) span {
  animation-delay: 0.25s;
}

.reaction-emoji:nth-child(6) span {
  animation-delay: 0.3s;
}

.reaction-emoji:nth-child(7) span {
  animation-delay: 0.35s;
}

.reaction-emoji-like:hover span {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.reaction-emoji-love:hover span {
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
  animation: emoji-wiggle 0.5s ease-in-out infinite;
}

.reaction-emoji-wow:hover span {
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6));
}

.reaction-emoji-haha:hover span {
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6));
  animation: emoji-wiggle 0.4s ease-in-out infinite;
}

.reaction-emoji-sad:hover span {
  filter: drop-shadow(0 0 8px rgba(107, 114, 128, 0.6));
}

.reaction-emoji-angry:hover span {
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
  animation: emoji-wiggle 0.3s ease-in-out infinite;
}

.reaction-emoji-recommend:hover span {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
  animation: glow-pulse 1s ease-in-out infinite;
}

/* ================================================================
   CHAT & MESSAGING COMPONENTS
   Styles for inbox, conversation thread, floating chat windows,
   floating chat widget, and online friends panel.
================================================================ */
/* ── Thin scrollbar utility ── */
.thin-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 155, 155, 0.25) transparent;
}
.thin-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.thin-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(155, 155, 155, 0.25);
  border-radius: 4px;
}
.thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(155, 155, 155, 0.4);
}

/* ── Chat Window — Floating ── */
.chat-window {
  position: fixed;
  bottom: 0;
  right: 1.5rem;
  width: 22rem;
  max-height: 32rem;
  display: flex;
  flex-direction: column;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  background: white;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-bottom: none;
  animation: chatSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 640px) {
  .chat-window {
    right: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

.chat-window-minimized {
  max-height: auto;
}
.chat-window-minimized .chat-window-body,
.chat-window-minimized .chat-window-footer {
  display: none;
}

.chat-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  background: linear-gradient(135deg, var(--tw-gradient-from, #4f46e5), var(--tw-gradient-to, #6366f1));
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  flex-shrink: 0;
}

.chat-window-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  background: #fafbfc;
  min-height: 0;
  max-height: 22rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 155, 155, 0.2) transparent;
}
.chat-window-body::-webkit-scrollbar {
  width: 4px;
}
.chat-window-body::-webkit-scrollbar-track {
  background: transparent;
}
.chat-window-body::-webkit-scrollbar-thumb {
  background-color: rgba(155, 155, 155, 0.2);
  border-radius: 4px;
}
.chat-window-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(155, 155, 155, 0.35);
}

.chat-window-footer {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
  background: white;
  flex-shrink: 0;
}

/* ── Message Bubbles ── */
.chat-bubble-mine {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border-radius: 1.125rem 1.125rem 0.25rem 1.125rem;
  padding: 0.5rem 0.75rem;
}

.chat-bubble-theirs {
  background: #e5e7eb;
  color: #1f2937;
  border-radius: 1.125rem 1.125rem 1.125rem 0.25rem;
  padding: 0.5rem 0.75rem;
}

/* ── Message row animation ── */
.msg-bubble-row {
  animation: msgFadeIn 0.2s ease-out;
}

/* ── Chat FAB ── */
.chat-fab {
  animation: chatFabIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Animations ── */
@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes msgFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes chatFabIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* ── Message Input ── */
.msg-input-container textarea {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 155, 155, 0.3) transparent;
}
.msg-input-container textarea::-webkit-scrollbar {
  width: 4px;
}
.msg-input-container textarea::-webkit-scrollbar-thumb {
  background-color: rgba(155, 155, 155, 0.3);
  border-radius: 2px;
}

/* ── Conversation List — scroll ── */
.online-friends-panel .max-h-96 {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 155, 155, 0.2) transparent;
}
.online-friends-panel .max-h-96::-webkit-scrollbar {
  width: 3px;
}
.online-friends-panel .max-h-96::-webkit-scrollbar-thumb {
  background-color: rgba(155, 155, 155, 0.2);
  border-radius: 2px;
}

/* ── Dark Mode ── */
html.dark .chat-window {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(0, 0, 0, 0.3);
}
html.dark .chat-window-body {
  background: #0f1623;
}
html.dark .chat-window-footer {
  background: #111827;
  border-top-color: rgba(255, 255, 255, 0.06);
}
html.dark .chat-bubble-theirs {
  background: #1f2937;
  color: #e5e7eb;
}
html.dark .chat-widget-panel {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* ── Emoji Picker ── */
.emoji-picker {
  animation: emojiPickerIn 0.15s ease-out;
}

@keyframes emojiPickerIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ── Read Receipt ── */
.msg-bubble-row .read-receipt-icon {
  transition: color 0.2s ease;
}

/* ── Mobile-Responsive Polish ── */
@media (max-width: 1024px) {
  /* Inbox: full-width conversation list on tablet */
  .conv-thread .overflow-y-auto {
    max-height: calc(100vh - 16rem);
  }
}
@media (max-width: 640px) {
  /* Inbox: ensure proper touch targets */
  .msg-bubble-row {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  /* Conversation thread messages area - take full available height */
  .conv-thread {
    height: calc(100vh - 8rem);
  }
  .conv-thread .overflow-y-auto {
    max-height: calc(100vh - 14rem);
  }
  /* Message input - larger touch targets on mobile */
  .msg-input-container {
    padding: 0.5rem;
  }
  .msg-input-container textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  .msg-input-container button {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
  /* Search bar within conversation */
  .conv-thread input[type=text] {
    font-size: 16px; /* Prevents iOS zoom */
  }
}
/* ================================================================
   PROFILE COMPONENTS
   Styles for profile header, cover photo, and avatar.
================================================================ */
/* ── Default Cover Background (animated infinity illusion) ── */
.cover-default-bg {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  overflow: hidden;
}

html.dark .cover-default-bg {
  background: linear-gradient(180deg, #050a14 0%, #0a0f1e 100%);
}

.cover-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.6;
  animation: coverOrbFloat 8s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.cover-star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: coverTwinkle 3s ease-in-out infinite;
  pointer-events: none;
}

/* ── Diamond tile infinity grid ── */
.cover-grid-wrapper {
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 35%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 80%);
  mask-image: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 35%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 80%);
}

.cover-grid-tiles {
  position: absolute;
  bottom: 0;
  left: -25%;
  right: -25%;
  height: 160%;
  background-image: repeating-linear-gradient(45deg, transparent 0px, transparent 40px, rgba(139, 92, 246, 0.5) 40px, rgba(139, 92, 246, 0.5) 42px, transparent 42px, transparent 80px), repeating-linear-gradient(-45deg, transparent 0px, transparent 40px, rgba(139, 92, 246, 0.5) 40px, rgba(139, 92, 246, 0.5) 42px, transparent 42px, transparent 80px), repeating-linear-gradient(45deg, transparent 0px, transparent 20px, rgba(236, 72, 153, 0.25) 20px, rgba(236, 72, 153, 0.25) 21px, transparent 21px, transparent 40px), repeating-linear-gradient(-45deg, transparent 0px, transparent 20px, rgba(236, 72, 153, 0.25) 20px, rgba(236, 72, 153, 0.25) 21px, transparent 21px, transparent 40px);
  transform: perspective(600px) rotateX(60deg);
  transform-origin: bottom center;
}

/* ── Animations ── */
@keyframes coverOrbFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translateY(-12px) scale(1.05);
    opacity: 0.7;
  }
  66% {
    transform: translateY(8px) scale(0.95);
    opacity: 0.4;
  }
}
@keyframes coverTwinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.3);
  }
}
@keyframes coverGridScroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 80px 80px;
  }
}
/* ═══════════════════════════════════════════════════════
   AI Assist Panel Styles
   Reusable AI writing assistant component
   ═══════════════════════════════════════════════════════ */
/* ── AI Panel Backdrop (click-outside to close) ── */
.ai-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  cursor: default;
}

/* ── AI Indicator Bar ── */
.ai-assist-bar {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(168, 85, 247, 0.04));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  margin-top: 8px;
}

.ai-assist-bar--above-backdrop {
  z-index: 9999;
}

.ai-assist-bar:hover:not(.ai-assist-bar--disabled) {
  border-color: rgba(99, 102, 241, 0.35);
}

/* Disabled state */
.ai-assist-bar--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-assist-bar--disabled .ai-assist-toggle {
  cursor: not-allowed;
  color: #9ca3af;
}

.ai-assist-bar--disabled .ai-assist-icon {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.ai-assist-bar--expanded {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.08);
}

/* ── Toggle Button ── */
.ai-assist-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6366f1;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.ai-assist-toggle:hover {
  color: #4f46e5;
}

.ai-assist-close-icon {
  color: #9ca3af;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.ai-assist-close-icon:hover {
  color: #ef4444;
}

.ai-assist-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  flex-shrink: 0;
}

.ai-assist-icon svg {
  width: 14px;
  height: 14px;
}

.ai-assist-label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ai-assist-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  line-height: 1;
}

.ai-assist-hint {
  flex: 1;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-assist-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
  color: #9ca3af;
  flex-shrink: 0;
}

.ai-assist-chevron--open {
  transform: rotate(180deg);
}

/* ── Expanded Panel ── */
.ai-assist-panel {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Panel Header (actions row + close button) ── */
.ai-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 12px;
}

.ai-panel-header .ai-assist-actions {
  flex: 1;
  min-width: 0;
}

.ai-panel-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #9ca3af;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  padding: 0;
}

.ai-panel-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.dark .ai-panel-close-btn {
  background: #1f2937;
  border-color: #374151;
  color: #6b7280;
}

.dark .ai-panel-close-btn:hover {
  background: #450a0a;
  border-color: #7f1d1d;
  color: #f87171;
}

/* ── Action Buttons ── */
.ai-assist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ai-action-btn:hover:not(:disabled) {
  border-color: #6366f1;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.04);
}

.ai-action-btn--active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  font-weight: 600;
}

.ai-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Prompt Section ── */
.ai-prompt-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-prompt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.ai-prompt-input-wrapper {
  position: relative;
}

.ai-prompt-input {
  width: 100%;
  padding: 10px 12px;
  padding-bottom: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  min-height: 6rem;
  color: #1f2937;
  background: #fafafa;
  resize: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  white-space: pre-wrap;
}

.ai-prompt-input::placeholder {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 12px;
  color: #b0b7c3;
}

.ai-prompt-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: white;
}

.ai-prompt-count {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 10px;
  color: #9ca3af;
}

/* ── Tone Pills ── */
.ai-tone-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-tone-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  flex-shrink: 0;
}

.ai-tone-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ai-tone-pill {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: white;
  color: #4b5563;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ai-tone-pill:hover:not(:disabled) {
  border-color: #a855f7;
}

.ai-tone-pill--active {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
  color: #7c3aed;
  font-weight: 600;
}

.ai-tone-pill:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Execute Button ── */
.ai-execute-section {
  display: flex;
}

.ai-execute-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  width: 100%;
}

.ai-execute-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.ai-execute-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.ai-execute-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Spinner ── */
.ai-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: ai-spin 0.6s linear infinite;
}

@keyframes ai-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Result Preview ── */
.ai-result-section {
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(34, 197, 94, 0.03);
}

.ai-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.06);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.ai-result-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}

.ai-result-actions {
  display: flex;
  gap: 6px;
}

.ai-apply-btn,
.ai-discard-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.ai-apply-btn {
  background: #22c55e;
  color: white;
  border: none;
}

.ai-apply-btn:hover {
  background: #16a34a;
}

.ai-discard-btn {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ai-discard-btn:hover {
  background: rgba(239, 68, 68, 0.06);
}

.ai-result-preview {
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
  max-height: 200px;
  overflow-y: auto;
}

.ai-result-preview p {
  margin: 0;
  white-space: pre-wrap;
}

/* ── Hashtag Section ── */
.ai-hashtag-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-hashtag-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.ai-hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-hashtag-chip {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: white;
  color: #6366f1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ai-hashtag-chip:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.04);
}

.ai-hashtag-chip--selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  font-weight: 600;
}

.ai-apply-hashtags-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: #6366f1;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s;
}

.ai-apply-hashtags-btn:hover {
  opacity: 0.9;
}

/* ── Error ── */
.ai-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
}

/* ── Footer Tip ── */
.ai-footer-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3af;
  padding-top: 4px;
}

/* ═══════════════════════ Dark Mode ═══════════════════════ */
:root[data-theme=dark] .ai-assist-bar,
.dark .ai-assist-bar {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
  border-color: rgba(99, 102, 241, 0.25);
}

:root[data-theme=dark] .ai-assist-bar--expanded,
.dark .ai-assist-bar--expanded {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

:root[data-theme=dark] .ai-action-btn,
.dark .ai-action-btn {
  background: #1f2937;
  border-color: #374151;
  color: #d1d5db;
}

:root[data-theme=dark] .ai-action-btn:hover:not(:disabled),
.dark .ai-action-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.12);
}

:root[data-theme=dark] .ai-action-btn--active,
.dark .ai-action-btn--active {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

:root[data-theme=dark] .ai-prompt-input,
.dark .ai-prompt-input {
  background: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}

:root[data-theme=dark] .ai-prompt-input:focus,
.dark .ai-prompt-input:focus {
  border-color: #6366f1;
  background: #111827;
}

:root[data-theme=dark] .ai-tone-pill,
.dark .ai-tone-pill {
  background: #1f2937;
  border-color: #374151;
  color: #d1d5db;
}

:root[data-theme=dark] .ai-tone-pill--active,
.dark .ai-tone-pill--active {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

:root[data-theme=dark] .ai-result-preview,
.dark .ai-result-preview {
  color: #e5e7eb;
}

:root[data-theme=dark] .ai-hashtag-chip,
.dark .ai-hashtag-chip {
  background: #1f2937;
  border-color: #374151;
  color: #a5b4fc;
}

:root[data-theme=dark] .ai-hashtag-chip--selected,
.dark .ai-hashtag-chip--selected {
  background: rgba(99, 102, 241, 0.2);
}

/* ═══════════════════════ Responsive ═══════════════════════ */
@media (max-width: 640px) {
  .ai-assist-hint {
    display: none;
  }
  .ai-assist-actions {
    gap: 4px;
  }
  .ai-action-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .ai-tone-pills {
    gap: 3px;
  }
  .ai-tone-pill {
    padding: 3px 8px;
    font-size: 10px;
  }
}
/* ═══════════════════════════════════════════════════════
   AI Trending Panel Styles
   Displays AI-detected trending topics for a location.
   ═══════════════════════════════════════════════════════ */
/* ── Panel Container ── */
.ai-trending-panel {
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(168, 85, 247, 0.03));
  padding: 14px 16px;
  font-size: 13px;
}

/* ── Header ── */
.ai-trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ai-trending-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-trending-icon {
  display: flex;
  align-items: center;
  color: #6366f1;
}

.ai-trending-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary, #111827);
}

.ai-trending-location {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
  font-weight: 400;
}

.ai-trending-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: none;
  color: #6366f1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ai-trending-refresh:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ── Loading State ── */
.ai-trending-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary, #6b7280);
  padding: 8px 0;
}

.ai-trending-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: ai-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes ai-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Empty / Error State ── */
.ai-trending-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--text-secondary, #6b7280);
  font-size: 12px;
}

.ai-trending-retry {
  background: none;
  border: none;
  color: #6366f1;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
}

/* ── Topics List ── */
.ai-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ai-trending-rank {
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-trending-content {
  flex: 1;
  min-width: 0;
}

.ai-trending-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ai-trending-topic-name {
  font-weight: 500;
  color: var(--text-primary, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-trending-score {
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
  flex-shrink: 0;
}

/* ── Score Bar ── */
.ai-trending-bar-track {
  height: 3px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.ai-trending-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ── Keywords ── */
.ai-trending-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ai-trending-keyword {
  font-size: 11px;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
}
.ai-trending-keyword:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

/* ── Footer ── */
.ai-trending-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  color: var(--text-secondary, #9ca3af);
  font-size: 11px;
}

.ai-trending-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Dark Mode ── */
html.dark .ai-trending-panel {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.06));
}

html.dark .ai-trending-title {
  color: #f3f4f6;
}

html.dark .ai-trending-topic-name {
  color: #e5e7eb;
}

html.dark .ai-trending-rank {
  background: rgba(99, 102, 241, 0.2);
}

html.dark .ai-trending-keyword {
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
}
html.dark .ai-trending-keyword:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

html.dark .ai-trending-bar-track {
  background: rgba(99, 102, 241, 0.2);
}

/* ═══════════════════════════════════════════════════════
   AI Tone Indicator Styles
   Compact badge showing detected emotional tone.
   ═══════════════════════════════════════════════════════ */
.ai-tone-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* ── Badge ── */
.ai-tone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.ai-tone-badge--loading {
  color: var(--text-secondary, #6b7280);
  background: rgba(107, 114, 128, 0.06);
  border-color: rgba(107, 114, 128, 0.15);
}

.ai-tone-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: ai-tone-spin 0.7s linear infinite;
}

@keyframes ai-tone-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Tone Colors ── */
.ai-tone-badge--friendly {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
  color: #16a34a;
}

.ai-tone-badge--professional {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  color: #2563eb;
}

.ai-tone-badge--casual {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
  color: #9333ea;
}

.ai-tone-badge--enthusiastic {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #d97706;
}

.ai-tone-badge--supportive {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
  color: #16a34a;
}

.ai-tone-badge--neutral {
  background: rgba(107, 114, 128, 0.08);
  border-color: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

.ai-tone-badge--sarcastic {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.25);
  color: #ea580c;
}

.ai-tone-badge--aggressive {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

.ai-tone-badge--critical {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.ai-tone-emoji {
  font-size: 13px;
  line-height: 1;
}

.ai-tone-label {
  font-weight: 600;
}

.ai-tone-confidence {
  opacity: 0.6;
  font-size: 10px;
}

/* ── Suggestion ── */
.ai-tone-suggestion {
  font-size: 11px;
  color: var(--text-secondary, #9ca3af);
  font-style: italic;
}

/* ── Dark Mode ── */
html.dark .ai-tone-badge--friendly {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

html.dark .ai-tone-badge--professional {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

html.dark .ai-tone-badge--casual {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

html.dark .ai-tone-badge--enthusiastic {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

html.dark .ai-tone-badge--supportive {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

html.dark .ai-tone-badge--neutral {
  background: rgba(107, 114, 128, 0.12);
  color: #9ca3af;
}

html.dark .ai-tone-badge--sarcastic {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

html.dark .ai-tone-badge--aggressive {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

html.dark .ai-tone-badge--critical {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

html.dark .ai-tone-badge--loading {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.ai-inline-suggestions {
  margin-top: 0.375rem;
  padding: 0.375rem 0.5rem;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 0.5rem;
  animation: aiSuggestFadeIn 0.2s ease-out;
}
.ai-inline-suggestions--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}
.ai-inline-suggestions__header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.375rem;
  font-size: 0.675rem;
  color: var(--text-secondary, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.ai-inline-suggestions__icon {
  width: 0.75rem;
  height: 0.75rem;
  color: #6366f1;
  flex-shrink: 0;
}
.ai-inline-suggestions__close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary, #9ca3af);
  font-size: 0.875rem;
  line-height: 1;
  padding: 0 0.125rem;
}
.ai-inline-suggestions__close:hover {
  color: var(--text-primary, #374151);
}
.ai-inline-suggestions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.ai-inline-suggestions__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  max-width: 100%;
  text-align: left;
}
.ai-inline-suggestions__chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
.ai-inline-suggestions__chip:active {
  transform: translateY(0);
}
.ai-inline-suggestions__spinner {
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: aiSuggestSpin 0.6s linear infinite;
}

@keyframes aiSuggestFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes aiSuggestSpin {
  to {
    transform: rotate(360deg);
  }
}
[data-theme=dark] .ai-inline-suggestions,
.dark .ai-inline-suggestions {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.2);
}
[data-theme=dark] .ai-inline-suggestions__close:hover,
.dark .ai-inline-suggestions__close:hover {
  color: #e5e7eb;
}
[data-theme=dark] .ai-inline-suggestions__chip,
.dark .ai-inline-suggestions__chip {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
[data-theme=dark] .ai-inline-suggestions__chip:hover,
.dark .ai-inline-suggestions__chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ═══════════════════════════════════════════════════════
   AI Marketing Components
   Styles for AiMarketingGenerator, SavedCampaigns,
   CampaignPerformance, AIUsageSummary, AiReplyAssistant,
   AICreditBadge, AIUpgradeModal, AIEngagementIndicator,
   AIPostBadge
   ═══════════════════════════════════════════════════════ */
/* ── AI Marketing Generator ── */
.ai-marketing-generator .ai-marketing-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-marketing-generator .ai-marketing-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-marketing-generator .ai-marketing-field label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}
.ai-marketing-generator .ai-marketing-field select,
.ai-marketing-generator .ai-marketing-field input,
.ai-marketing-generator .ai-marketing-field textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: white;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-marketing-generator .ai-marketing-field select:focus,
.ai-marketing-generator .ai-marketing-field input:focus,
.ai-marketing-generator .ai-marketing-field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  outline: none;
}
.ai-marketing-generator .ai-marketing-field textarea {
  resize: vertical;
  min-height: 80px;
}
.ai-marketing-generator .ai-marketing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Result Preview ── */
.ai-marketing-result {
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.ai-marketing-result .ai-result-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.ai-marketing-result .ai-result-content {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  white-space: pre-wrap;
}
.ai-marketing-result .ai-result-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.ai-marketing-result .ai-result-hashtags .ai-hashtag {
  font-size: 12px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 10px;
  border-radius: 9999px;
}
.ai-marketing-result .ai-result-cta {
  margin-top: 12px;
  font-size: 12px;
  font-style: italic;
  color: #6b7280;
}

/* ── Variant Picker ── */
.ai-variant-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-variant-picker .ai-variant-card {
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-variant-picker .ai-variant-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}
.ai-variant-picker .ai-variant-card.ai-variant-card--selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.ai-variant-picker .ai-variant-card .ai-variant-label {
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.ai-variant-picker .ai-variant-card .ai-variant-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.ai-variant-picker .ai-variant-card .ai-variant-preview {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Saved Campaigns ── */
.saved-campaigns .saved-campaign-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.2s ease;
}
.saved-campaigns .saved-campaign-card:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.saved-campaigns .campaign-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}
.saved-campaigns .campaign-badge--type {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}
.saved-campaigns .campaign-badge--scheduled {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}
.saved-campaigns .campaign-badge--published {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}
.saved-campaigns .campaign-badge--failed {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}
.saved-campaigns .campaign-schedule-info {
  font-size: 11px;
  color: #d97706;
  margin-top: 4px;
}

/* ── Campaign Performance ── */
.campaign-performance .performance-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.campaign-performance .performance-stat-card {
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.campaign-performance .performance-stat-card--views {
  background: rgba(59, 130, 246, 0.06);
}
.campaign-performance .performance-stat-card--reactions {
  background: rgba(16, 185, 129, 0.06);
}
.campaign-performance .performance-stat-card--comments {
  background: rgba(139, 92, 246, 0.06);
}
.campaign-performance .performance-stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
}
.campaign-performance .performance-stat-card .stat-label {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}
.campaign-performance .performance-campaign-row {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
}
.campaign-performance .performance-metric {
  text-align: center;
}
.campaign-performance .performance-metric .metric-value {
  font-size: 13px;
  font-weight: 700;
}
.campaign-performance .performance-metric .metric-label {
  font-size: 10px;
  color: #6b7280;
}

/* ── AI Reply Assistant ── */
.ai-reply-assistant {
  display: inline-block;
}
.ai-reply-assistant .ai-reply-toggle {
  font-size: 12px;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.ai-reply-assistant .ai-reply-toggle:hover {
  color: #1d4ed8;
}
.ai-reply-assistant .ai-reply-panel {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.03);
  max-width: 28rem;
}
.ai-reply-assistant .ai-reply-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-reply-assistant .ai-reply-suggestion {
  width: 100%;
  text-align: left;
  font-size: 12px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ai-reply-assistant .ai-reply-suggestion:hover {
  border-color: #93c5fd;
  background: rgba(59, 130, 246, 0.04);
}

/* ── AI Usage Summary ── */
.ai-usage-summary .usage-progress-bar {
  height: 8px;
  border-radius: 9999px;
  background: #e5e7eb;
  overflow: hidden;
}
.ai-usage-summary .usage-progress-bar .usage-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-usage-summary .usage-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ai-usage-summary .usage-stat-card {
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.ai-usage-summary .usage-stat-card .usage-stat-value {
  font-size: 24px;
  font-weight: 700;
}
.ai-usage-summary .usage-stat-card .usage-stat-label {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

/* ── Dark mode overrides ── */
html.dark .ai-marketing-generator .ai-marketing-field label {
  color: #d1d5db;
}
html.dark .ai-marketing-generator .ai-marketing-field select,
html.dark .ai-marketing-generator .ai-marketing-field input,
html.dark .ai-marketing-generator .ai-marketing-field textarea {
  border-color: #4b5563;
  background: #1f2937;
  color: #f9fafb;
}
html.dark .ai-marketing-generator .ai-marketing-field select:focus,
html.dark .ai-marketing-generator .ai-marketing-field input:focus,
html.dark .ai-marketing-generator .ai-marketing-field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
html.dark .ai-marketing-result {
  border-color: #374151;
  background: rgba(31, 41, 55, 0.6);
}
html.dark .ai-marketing-result .ai-result-title {
  color: #f9fafb;
}
html.dark .ai-marketing-result .ai-result-content {
  color: #9ca3af;
}
html.dark .ai-marketing-result .ai-result-hashtags .ai-hashtag {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
}
html.dark .ai-variant-picker .ai-variant-card {
  border-color: #374151;
  background: rgba(31, 41, 55, 0.6);
}
html.dark .ai-variant-picker .ai-variant-card:hover {
  border-color: #3b82f6;
}
html.dark .ai-variant-picker .ai-variant-card.ai-variant-card--selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}
html.dark .ai-variant-picker .ai-variant-card .ai-variant-title {
  color: #f9fafb;
}
html.dark .ai-variant-picker .ai-variant-card .ai-variant-preview {
  color: #9ca3af;
}
html.dark .saved-campaigns .saved-campaign-card {
  border-color: #374151;
  background: rgba(31, 41, 55, 0.6);
}
html.dark .saved-campaigns .campaign-badge--type {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
html.dark .saved-campaigns .campaign-badge--scheduled {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
html.dark .saved-campaigns .campaign-badge--published {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}
html.dark .saved-campaigns .campaign-badge--failed {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}
html.dark .campaign-performance .performance-stat-card--views {
  background: rgba(59, 130, 246, 0.1);
}
html.dark .campaign-performance .performance-stat-card--reactions {
  background: rgba(16, 185, 129, 0.1);
}
html.dark .campaign-performance .performance-stat-card--comments {
  background: rgba(139, 92, 246, 0.1);
}
html.dark .campaign-performance .performance-campaign-row {
  border-color: #374151;
  background: rgba(31, 41, 55, 0.6);
}
html.dark .ai-reply-assistant .ai-reply-toggle {
  color: #60a5fa;
}
html.dark .ai-reply-assistant .ai-reply-toggle:hover {
  color: #93c5fd;
}
html.dark .ai-reply-assistant .ai-reply-panel {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
}
html.dark .ai-reply-assistant .ai-reply-suggestion {
  background: #1f2937;
  border-color: #374151;
}
html.dark .ai-reply-assistant .ai-reply-suggestion:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}
html.dark .ai-usage-summary .usage-progress-bar {
  background: #374151;
}

/* ── AI Credit Balance ── */
.ai-credit-balance .credit-progress-bar {
  height: 8px;
  border-radius: 9999px;
  overflow: hidden;
  background-color: #e5e7eb;
}
.ai-credit-balance .credit-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}
.ai-credit-balance .credit-bonus {
  font-size: 12px;
  color: #059669;
  margin-top: 4px;
}

/* ── AI Plan Selector ── */
.ai-plan-selector .plan-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}
.ai-plan-selector .plan-card:hover {
  border-color: #93c5fd;
}
.ai-plan-selector .plan-card.plan-active {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.ai-plan-selector .plan-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background-color: #2563eb;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 9999px;
}
.ai-plan-selector .plan-credits {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}
.ai-plan-selector .plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #374151;
}

/* ── Viral Content Generator ── */
.ai-viral-generator .viral-result-content {
  padding: 16px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  white-space: pre-line;
}
.ai-viral-generator .viral-hashtag {
  display: inline-block;
  font-size: 12px;
  background-color: #dbeafe;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* ── Engagement Booster ── */
.ai-engagement-booster .boost-result {
  padding: 16px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.ai-engagement-booster .boost-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #374151;
}

/* ── Dark mode overrides for new components ── */
@media (prefers-color-scheme: dark) {
  .ai-credit-balance .credit-progress-bar {
    background-color: #374151;
  }
  .ai-credit-balance .credit-bonus {
    color: #34d399;
  }
  .ai-plan-selector .plan-card {
    border-color: #374151;
  }
  .ai-plan-selector .plan-card:hover {
    border-color: #2563eb;
  }
  .ai-plan-selector .plan-card.plan-active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
  }
  .ai-plan-selector .plan-credits {
    color: #f9fafb;
  }
  .ai-plan-selector .plan-features li {
    color: #d1d5db;
  }
  .ai-viral-generator .viral-result-content {
    background-color: rgba(31, 41, 55, 0.5);
    border-color: #374151;
  }
  .ai-viral-generator .viral-hashtag {
    background-color: rgba(30, 64, 175, 0.3);
    color: #93c5fd;
  }
  .ai-engagement-booster .boost-result {
    background-color: rgba(31, 41, 55, 0.5);
    border-color: #374151;
  }
  .ai-engagement-booster .boost-tip {
    color: #d1d5db;
  }
}
/* ── AI Credit Badge (compact inline) ── */
.ai-credit-badge {
  transition: all 0.2s ease;
}
.ai-credit-badge:hover {
  transform: scale(1.05);
}

/* ── AI Upgrade Modal ── */
.ai-upgrade-modal .plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.ai-upgrade-modal .plan-row:hover {
  border-color: #93c5fd;
}
.ai-upgrade-modal .plan-row.plan-recommended {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ── AI Engagement Indicator ── */
.ai-engagement-indicator {
  transition: all 0.3s ease;
}

/* ── AI Post Badge ── */
.ai-post-badge {
  transition: opacity 0.2s ease;
  user-select: none;
}

/* ── Fade-in animation ── */
@keyframes ai-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: ai-fade-in 0.3s ease-out;
}

/* ── Dark mode overrides for new UX components ── */
@media (prefers-color-scheme: dark) {
  .ai-upgrade-modal .plan-row {
    border-color: #374151;
  }
  .ai-upgrade-modal .plan-row:hover {
    border-color: #2563eb;
  }
  .ai-upgrade-modal .plan-row.plan-recommended {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
  }
}
/* ============================================================================
   Creation Wizard Shared Styles
   Used by: Business, BlogSpace, Group creation wizards
   Components: CreationWizardStepper, AIAssistButton, EnhancedPhotoUpload,
               CreationTipsPanel
   ============================================================================ */
/* =========================== Stepper =========================== */
.creation-stepper__circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  color: white;
}

.creation-stepper__circle:disabled {
  cursor: not-allowed;
}

.creation-stepper__circle--pending {
  background-color: #e5e7eb;
  color: #9ca3af;
}

.dark .creation-stepper__circle--pending {
  background-color: #374151;
  color: #6b7280;
}

.creation-stepper__circle--completed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.creation-stepper__circle--active {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.creation-stepper__circle--indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  ring: 4px solid rgba(99, 102, 241, 0.2);
}

.creation-stepper__circle--lime {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.35);
}

.creation-stepper__circle--fuchsia {
  background: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.35);
}

.creation-stepper__label {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.creation-stepper__label--pending {
  color: #9ca3af;
}

.creation-stepper__label--completed {
  color: #10b981;
}

/* Hide desktop stepper on very small screens, show mobile bar */
@media (max-width: 639px) {
  .creation-stepper__track {
    display: none !important;
  }
}
@media (min-width: 640px) {
  .creation-stepper__mobile-bar {
    display: none !important;
  }
}
/* =========================== AI Assist Button =========================== */
.ai-assist-inline {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

.ai-assist-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  border: 1.5px solid #e5e7eb;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-assist-trigger:hover:not(:disabled) {
  border-color: #c084fc;
  background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
  transform: translateY(-1px);
}

.ai-assist-trigger:disabled {
  opacity: 0.6;
  cursor: wait;
}

.dark .ai-assist-trigger {
  border-color: #4b5563;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #c4b5fd;
}

.dark .ai-assist-trigger:hover:not(:disabled) {
  border-color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.ai-assist-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: aiBackdropFadeIn 0.15s ease-out;
}

/* Disable body scroll when AI modal is open */
body:has(.ai-assist-modal-backdrop) {
  overflow: hidden;
}

@keyframes aiBackdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ai-assist-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: min(90vw, 480px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: aiModalSlideIn 0.2s ease-out;
}

.dark .ai-assist-panel {
  border-color: #374151;
  background: #1f2937;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes aiModalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 12px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.ai-assist-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-assist-action-chip:hover:not(:disabled) {
  border-color: #c084fc;
  color: #7c3aed;
  background: #faf5ff;
}

.ai-assist-action-chip--active {
  border-color: #7c3aed !important;
  background: #f3e8ff !important;
  color: #7c3aed !important;
}

.dark .ai-assist-action-chip {
  border-color: #4b5563;
  background: #111827;
  color: #9ca3af;
}

.dark .ai-assist-action-chip:hover:not(:disabled) {
  border-color: #7c3aed;
  color: #c4b5fd;
  background: #1e1b4b;
}

.ai-assist-generate-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-assist-generate-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

.ai-assist-generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-assist-result {
  animation: aiResultFadeIn 0.3s ease-out;
}

@keyframes aiResultFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================== Enhanced Photo Upload =========================== */
.enhanced-upload__dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d1d5db;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.enhanced-upload__dropzone:hover {
  border-color: #9ca3af;
  background: rgba(0, 0, 0, 0.02);
}

.dark .enhanced-upload__dropzone {
  border-color: #4b5563;
}

.dark .enhanced-upload__dropzone:hover {
  border-color: #6b7280;
  background: rgba(255, 255, 255, 0.02);
}

.enhanced-upload--dragging .enhanced-upload__dropzone {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
  border-style: solid;
}

.enhanced-upload__dropzone--circle {
  width: 8rem;
  height: 8rem;
  border-radius: 9999px;
}

.enhanced-upload__dropzone--wide {
  width: 100%;
  min-height: 12rem;
  padding: 2rem;
}

.enhanced-upload__preview {
  position: relative;
  overflow: hidden;
}

.enhanced-upload__preview--circle {
  width: 8rem;
  height: 8rem;
  border-radius: 9999px;
}

.enhanced-upload__preview--wide {
  width: 100%;
  height: 12rem;
  border-radius: 0.75rem;
}

.enhanced-upload__preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}

.enhanced-upload__preview:hover .enhanced-upload__preview-overlay {
  opacity: 1;
}

.enhanced-upload__remove-btn,
.enhanced-upload__change-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: none;
  color: white;
  transition: all 0.15s ease;
}

.enhanced-upload__remove-btn {
  background: rgba(239, 68, 68, 0.8);
  cursor: pointer;
}

.enhanced-upload__remove-btn:hover {
  background: rgb(239, 68, 68);
  transform: scale(1.1);
}

.enhanced-upload__change-btn {
  background: rgba(255, 255, 255, 0.3);
}

.enhanced-upload__change-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* =========================== Creation Tips Panel =========================== */
.creation-tips {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(243, 244, 246, 0.8) 100%);
  overflow: hidden;
  transition: all 0.2s ease;
}

.dark .creation-tips {
  border-color: #374151;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(31, 41, 55, 0.8) 100%);
}

.creation-tips__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.creation-tips__header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.dark .creation-tips__header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.creation-tips__body {
  padding: 0 1rem 1rem 1rem;
  animation: tipsSlideDown 0.2s ease-out;
}

@keyframes tipsSlideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}
/* =========================== Creation Wizard Card =========================== */
.wizard-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dark .wizard-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.9) 100%);
}

/* Theme Variants */
.wizard-card--indigo {
  border-color: rgba(99, 102, 241, 0.15);
}

.wizard-card--lime {
  border-color: rgba(132, 204, 22, 0.15);
}

.wizard-card--fuchsia {
  border-color: rgba(217, 70, 239, 0.15);
}

/* =========================== Step Content Animation =========================== */
.step-content-enter {
  animation: stepFadeIn 0.35s ease-out;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* =========================== Form Group & Label =========================== */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.dark .form-label {
  color: #d1d5db;
}

/* =========================== Wizard Footer - Mobile Sticky =========================== */
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.dark .wizard-footer {
  border-top-color: #374151;
}

@media (max-width: 639px) {
  .wizard-footer--sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.75rem 1rem;
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  }
  .dark .wizard-footer--sticky {
    border-top-color: #374151;
    background: rgba(17, 24, 39, 0.95);
  }
  /* Add bottom padding to content when footer is sticky */
  .wizard-content--has-sticky-footer {
    padding-bottom: 5rem;
  }
}
/* =========================== Common Form Elements =========================== */
.creation-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  background-color: white;
  color: #111827;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.creation-form-input::placeholder {
  color: #9ca3af;
}

.creation-form-input:hover:not(:disabled) {
  border-color: #d1d5db;
}

.creation-form-input:focus {
  outline: none;
  border-color: var(--wizard-accent, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.creation-form-input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}

.dark .creation-form-input {
  background-color: #1f2937;
  border-color: #4b5563;
  color: white;
}

.dark .creation-form-input::placeholder {
  color: #6b7280;
}

.dark .creation-form-input:hover:not(:disabled) {
  border-color: #6b7280;
}

.dark .creation-form-input:focus {
  border-color: var(--wizard-accent, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Character counter */
.char-counter {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  line-height: 1.2;
  color: #b0b7c3;
  font-weight: 400;
}

.char-counter--warning {
  color: #f59e0b;
}

.char-counter--danger {
  color: #ef4444;
}

/* =========================== Wizard Buttons =========================== */
.wizard-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.wizard-btn--primary {
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.wizard-btn--primary:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.wizard-btn--primary.wizard-btn--indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.wizard-btn--primary.wizard-btn--indigo:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.wizard-btn--primary.wizard-btn--lime {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

.wizard-btn--primary.wizard-btn--lime:hover:not(:disabled) {
  background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
}

.wizard-btn--primary.wizard-btn--fuchsia {
  background: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
}

.wizard-btn--primary.wizard-btn--fuchsia:hover:not(:disabled) {
  background: linear-gradient(135deg, #c026d3 0%, #9333ea 100%);
}

.wizard-btn--secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.wizard-btn--secondary:hover:not(:disabled) {
  background-color: #e5e7eb;
}

.dark .wizard-btn--secondary {
  background-color: #374151;
  color: #d1d5db;
}

.dark .wizard-btn--secondary:hover:not(:disabled) {
  background-color: #4b5563;
}

/* ================================================================
   QUICK ACCESS SIDEBAR - Dark Mode Fix
================================================================ */
html.dark div[class*=user-name],
html.dark div.user-name {
  color: #ffffff !important;
  font-weight: 600 !important;
}

html.dark div[class*=user-subtitle],
html.dark div.user-subtitle {
  color: #e5e7eb !important;
}

/* ================================================================
   1. HIERARCHY-SPECIFIC COLOR SCHEMES
================================================================ */
:root {
  /* Country Level - Expansive & Authoritative */
  --location-country-primary: #1e3a8a;
  --location-country-secondary: #3b82f6;
  --location-country-accent: #60a5fa;
  --location-country-gradient-start: #1e40af;
  --location-country-gradient-end: #3b82f6;
  --location-country-glow: rgba(59, 130, 246, 0.4);
  --location-country-border: rgba(96, 165, 250, 0.2);
  /* State Level - Hub & Organized */
  --location-state-primary: #6b21a8;
  --location-state-secondary: #9333ea;
  --location-state-accent: #c084fc;
  --location-state-gradient-start: #7c3aed;
  --location-state-gradient-end: #a855f7;
  --location-state-glow: rgba(168, 85, 247, 0.4);
  --location-state-border: rgba(192, 132, 252, 0.2);
  /* Province Level - Dynamic & Connected */
  --location-province-primary: #0f766e;
  --location-province-secondary: #14b8a6;
  --location-province-accent: #5eead4;
  --location-province-gradient-start: #0d9488;
  --location-province-gradient-end: #2dd4bf;
  --location-province-glow: rgba(45, 212, 191, 0.4);
  --location-province-border: rgba(94, 234, 212, 0.2);
  /* City Level - Cool & Energetic */
  --location-city-primary: #0369a1;
  --location-city-secondary: #0ea5e9;
  --location-city-accent: #38bdf8;
  --location-city-gradient-start: #0284c7;
  --location-city-gradient-end: #0ea5e9;
  --location-city-glow: rgba(14, 165, 233, 0.4);
  --location-city-border: rgba(56, 189, 248, 0.2);
  /* Barangay Level - Warm & Cozy */
  --location-barangay-primary: #c2410c;
  --location-barangay-secondary: #f97316;
  --location-barangay-accent: #fb923c;
  --location-barangay-gradient-start: #ea580c;
  --location-barangay-gradient-end: #fb923c;
  --location-barangay-glow: rgba(251, 146, 60, 0.4);
  --location-barangay-border: rgba(251, 146, 60, 0.2);
  /* Community (Generic/Fallback) */
  --location-community-primary: #059669;
  --location-community-secondary: #10b981;
  --location-community-accent: #6ee7b7;
  --location-community-gradient-start: #059669;
  --location-community-gradient-end: #34d399;
  --location-community-glow: rgba(16, 185, 129, 0.4);
  --location-community-border: rgba(110, 231, 183, 0.2);
}

/* ================================================================
   2. GLASSMORPHISM CARD VARIANTS BY HIERARCHY
================================================================ */
/* Base glassmorphism card */
.location-card, .location-card-community, .location-card-barangay, .location-card-city, .location-card-province, .location-card-state, .location-card-country {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.location-card::before, .location-card-community::before, .location-card-barangay::before, .location-card-city::before, .location-card-province::before, .location-card-state::before, .location-card-country::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.location-card:hover, .location-card-community:hover, .location-card-barangay:hover, .location-card-city:hover, .location-card-province:hover, .location-card-state:hover, .location-card-country:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}
.location-card:hover::before, .location-card-community:hover::before, .location-card-barangay:hover::before, .location-card-city:hover::before, .location-card-province:hover::before, .location-card-state:hover::before, .location-card-country:hover::before {
  opacity: 1;
}

/* Country Level Card - Expansive */
.location-card-country {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--location-country-border);
}
.location-card-country::before {
  background: linear-gradient(90deg, var(--location-country-gradient-start), var(--location-country-gradient-end));
}
.location-card-country:hover {
  box-shadow: 0 12px 32px -8px var(--location-country-glow);
}
.location-card-country .location-card-header {
  background: linear-gradient(135deg, var(--location-country-gradient-start) 0%, var(--location-country-gradient-end) 100%);
}

/* State Level Card - Structured */
.location-card-state {
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.08) 0%, rgba(147, 51, 234, 0.05) 100%);
  border: 1px solid var(--location-state-border);
}
.location-card-state::before {
  background: linear-gradient(90deg, var(--location-state-gradient-start), var(--location-state-gradient-end));
}
.location-card-state:hover {
  box-shadow: 0 12px 32px -8px var(--location-state-glow);
}
.location-card-state .location-card-header {
  background: linear-gradient(135deg, var(--location-state-gradient-start) 0%, var(--location-state-gradient-end) 100%);
}

/* Province Level Card - Flowing */
.location-card-province {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(20, 184, 166, 0.05) 100%);
  border: 1px solid var(--location-province-border);
}
.location-card-province::before {
  background: linear-gradient(90deg, var(--location-province-gradient-start), var(--location-province-gradient-end));
}
.location-card-province:hover {
  box-shadow: 0 12px 32px -8px var(--location-province-glow);
}
.location-card-province .location-card-header {
  background: linear-gradient(135deg, var(--location-province-gradient-start) 0%, var(--location-province-gradient-end) 100%);
}

/* City Level Card - Dynamic */
.location-card-city {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.08) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1px solid var(--location-city-border);
}
.location-card-city::before {
  background: linear-gradient(90deg, var(--location-city-gradient-start), var(--location-city-gradient-end));
}
.location-card-city:hover {
  box-shadow: 0 12px 32px -8px var(--location-city-glow);
}
.location-card-city .location-card-header {
  background: linear-gradient(135deg, var(--location-city-gradient-start) 0%, var(--location-city-gradient-end) 100%);
}

/* Barangay Level Card - Intimate */
.location-card-barangay {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.08) 0%, rgba(249, 115, 22, 0.05) 100%);
  border: 1px solid var(--location-barangay-border);
}
.location-card-barangay::before {
  background: linear-gradient(90deg, var(--location-barangay-gradient-start), var(--location-barangay-gradient-end));
}
.location-card-barangay:hover {
  box-shadow: 0 12px 32px -8px var(--location-barangay-glow);
}
.location-card-barangay .location-card-header {
  background: linear-gradient(135deg, var(--location-barangay-gradient-start) 0%, var(--location-barangay-gradient-end) 100%);
}

/* Community Card (Fallback) */
.location-card-community {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid var(--location-community-border);
}
.location-card-community::before {
  background: linear-gradient(90deg, var(--location-community-gradient-start), var(--location-community-gradient-end));
}
.location-card-community:hover {
  box-shadow: 0 12px 32px -8px var(--location-community-glow);
}
.location-card-community .location-card-header {
  background: linear-gradient(135deg, var(--location-community-gradient-start) 0%, var(--location-community-gradient-end) 100%);
}

/* ================================================================
   3. GLOW EFFECTS FOR ACTIVE/TRENDING COMMUNITIES
================================================================ */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
/* Active Location Indicator */
.location-active {
  position: relative;
}
.location-active::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 18px;
  background: linear-gradient(45deg, currentColor, transparent);
  opacity: 0.3;
  animation: pulse-glow 2s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

/* Trending Location Badge */
.location-trending {
  position: relative;
  overflow: hidden;
}
.location-trending::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}
.location-trending .trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fb923c;
  backdrop-filter: blur(8px);
}
.location-trending .trending-badge::before {
  content: "🔥";
  font-size: 1rem;
}

/* Hot Community Glow */
.location-hot {
  animation: pulse-glow 3s ease-in-out infinite;
}
.location-hot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(249, 115, 22, 0.4));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* ================================================================
   4. HIERARCHY-SPECIFIC SPACING & TYPOGRAPHY
================================================================ */
/* Country Level - Expansive spacing */
.location-country-spacing {
  padding: 32px;
  gap: 24px;
}
.location-country-spacing .location-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.location-country-spacing .location-description {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* State Level - Structured spacing */
.location-state-spacing {
  padding: 28px;
  gap: 20px;
}
.location-state-spacing .location-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.location-state-spacing .location-description {
  font-size: 1rem;
  line-height: 1.65;
}

/* Province Level - Balanced spacing */
.location-province-spacing {
  padding: 24px;
  gap: 16px;
}
.location-province-spacing .location-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.location-province-spacing .location-description {
  font-size: 1rem;
  line-height: 1.6;
}

/* City Level - Compact spacing */
.location-city-spacing {
  padding: 20px;
  gap: 14px;
}
.location-city-spacing .location-title {
  font-size: 1.5rem;
  font-weight: 600;
}
.location-city-spacing .location-description {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Barangay Level - Intimate spacing */
.location-barangay-spacing {
  padding: 16px;
  gap: 12px;
}
.location-barangay-spacing .location-title {
  font-size: 1.25rem;
  font-weight: 600;
}
.location-barangay-spacing .location-description {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ================================================================
   5. LOCATION BANNER STYLES
================================================================ */
.location-banner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 16px;
}
.location-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}
.location-banner .banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.location-banner:hover .banner-image {
  transform: scale(1.05);
}
.location-banner .banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 2;
  color: white;
}

/* Hierarchy-specific banner heights */
.location-banner-country {
  height: 400px;
}

.location-banner-state {
  height: 360px;
}

.location-banner-province {
  height: 320px;
}

.location-banner-city {
  height: 280px;
}

.location-banner-barangay {
  height: 240px;
}

/* ================================================================
   6. UTILITY CLASSES
================================================================ */
/* Location level badge */
.location-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.badge-country {
  background: rgba(30, 58, 138, 0.2);
  border: 1px solid var(--location-country-border);
  color: var(--location-country-accent);
}

.badge-state {
  background: rgba(107, 33, 168, 0.2);
  border: 1px solid var(--location-state-border);
  color: var(--location-state-accent);
}

.badge-province {
  background: rgba(15, 118, 110, 0.2);
  border: 1px solid var(--location-province-border);
  color: var(--location-province-accent);
}

.badge-city {
  background: rgba(3, 105, 161, 0.2);
  border: 1px solid var(--location-city-border);
  color: var(--location-city-accent);
}

.badge-barangay {
  background: rgba(194, 65, 12, 0.2);
  border: 1px solid var(--location-barangay-border);
  color: var(--location-barangay-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .location-country-spacing,
  .location-state-spacing,
  .location-province-spacing,
  .location-city-spacing,
  .location-barangay-spacing {
    padding: 16px;
    gap: 12px;
  }
  .location-banner {
    height: 200px !important;
  }
  .location-banner-country,
  .location-banner-state,
  .location-banner-province,
  .location-banner-city,
  .location-banner-barangay {
    height: 200px;
  }
}
/* ================================================================
   MARKUP CONTENT STYLES
   Used by HTML content supplied from database
================================================================ */
.markup-string, .markup-post, .community-container, .city-container {
  font-family: Montserrat, "Helvetica Neue", sans-serif !important;
  font-size: 1.2em !important;
  line-height: normal;
}
.markup-string p, .markup-post p, .community-container p, .city-container p {
  margin-top: 4px !important;
  margin-bottom: 18px !important;
  font-family: "Inter";
  font-size: 0.95rem !important;
}
.markup-string .ai-title, .markup-string .location-title, .markup-post .ai-title, .markup-post .location-title, .community-container .ai-title, .community-container .location-title, .city-container .ai-title, .city-container .location-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.markup-string .ai-sub-title, .markup-string .sub-title-content, .markup-post .ai-sub-title, .markup-post .sub-title-content, .community-container .ai-sub-title, .community-container .sub-title-content, .city-container .ai-sub-title, .city-container .sub-title-content {
  color: #3e3e3e !important;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}
.markup-string .ai-slogan, .markup-string .slogan-title, .markup-post .ai-slogan, .markup-post .slogan-title, .community-container .ai-slogan, .community-container .slogan-title, .city-container .ai-slogan, .city-container .slogan-title {
  color: #60071f !important;
  font-family: "Inter" !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  font-weight: 500;
  font-size: 1.1rem;
}
.markup-string .ai-highlight, .markup-string .highlight-content, .markup-post .ai-highlight, .markup-post .highlight-content, .community-container .ai-highlight, .community-container .highlight-content, .city-container .ai-highlight, .city-container .highlight-content {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: #4c0519 !important;
}
.markup-string ul, .markup-post ul, .community-container ul, .city-container ul {
  list-style-type: disc !important;
  padding: 0px 20px;
  line-height: normal;
  margin-top: 0.5em;
  margin-bottom: 1.2em;
}
.markup-string ul li, .markup-post ul li, .community-container ul li, .city-container ul li {
  font-family: "Inter";
  font-size: 1rem;
  line-height: 1.3em;
  margin-bottom: 8px;
}
.markup-string ul li p, .markup-post ul li p, .community-container ul li p, .city-container ul li p {
  line-height: normal;
}
.markup-string ol, .markup-post ol, .community-container ol, .city-container ol {
  line-height: normal;
  padding: 0px 20px;
  margin-top: 0.5em;
  margin-bottom: 1.2em;
}
.markup-string ol li, .markup-post ol li, .community-container ol li, .city-container ol li {
  font-family: "Inter";
  font-size: 1rem;
  line-height: 1.3em;
  margin-bottom: 8px;
}
.markup-string ol li p, .markup-post ol li p, .community-container ol li p, .city-container ol li p {
  line-height: normal;
}

.markup-post {
  font-family: Inter, Montserrat, "Helvetica Neue", sans-serif !important;
}

/* ================================================================
   DARK MODE SUPPORT FOR AI-GENERATED CONTENT
================================================================ */
.dark .markup-string .ai-sub-title, .dark .markup-string .sub-title-content, .dark .markup-post .ai-sub-title, .dark .markup-post .sub-title-content, .dark .community-container .ai-sub-title, .dark .community-container .sub-title-content, .dark .city-container .ai-sub-title, .dark .city-container .sub-title-content {
  color: #d1d5db !important;
}
.dark .markup-string .ai-slogan, .dark .markup-string .slogan-title, .dark .markup-post .ai-slogan, .dark .markup-post .slogan-title, .dark .community-container .ai-slogan, .dark .community-container .slogan-title, .dark .city-container .ai-slogan, .dark .city-container .slogan-title {
  color: #fca5a5 !important;
}
.dark .markup-string .ai-highlight, .dark .markup-string .highlight-content, .dark .markup-post .ai-highlight, .dark .markup-post .highlight-content, .dark .community-container .ai-highlight, .dark .community-container .highlight-content, .dark .city-container .ai-highlight, .dark .city-container .highlight-content {
  color: #fbbf24 !important;
}

/* ================================================================
   PRIMARY BUTTON SHIMMER & GLOW ANIMATION
   Razor blade lighting effect from left to right on hover
================================================================ */
@keyframes shimmer-sweep {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  100% {
    transform: translateX(200%) skewX(-15deg);
  }
}
/* Apply shimmer effects to primary buttons only */
button.bg-primary-600:not([class*="/"]),
button.bg-primary-700:not([class*="/"]),
button[class*=from-primary-],
button[class*=bg-gradient-],
a.bg-primary-600:not([class*="/"]),
a.bg-primary-700:not([class*="/"]),
a[class*=from-primary-],
a[class*=bg-gradient-] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  /* Create the shimmer effect layer */
}
button.bg-primary-600:not([class*="/"])::before,
button.bg-primary-700:not([class*="/"])::before,
button[class*=from-primary-]::before,
button[class*=bg-gradient-]::before,
a.bg-primary-600:not([class*="/"])::before,
a.bg-primary-700:not([class*="/"])::before,
a[class*=from-primary-]::before,
a[class*=bg-gradient-]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%) skewX(-15deg);
  z-index: 1;
  pointer-events: none;
}
button.bg-primary-600:not([class*="/"]),
button.bg-primary-700:not([class*="/"]),
button[class*=from-primary-],
button[class*=bg-gradient-],
a.bg-primary-600:not([class*="/"]),
a.bg-primary-700:not([class*="/"]),
a[class*=from-primary-],
a[class*=bg-gradient-] {
  /* Trigger shimmer animation on hover - faster speed */
}
button.bg-primary-600:not([class*="/"]):hover::before,
button.bg-primary-700:not([class*="/"]):hover::before,
button[class*=from-primary-]:hover::before,
button[class*=bg-gradient-]:hover::before,
a.bg-primary-600:not([class*="/"]):hover::before,
a.bg-primary-700:not([class*="/"]):hover::before,
a[class*=from-primary-]:hover::before,
a[class*=bg-gradient-]:hover::before {
  animation: shimmer-sweep 0.5s ease-in-out;
}
button.bg-primary-600:not([class*="/"]),
button.bg-primary-700:not([class*="/"]),
button[class*=from-primary-],
button[class*=bg-gradient-],
a.bg-primary-600:not([class*="/"]),
a.bg-primary-700:not([class*="/"]),
a[class*=from-primary-],
a[class*=bg-gradient-] {
  /* Hover effects - no glow, just transform and color */
}
button.bg-primary-600:not([class*="/"]):hover,
button.bg-primary-700:not([class*="/"]):hover,
button[class*=from-primary-]:hover,
button[class*=bg-gradient-]:hover,
a.bg-primary-600:not([class*="/"]):not(.biz-nav-link):hover,
a.bg-primary-700:not([class*="/"]):not(.biz-nav-link):hover,
a[class*=from-primary-]:not(.biz-nav-link):hover,
a[class*=bg-gradient-]:not(.biz-nav-link):hover {
  transform: translateY(-1px);
  color: #ffe900 !important;
}
button.bg-primary-600:not([class*="/"]),
button.bg-primary-700:not([class*="/"]),
button[class*=from-primary-],
button[class*=bg-gradient-],
a.bg-primary-600:not([class*="/"]),
a.bg-primary-700:not([class*="/"]),
a[class*=from-primary-],
a[class*=bg-gradient-] {
  /* Ensure content stays on top of shimmer */
}
button.bg-primary-600:not([class*="/"]) > *,
button.bg-primary-700:not([class*="/"]) > *,
button[class*=from-primary-] > *,
button[class*=bg-gradient-] > *,
a.bg-primary-600:not([class*="/"]) > *,
a.bg-primary-700:not([class*="/"]) > *,
a[class*=from-primary-] > *,
a[class*=bg-gradient-] > * {
  position: relative;
  z-index: 2;
}

/* Add gradient background only to solid bg-primary buttons (not Tailwind gradients or opacity variants) */
button.bg-primary-600:not([class*="/"]):not([class*=from-]):not([class*=to-]):not([class*=gradient]),
button.bg-primary-700:not([class*="/"]):not([class*=from-]):not([class*=to-]):not([class*=gradient]),
a.bg-primary-600:not([class*="/"]):not([class*=from-]):not([class*=to-]):not([class*=gradient]),
a.bg-primary-700:not([class*="/"]):not([class*=from-]):not([class*=to-]):not([class*=gradient]) {
  background: linear-gradient(90deg, #005bc1 0%, #bf0d3e 100%) !important;
}

/* Dark mode adjustments */
.dark button.bg-primary-600:not([class*="/"]):hover,
.dark button.bg-primary-700:not([class*="/"]):hover,
.dark button[class*=from-primary-]:hover,
.dark button[class*=bg-gradient-]:hover,
.dark a.bg-primary-600:not([class*="/"]):not(.biz-nav-link):hover,
.dark a.bg-primary-700:not([class*="/"]):not(.biz-nav-link):hover,
.dark a[class*=from-primary-]:not(.biz-nav-link):hover,
.dark a[class*=bg-gradient-]:not(.biz-nav-link):hover {
  color: #ffe900 !important;
}
.dark {
  /* Add gradient background only to solid bg-primary buttons in dark mode */
}
.dark button.bg-primary-600:not([class*="/"]):not([class*=from-]):not([class*=to-]):not([class*=gradient]),
.dark button.bg-primary-700:not([class*="/"]):not([class*=from-]):not([class*=to-]):not([class*=gradient]),
.dark a.bg-primary-600:not([class*="/"]):not([class*=from-]):not([class*=to-]):not([class*=gradient]),
.dark a.bg-primary-700:not([class*="/"]):not([class*=to-]):not([class*=gradient]) {
  background: linear-gradient(90deg, #3387ff 0%, #ff3367 100%) !important;
}

/* ================================================================
   BUSINESS NAV LINK OVERRIDES
   Prevent shimmer/hover effects on business dashboard sidebar nav
================================================================ */
a.biz-nav-link,
a.biz-nav-link:hover {
  position: static !important;
  overflow: visible !important;
  transform: none !important;
  color: inherit !important;
}
a.biz-nav-link::before {
  display: none !important;
}
a.biz-nav-link > * {
  position: static !important;
  z-index: auto !important;
}

/* ================================================================
   NEW BADGE STYLES - Post View Indicators
   ================================================================
   Used for unviewed posts in Reports, Events, Lost & Found, Buy/Sell
   Shows "NEW" badge that auto-hides after 7 days or when viewed
================================================================ */
/* Base NEW badge styles */
.badge-new-urgent,
.badge-new-event,
.badge-new-alert,
.badge-new-market,
.badge-new-default {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Safety Reports - Red pulsing badge (highest urgency) */
.badge-new-urgent {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5), 0 4px 6px rgba(220, 38, 38, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5), 0 4px 6px rgba(220, 38, 38, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.7), 0 6px 10px rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
  }
}
/* Events - Blue gradient badge */
.badge-new-event {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.badge-new-event:hover {
  box-shadow: 0 6px 10px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* Lost & Found - Orange alert badge */
.badge-new-alert {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
}

.badge-new-alert:hover {
  box-shadow: 0 6px 10px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

/* Buy/Sell/Trade - Emerald market badge */
.badge-new-market {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.badge-new-market:hover {
  box-shadow: 0 6px 10px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* Default/Generic - Gray badge */
.badge-new-default {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(107, 114, 128, 0.3);
}

/* Dark mode adjustments */
.dark .badge-new-urgent {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6), 0 4px 6px rgba(239, 68, 68, 0.4);
}

.dark .badge-new-event {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 4px 6px rgba(96, 165, 250, 0.4);
}

.dark .badge-new-alert {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 4px 6px rgba(251, 146, 60, 0.4);
}

.dark .badge-new-market {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 4px 6px rgba(52, 211, 153, 0.4);
}

.dark .badge-new-default {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  box-shadow: 0 4px 6px rgba(156, 163, 175, 0.4);
}

/* ================================================================
   SYNCFUSION RICHTEXTEDITOR - LIGHT & DARK MODE
================================================================ */
/* RichTextEditor - Light Mode Base */
.e-richtexteditor {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.e-richtexteditor .e-rte-toolbar {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.e-richtexteditor .e-toolbar-item .e-tbar-btn,
.e-richtexteditor .e-toolbar-item .e-btn,
.e-richtexteditor .e-toolbar-item button {
  color: #374151 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.e-richtexteditor .e-toolbar-item .e-tbar-btn:hover,
.e-richtexteditor .e-toolbar-item .e-btn:hover,
.e-richtexteditor .e-toolbar-item button:hover {
  background-color: #e5e7eb !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.e-richtexteditor .e-toolbar-item .e-tbar-btn.e-active,
.e-richtexteditor .e-toolbar-item .e-btn.e-active,
.e-richtexteditor .e-toolbar-item .e-tbar-btn:focus,
.e-richtexteditor .e-toolbar-item .e-btn:focus {
  background-color: #d1d5db !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.e-richtexteditor .e-rte-content {
  background-color: #ffffff;
  color: #111827;
}

/* RTE Loading shimmer */
.rte-loading-placeholder {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.rte-loading-toolbar {
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.rte-loading-toolbar-item {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  background: #e5e7eb;
  animation: rteShimmer 1.5s infinite;
}

.rte-loading-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rte-loading-line {
  height: 0.75rem;
  border-radius: 0.25rem;
  background: #e5e7eb;
  animation: rteShimmer 1.5s infinite;
}

.rte-loading-line:nth-child(1) {
  width: 60%;
  animation-delay: 0s;
}

.rte-loading-line:nth-child(2) {
  width: 80%;
  animation-delay: 0.15s;
}

.rte-loading-line:nth-child(3) {
  width: 45%;
  animation-delay: 0.3s;
}

@keyframes rteShimmer {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.dark .rte-loading-placeholder {
  border-color: #374151;
}

.dark .rte-loading-toolbar {
  background: #1f2937;
  border-bottom-color: #374151;
}

.dark .rte-loading-toolbar-item,
.dark .rte-loading-line {
  background: #374151;
}

/* RichTextEditor Toolbar - Dark Mode */
.dark .e-richtexteditor {
  border-color: #374151;
}

.dark .e-richtexteditor .e-rte-toolbar {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

/* RichTextEditor Content Area - Dark Mode */
.dark .e-richtexteditor .e-rte-content {
  background-color: #111827 !important;
  color: #f3f4f6 !important;
}

/* Dropdown Popups - Dark Mode */
.dark .e-dropdown-popup,
.dark .e-popup.e-popup-open {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

/* Dropdown List Items - Dark Mode */
.dark .e-dropdown-popup .e-list-item,
.dark .e-popup .e-list-item {
  background-color: #1f2937 !important;
  color: #f3f4f6 !important;
  border-color: #374151 !important;
}

/* Dropdown List Items Hover - Dark Mode */
.dark .e-dropdown-popup .e-list-item:hover,
.dark .e-popup .e-list-item:hover {
  background-color: #374151 !important;
  color: #ffffff !important;
}

/* Dropdown List Items Active/Selected - Dark Mode */
.dark .e-dropdown-popup .e-list-item.e-active,
.dark .e-popup .e-list-item.e-active {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* Toolbar Buttons - Dark Mode */
.dark .e-richtexteditor .e-rte-toolbar,
.dark .e-richtexteditor .e-rte-toolbar * {
  color: #e5e7eb !important;
}

.dark .e-richtexteditor .e-toolbar-item .e-tbar-btn,
.dark .e-richtexteditor .e-toolbar-item .e-btn,
.dark .e-richtexteditor .e-toolbar-item button,
.dark .e-richtexteditor .e-toolbar-item .e-split-btn {
  color: #e5e7eb !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Template items (Font Name, Font Size dropdowns) */
.dark .e-richtexteditor .e-toolbar-item.e-template .e-split-btn,
.dark .e-richtexteditor .e-toolbar-item.e-template input,
.dark .e-richtexteditor .e-toolbar-item.e-template .e-input,
.dark .e-richtexteditor .e-toolbar-item.e-template span {
  color: #e5e7eb !important;
  background-color: transparent !important;
}

.dark .e-richtexteditor .e-toolbar-item .e-tbar-btn:hover,
.dark .e-richtexteditor .e-toolbar-item .e-btn:hover,
.dark .e-richtexteditor .e-toolbar-item button:hover,
.dark .e-richtexteditor .e-toolbar-item .e-split-btn:hover {
  background-color: #374151 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Prevent color-picker swatch button from overriding hover */
.dark .e-richtexteditor .e-rte-font-color:hover,
.dark .e-richtexteditor .e-rte-background-color:hover {
  background-color: #374151 !important;
  box-shadow: none !important;
}

.dark .e-richtexteditor .e-toolbar-item .e-tbar-btn.e-active,
.dark .e-richtexteditor .e-toolbar-item .e-btn.e-active,
.dark .e-richtexteditor .e-toolbar-item .e-tbar-btn:focus,
.dark .e-richtexteditor .e-toolbar-item .e-btn:focus {
  background-color: #4b5563 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Dropdown Base - Dark Mode */
.dark .e-popup.e-ddl .e-dropdownbase {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

/* Input Group inside Dropdowns - Dark Mode */
.dark .e-ddl.e-popup .e-input-group {
  background-color: #374151 !important;
  border-color: #4b5563 !important;
}

.dark .e-ddl.e-popup .e-input-group .e-input {
  color: #f3f4f6 !important;
}

/*# sourceMappingURL=webney-core.css.map */
