/* Column style overrides */
#columns .column,
.column,
div.column {
    background-color: rgba(33, 37, 41, 0.4) !important;
    border: 2px solid var(--bs-primary) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

#columns .column:hover,
.column:hover,
div.column:hover {
    box-shadow: 0 0 25px rgba(var(--bs-primary-rgb), 0.3) !important;
}

#columns .add-column,
.add-column,
div.add-column {
    background-color: rgba(33, 37, 41, 0.4) !important;
    border: 2px solid var(--bs-primary) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

#columns .add-column:hover,
.add-column:hover,
div.add-column:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.2) !important;
    box-shadow: 0 0 25px rgba(var(--bs-primary-rgb), 0.5) !important;
    transform: scale(1.02) !important;
}

/* Card style overrides - make cards translucent */
.card,
.card.chat-card,
div.card,
div.chat-card {
    background-color: rgba(33, 37, 41, 0.4) !important;
    background: rgba(33, 37, 41, 0.4) !important;
    backdrop-filter: blur(3px) !important;
    transition: all 0.3s ease !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Preserve hover effects */
.card:hover,
.card.chat-card:hover,
div.card:hover,
div.chat-card:hover {
    background-color: rgba(33, 37, 41, 0.4) !important;
}

/* Ensure special card states remain visible */
.card.active-chat::before,
.card.most-recently-visited::before,
.card.card-color-green::before,
.card.card-color-yellow::before,
.card.card-color-red::before {
    opacity: 0.8 !important; /* Slightly reduce opacity to work with translucent background */
}

* Ensure special card states remain visible */
.card.previously-visited::before {
    opacity: 0.7 !important; /* Slightly reduce opacity to work with translucent background */
}

/* Ensure colored cards maintain their identity but with transparency */
.card.card-color-green {
    background-color: rgba(25, 135, 84, 0.35) !important; /* Increased opacity from 0.25 to 0.35 */
    background: rgba(25, 135, 84, 0.35) !important;
}

.card.card-color-yellow {
    background-color: rgba(255, 193, 7, 0.35) !important; /* Increased opacity from 0.25 to 0.35 */
    background: rgba(255, 193, 7, 0.35) !important;
}

.card.card-color-red {
    background-color: rgba(220, 53, 69, 0.35) !important; /* Increased opacity from 0.25 to 0.35 */
    background: rgba(220, 53, 69, 0.35) !important;
}

/* Ensure card text remains readable with proper hierarchy */
.card .card-title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    color: var(--bs-light) !important; /* Brighter white for titles */
}

.card .card-text,
.card .card-body p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    color: rgba(255, 255, 255, 0.95) !important; /* Slightly more subtle for descriptions */
}

/* Add a subtle inner shadow to cards for better depth perception */
.card,
.card.chat-card {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* More specific rule for cards inside columns */
.column .card,
.column .card.chat-card,
#columns .column .card,
#columns .column .card.chat-card {
    background: rgba(133, 137, 141, 0.2) !important; /* Use 'background' instead of 'background-color' */
    background-image: none !important; /* Ensure no background images */
    backdrop-filter: none !important; /* Remove backdrop filter to prevent stacking with column's filter */
    border-left: 3px solid rgba(255, 255, 255, 0.1) !important; /* Add a subtle left border for depth */
}

/* Specific hover effect for cards inside columns */
.column .card:hover,
.column .card.chat-card:hover,
#columns .column .card:hover,
#columns .column .card.chat-card:hover {
    background-color: rgba(33, 37, 41, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Ensure colored cards still work with transparency */
.column .card.card-color-green,
#columns .column .card.card-color-green {
    background: rgba(25, 135, 84, 0.2) !important;
}

.column .card.card-color-yellow,
#columns .column .card.card-color-yellow {
    background: rgba(255, 193, 7, 0.2) !important;
}

.column .card.card-color-red,
#columns .column .card.card-color-red {
    background: rgba(220, 53, 69, 0.2) !important;
}

/* Add-card-container style overrides */
.add-card-container,
.column .add-card-container,
#columns .column .add-card-container {
    background-color: rgba(33, 37, 41, 0.2) !important; /* Reduced opacity from 0.4 to 0.2 */
    background: rgba(33, 37, 41, 0.2) !important; /* Using 'background' property as well */
    background-image: none !important; /* Ensure no background images */
    border: 2px solid var(--bs-primary) !important;
    border-radius: 10px !important;
    backdrop-filter: none !important; /* Remove backdrop filter to prevent stacking with column's filter */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1) !important; /* Add inner shadow */
    transition: all 0.3s ease !important;
}

/* Hover effect for add-card-container */
.add-card-container:hover,
.column .add-card-container:hover,
#columns .column .add-card-container:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.2) !important;
    box-shadow: 0 0 25px rgba(var(--bs-primary-rgb), 0.5) !important;
    transform: scale(1.02) !important;
}

/* Ensure text is visible */
.add-card-container .text-muted,
.column .add-card-container .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Preserve button styling */
.add-card-container .btn,
.column .add-card-container .btn {
    transition: all 0.3s ease !important;
}

.add-card-container:hover .btn,
.column .add-card-container:hover .btn {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Featured board translucency */
.featured-board,
#boardList button.featured-board,
#boardList .featured-board,
.list-group-item.featured-board,
#boardList button.list-group-item.featured-board {
    background: rgba(33, 37, 41, 0.2) !important;
    background-color: rgba(33, 37, 41, 0.2) !important;
    background-image: none !important;
    border: 2px solid var(--bs-primary) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    color: var(--bs-light) !important; /* Bright white for featured board */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important; /* Ensure full opacity for featured board */
}

