/* Container & Layout */
.wn-dropdown {
  /*width: 400px;*/
  min-width: 400px;
  overflow: hidden;
}

#wn-component {
    align-content: center;
}

.wn-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    
    padding-inline-end: 2px;
    padding-inline-start: 10px;
    padding-block: 2px;
    
    font-weight: 500;
    font-size: 0.75rem;
    
    position: relative;
    z-index: 1; 
    border: 1px solid rgba(0,0,0,0.1);
}

/* 2. The Pulse Effect */
.wn-button.has-updates::after {
    content: '';
    position: absolute;
    z-index: -1; /* Place it behind the button */
    
    /* Match the button's shape and position */
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    border-radius: 50rem; /* Matches Bootstrap's 'rounded-pill' */
    
    /* The color of the glow */
    background-color: rgba(255, 255, 255, 0.75); /* Same blue as your badge */
    
    /* The Animation */
    animation: wn-pulse-animation 2s infinite;
}

/* 3. The Animation Keyframes */
@keyframes wn-pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.35); /* Expands to 135% size */
        opacity: 0;             /* Fades out completely */
    }
}

.wn-rounded-pill {
    border-radius: 999px;
}

.wn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    font-size: 0.7rem;
    padding: 0;
}

.wn-list-scroll {
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Icons */
.wn-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Theme Colors (15% opacity backgrounds) */
.wn-theme-feature { background-color: rgba(0, 123, 255, 0.15); color: #007bff; }
.wn-theme-improvement { background-color: rgba(40, 167, 69, 0.15); color: #28a745; }
.wn-theme-bug { background-color: rgba(220, 53, 69, 0.15); color: #dc3545; }
.wn-theme-announcement { background-color: rgba(111, 66, 193, 0.15); color: #6f42c1; }

/* Item States */
.wn-item {
  cursor: pointer;
  background-color: #fefefe;
  transition: background-color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  /*border-bottom: 1px solid #e9ecef;*/
  
  border-radius: 16px;
  margin: 8px;
}

.wn-item:last-child {
  border-bottom: none;
}

/* Unread State */
.wn-unread {
  background-color: #fcfcfc; /* Subtle contrast */
  /*border-left: 3px solid #007bff;*/
}

.wn-unread.wn-theme-feature { background-color: rgba(0, 123, 255, 0.04); color: inherit; }
.wn-unread.wn-theme-improvement { background-color: rgba(40, 167, 69, 0.04); color: inherit; }
.wn-unread.wn-theme-bug { background-color: rgba(220, 53, 69, 0.04); color: inherit; }
.wn-unread.wn-theme-announcement { background-color: rgba(111, 66, 193, 0.04); color: inherit; }

.wn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #007bff;
    opacity: 0.75;
    display: none;
}

.wn-unread .wn-dot {
    display: inline-block;
}

.wn-item:hover {
  background-color: #efefef;
}

.wn-unread .wn-title {
  font-weight: 700 !important;
  color: #212529 !important;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .wn-dropdown {
    width: 100%;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
  }
}


/* 1. Base Badge Structure */
/* 2. Pill Modifier */
.wn-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    font-size: 0.75rem; /* Readable small text */
    font-weight: 700;
    line-height: 1;
    
    /* Shape & Size */
    padding: 0.35em 0.8em; /* Slightly wider padding for the outlined look */
    min-width: 1.8em;      /* Ensures single numbers aren't too thin */
    
    /* The Stroke Setup */
    border: 1px solid transparent; /* Prepare for the colored border */
    
    vertical-align: middle;
    transition: all 0.2s ease-in-out;
    border-radius: 999px;
}

/* 3. Theme Variants (Text + Tint Bg + Border) */

/* Blue (Feature) */
.wn-badge-pill.wn-theme-feature {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1); /* Very light blue */
    border-color: rgba(0, 123, 255, 0.2);      /* Subtle border */
}

/* Green (Improvement) */
.wn-badge-pill.wn-theme-improvement {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
}

/* Red (Bug / Unread Count) */
.wn-badge-pill.wn-theme-bug {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

/* Purple (Announcement) */
.wn-badge-pill.wn-theme-announcement {
    color: #6f42c1;
    background-color: rgba(111, 66, 193, 0.1);
    border-color: rgba(111, 66, 193, 0.2);
}
