/* Sidebar Styles */
#sidebar {
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.04) !important;
  min-height: 0;
}

/* Fix for specific widget containers */
.bg-white.rounded-2xl {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Ensure content doesn't stretch */
.bg-white.rounded-2xl > div {
  flex: 0 0 auto;
  min-height: 0;
}

/* Fix for horoscope widget */
.bg-gradient-to-r + div {
  flex: 0 0 auto !important;
}

/* Fix for forex widget */
.from-green-500 + div {
  flex: 0 0 auto !important;
}

/* Fix for On This Day widget */
.from-indigo-500 + div {
  flex: 0 0 auto !important;
  min-height: 0;
}

/* Fix for calendar widget specifically */
#right-sidebar .widget_calendar {
  background: white;
}

/* Fix for weather widget */
#right-sidebar #weather-info {
  background: transparent;
}

/* Make sure widgets don't stretch */
#right-sidebar .widget > * {
  flex: 0 0 auto;
}

/* Fix for any full-height elements */
#right-sidebar .widget > *:last-child {
  margin-bottom: 0;
}

/* Ensure widget titles have proper spacing */
#right-sidebar .widget-title {
  padding: 1.25rem 1.25rem 0.75rem;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}
  padding: 0.15rem 0.4rem;
  margin-left: auto;
}

/* Scrollbar styling */
#sidebar::-webkit-scrollbar {
  width: 6px;
}

#sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  #sidebar {
    width: 280px;
  }
  
  #sidebar[aria-hidden="true"] {
    transform: translateX(-100%);
  }
}

/* Animation for sidebar overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar list headings */
#sidebar .sidebar-heading {
    border-top-left-radius: 0.5rem; /* 8px */
    border-top-right-radius: 0.5rem; /* 8px */
    background-color: #eef2ff; /* Subtle blue background */
    padding: 0.75rem 1rem; /* 12px top/bottom, 16px left/right */
    margin-bottom: 0.5rem; /* Add some space below the heading */
}

/* Core service icons in the sidebar */
.sidebar-core-service-icon {
    border-radius: 1rem !important; /* 16px */
}



