/* UPADDIS Marketing & Outreach Hub Stylesheet (v2.0) */

/* Custom smooth scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sidebar navigation item active state */
.sidebar-nav-item.active {
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.sidebar-nav-item.active i {
  color: #10b981;
}

/* Mobile bottom nav active state */
.mob-nav-item.active {
  color: #10b981;
}

.mob-nav-item.active i {
  color: #10b981;
  transform: translateY(-2px);
}

/* Button micro-interactions */
button:active:not(:disabled) {
  transform: scale(0.97);
}

/* Smooth tab fade-in */
.tab-content {
  animation: fadeInTab 0.16s ease-in-out;
}

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

/* Shake animation for login error */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* Status Pulse Rings */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 9999px;
  border: 2px solid currentColor;
  opacity: 0.4;
  animation: pingRing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingRing {
  75%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Chat message bubbles */
.chat-bubble-in {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-bubble-out {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-out-tg {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Floating Action Bar Slide-Up */
#selection-action-bar {
  animation: slideUpBar 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Notification badge ping */
.badge-ping {
  animation: badgePing 2s infinite;
}

@keyframes badgePing {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Reminder Card styling */
.reminder-card {
  transition: all 0.2s ease-in-out;
}

.reminder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Reminder overdue pulse animation */
.reminder-overdue {
  border-color: #f87171 !important;
  background-color: #fffaf0;
}

/* Active filter pill for reminders */
.rem-filter-pill.active {
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Memo card pinned glow */
.memo-card-pinned {
  border-left: 3px solid #6366f1;
  background-color: #f8faff;
}

/* Reports & Analytics Print Styling */
@media print {
  aside,
  nav,
  header,
  #selection-action-bar,
  #toast,
  .print-hide,
  button {
    display: none !important;
  }
  .md\:pl-64 {
    padding-left: 0 !important;
  }
  body, main {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  #tab-reports {
    display: block !important;
  }
  .card-print-clean {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}