/* Hover effect for featured board */
.featured-board:hover,
#boardList button.featured-board:hover,
#boardList .featured-board:hover,
.list-group-item.featured-board:hover,
#boardList button.list-group-item.featured-board:hover {
    background: rgba(var(--bs-primary-rgb), 0.15) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
    box-shadow: 0 0 25px rgba(var(--bs-primary-rgb), 0.3) !important;
    transform: translateY(-1px) !important;
}

    /* Removed global brightening - only individual items should brighten on hover */

/* Board list item translucency - only for non-featured items */
.list-group-item:not(.featured-board),
#boardList .list-group-item:not(.featured-board),
#boardList button:not(.featured-board) {
    background: rgba(33, 37, 41, 0.2) !important;
    background-color: rgba(33, 37, 41, 0.2) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(3px) !important;
    transition: all 0.3s ease !important;
    color: var(--bs-dark-border-subtle) !important;
/*    opacity: 0.7 !important; */ /* Slightly reduce opacity to work with translucent background */
}

/* Hover effect for board list items */
.list-group-item:hover,
#boardList .list-group-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.1) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb), 0.2) !important;
}

/* Specifically target the text span on hover */
.list-group-item:hover > span,
#boardList .list-group-item:hover > span {
    color: var(--bs-light) !important;
/*    opacity: 0.9 !important; */
}

/* Active state for board list items */
.list-group-item.active,
#boardList .list-group-item.active,
.board-list .list-group-item.active {
    background: rgba(var(--bs-primary-rgb), 0.15) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.3) !important;
    box-shadow: 0 0 12px rgba(var(--bs-primary-rgb), 0.25) !important;
}

/* Direct override for boards.css styles */
#boardList button.featured-board {
    background-color: rgba(33, 37, 41, 0.2) !important;
    border: 2px solid var(--bs-primary) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

/* Change the glowing left border to purple */
#boardList button.featured-board::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: var(--bs-primary) !important; /* Purple background */
    border-radius: 2px 0 0 2px !important;
    box-shadow: 0 0 12px rgba(var(--bs-primary-rgb), 0.7) !important,
                0 0 20px rgba(var(--bs-primary-rgb), 0.4) !important; /* Extended purple glow */
    transition: background-color 0.2s ease !important;
}

#boardList button.featured-board:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
    box-shadow: 0 0 25px rgba(var(--bs-primary-rgb), 0.3) !important;
}

/* Restore scrolling highlight behavior */
#boardList:has(::-webkit-scrollbar-thumb:hover) button:not(.featured-board),
#boardList:has(::-webkit-scrollbar-thumb:hover) .list-group-item:not(.featured-board) {
    /* Removed background color changes */
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb), 0.2) !important;
}

/* Specifically target the text span when scrolling */
#boardList:has(::-webkit-scrollbar-thumb:hover) button:not(.featured-board) > span,
#boardList:has(::-webkit-scrollbar-thumb:hover) .list-group-item:not(.featured-board) > span {
    color: var(--bs-light) !important;
    opacity: 1 !important;
}

/* Add the left border indicator effect when scrollbar is hovered */
#boardList:has(::-webkit-scrollbar-thumb:hover) button:not(.featured-board)::before {
    background: rgba(255, 255, 255, 0.5) !important; /* Light grey instead of purple */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important; /* Light grey glow */
}

/* Removed container-level hover effects - items should only brighten when directly hovered */
/* Previously: #boardList:hover would brighten all inactive items when hovering anywhere on the container */

/* Prevent icons in non-active boards from brightening when featured board is hovered */
#boardList:has(button.featured-board:hover) button:not(.featured-board) .board-list-menu,
#boardList:has(button.featured-board:hover) button:not(.featured-board) .board-robot-icon,
#boardList:has(button.featured-board:hover) button:not(.featured-board) .star-icon,
#boardList:has(button.featured-board:hover) button:not(.featured-board) .bi-three-dots-vertical,
#boardList:has(button.featured-board:hover) button:not(.featured-board) .dropdown-toggle::after {
    color: var(--bs-dark-border-subtle) !important;
    opacity: 0.7 !important;
}

/* Apply the same hover effect when the boardList is being scrolled */
#boardList.is-scrolling button:not(.featured-board),
#boardList.is-scrolling .list-group-item:not(.featured-board) {
    /* Removed background color changes */
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb), 0.2) !important;
}

/* Apply text styling when the boardList is being scrolled */
#boardList.is-scrolling button:not(.featured-board) > span,
#boardList.is-scrolling .list-group-item:not(.featured-board) > span {
    color: var(--bs-light) !important;
    opacity: 1 !important;
}

/* Apply left border indicator when the boardList is being scrolled */
#boardList.is-scrolling button:not(.featured-board)::before {
    background: rgba(255, 255, 255, 0.5) !important; /* Light grey instead of purple */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important; /* Light grey glow */
}

/* Fix dark dropdowns in board list - make them match the featured board's dropdown */
#boardList .dropdown-menu-dark {
    background: rgba(33, 37, 41, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35) !important;
}

#boardList .dropdown-menu-dark .dropdown-item {
    color: var(--bs-light) !important;
    opacity: 0.9;
}

#boardList .dropdown-menu-dark .dropdown-item:hover {
    background-color: var(--bs-primary) !important;
    color: var(--bs-light) !important;
    opacity: 1;
}

#boardList .dropdown-menu-dark .dropdown-item .menu-icon {
    opacity: 0.7;
}

#boardList .dropdown-menu-dark .dropdown-item:hover .menu-icon {
    opacity: 1;
}