.left-sidebar {
    color: var(--text-primary);
    padding: 12px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 8px;
    min-height: 600px;
    background: transparent;
    min-width: 0;        /* never blow out the grid cell */
    overflow-x: hidden;
}

/* Block */
.sidebar-block {
    margin-bottom: 10px;
}

/* Pinned leagues + My Teams block background & spacing */
.pinned-teams-block {
    background: var(--bg-secondary);
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 16px; /* gap below */
}

/* Grouped Block */
.unified-block {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Titles */
.block-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-tertiary);
    margin: 6px 0 4px;
    letter-spacing: 0.05em;
}


/* Live green blinking dot */
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 50%;
  background-color: #22c55e; /* green */
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.live-dot.blink {
  animation: blinkLive 1.5s infinite ease-in-out;
}

@keyframes blinkLive {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* List Reset */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#popularLeaguesList li {
    padding: 4px 0;
}


/* Items */
.sidebar-item,
.sidebar-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:4px 0;
    cursor: pointer;
}

.sidebar-item:hover,
.sidebar-list li:hover {
    color: var(--accent-green);
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0px 0; /* controls gap inside each row */
}


.football-leagues-block .sidebar-item.dropdown {
    margin-bottom: 0px;
}


.dropdown-header .label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-item.dropdown.has-active-child .dropdown-header .label {
    color: #f59e0b;
}


/* Right Side */
.right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto; /* Push the right side items all the way to right */
    min-width: max-content;
}

/* Counter */
.count {
    font-size: 11px;
    color: var(--accent-yellow);
    font-weight: 700;
}

/* Updated Dropdown for pushing content, not absolute */
.sidebar-item.dropdown {
    position: relative;
    display: block;
}

/* Dropdown body inside normal flow (pushes content below down) */
.sidebar-item.dropdown .dropdown-body {
    background: transparent;
    border-radius: 1px;
    padding: 2px;
    margin-top: 6px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* =========================================
   DROPDOWN ARROW — SHOW ON HOVER ONLY
   ========================================= */

/* Hide arrow by default */
.sidebar-item .fa-angle-down {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show arrow on row hover */
.sidebar-item:hover .fa-angle-down {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Keep arrow visible when dropdown is OPEN */
.sidebar-item.dropdown.open .fa-angle-down {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) rotate(180deg);
}


/* Expand dropdown body when open */
.sidebar-item.dropdown.open .dropdown-body {
    max-height: none; /* enough for content */
    overflow: visible;
    opacity: 1;
}

/* THIS IS FOR MOBILE STYLING ONLY - DO NOT DELETE
/* Expand dropdown body when open */
/* .sidebar-item.dropdown.open .dropdown-body {
    max-height: 70vh; /* enough for content */
    /* overflow-y: auto;
    opacity: 1;
} */ 

/* .dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.dropdown-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.dropdown-body::-webkit-scrollbar-track {
    background: transparent;
} */

/* Dropdown body links */
.sidebar-item.dropdown .dropdown-body a {
    color: var(--text-primary);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.sidebar-item.dropdown .dropdown-body a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-item.dropdown .dropdown-body .tool-sidebar-disabled {
    min-width: 0;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.72;
    user-select: none;
}

.tool-sidebar-disabled .tool-nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-sidebar-disabled .tool-coming-soon-badge {
    margin-left: auto;
}

/* Original Active Pattern (Gold/Orange) */
.sidebar-item.dropdown .dropdown-body a.sidebar-active {
    color: #f59e0b;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
}

/* Counts pushed to the right */
.dropdown-body a .count {
    font-size: 10px;
    margin-left: auto; /* Pushes count to the far right */
    color: var(--accent-yellow, #fbbf24);
}

/* Arrow rotation on open */
.dropdown .fa-angle-down {
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown.open .fa-angle-down {
    transform: rotate(180deg);
}

/* PREMIUM CROWN */
.premium-crown {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.premium-crown i {
    background: linear-gradient(45deg, 
      #FFD700 0%, 
      #FFED4E 25%, 
      #FFF9AA 50%, 
      #FFED4E 75%, 
      #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.1em;
    position: relative;
    display: inline-block;
    text-shadow: 
      0 1px 2px rgba(0,0,0,0.1),
      0 0 8px rgba(255, 215, 0, 0.3);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.premium-crown::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0) 70%
    );
    border-radius: 50%;
    transform: rotate(45deg);
    pointer-events: none;
}

/* Optional animation for extra premium feel */
.premium-crown:hover i {
    animation: crown-shine 1.5s ease-in-out;
}

@keyframes crown-shine {
    0%, 100% { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)); }
    50% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
}

/* Pin */
.league-pin {
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 12px;
    transition: color 0.3s ease;
}

.league-pin:hover {
    color: #3b82f6;
}

.league-pin.active {
    color: #22c55e;
}

/* Ad */
.sidebar-ad {
    height: 180px;
    background: var(--bg-secondary);
    margin: 12px 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 15px;
}

/* Ad block with margin and no background or custom background */
.ad-block {
    margin-bottom: 16px; /* gap below */
}

/* Add Team Button */
.add-team-btn {
    width: 100%;
    background: #1e40af;
    border: none;
    color: #fff;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-team-btn:hover {
    background: #1e3a8a;
}

/* Show More Button */
.show-more-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.show-more-btn:active {
    transform: translateY(1px);
}

/* Football + Popular Leagues background & spacing */
.football-leagues-block {
    background: var(--bg-secondary);
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 16px; /* gap below */
}

/* Countries + Other Competitions block background & spacing */
.countries-block {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 3px;
    margin-bottom: 100px; /* gap below */
}

.other-countries {
  background: var(--bg-secondary);
  padding: 12px;
  border-radius: 3px;
}
