.btn-listbutton {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    border: 2.5px solid rgba(200, 200, 200, 0.35);
    color: #222;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    cursor: pointer;
}

/* Not flagged: Hover/Focus = solid green */
.btn-listbutton:focus:not(.flagged) {
    background: #0aaa0a;
    border-color: #000000;
    color: #222;
}

.btn-listbutton:hover:not(.flagged) {
    background: #ffffff;
    border-color: #0aaa0a;
    color: #222;
}



/* Flagged: default */
.btn-listbutton.flagged {
    background: #ff3720;
    border: 2.5px solid #ff3720;
    color: #fff;
}



/* Flagged: Hover/Focus = solid red */
.btn-listbutton.flagged:focus {
    background: #ff0000;
    border-color: #000000;
    color: #fff;
}

.btn-listbutton.flagged:hover {
    background: #fff;
    border-color: #ff0000;
    color: #000;
}




/* Flag icon circle - default */
.flag-btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    /* background: rgba(255, 4, 0, 0.5); */
    background: rgb(213, 213, 213);
    color: #fff;
    /* box-shadow: 0 4px 12px rgba(229, 57, 53, 0.12); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, border 0.2s;
}

/* Flag icon itself - default */
.flag-btn-circle i {
    font-size: 1.2rem;
    color: #fff;
    /*filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));*/
    transition: color 0.2s;
}

.btn-listbutton.flagged .flag-btn-circle {
    background: rgba(255, 4, 0, 0.5);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.12);
}





/* Not flagged: Hover/Focus - white circle, black flag */
.btn-listbutton:focus:not(.flagged) .flag-btn-circle {
    background: #ffffff;
    border: 2px solid #0aaa0a;
    box-shadow: none;
}

.btn-listbutton:hover:not(.flagged) .flag-btn-circle {
    background: #0aaa0a;
    border: 2px solid #0aaa0a;
}

.btn-listbutton:focus:not(.flagged) .flag-btn-circle i {
    color: #ffffff;
    box-shadow: none;
}

.btn-listbutton:hover:not(.flagged) .flag-btn-circle i {
    color: #0aaa0a;
    box-shadow: none;
}


/* background: rgba(255, 4, 0, 0.5); */
/* Flagged: Hover/Focus - white circle, red flag */
.btn-listbutton.flagged:focus .flag-btn-circle,
.btn-listbutton.flagged:hover .flag-btn-circle {
    background: #fff;
    border: 2px solid #ff0000;
}

.btn-listbutton.flagged:focus .flag-btn-circle i,
.btn-listbutton.flagged:hover .flag-btn-circle i {
    color: #ff0000;
}


.btn-listbutton:focus .flag-btn-circle,
.btn-listbutton:hover .flag-btn-circle {
    background: rgb(255, 0, 0);
}

.btn-listbutton:focus .flag-btn-circle i,
.btn-listbutton:hover .flag-btn-circle i {
    color: #ffffff;
}


.btn-listbutto.flagged:focus .flag-btn-circle,
.btn-listbutton.flagged:hover .flag-btn-circle {
    background: rgb(255, 255, 255);
    border: 2px solid rgb(255, 0, 0);
}

.btn-listbutton.flagged:focus .flag-btn-circle i,
.btn-listbutton.flagged:hover .flag-btn-circle i {
    color: #ff0000;
}






.listbutton-note-input {
    min-width: 80px;
    max-width: 260px;
    border-radius: 6px;
    border: 1.5px solid rgb(200, 200, 200);
    padding: 2px 8px;
    font-size: 1rem;
    background: rgb(255, 255, 255);
    margin-left: 12px;
    margin-right: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.08);
}

.listbutton-note-input:focus,
.listbutton-note-input:active {
    border-color: #000000;
    box-shadow: 0 0 0 2px #000000, 0 2px 8px rgba(52, 199, 89, 0.12);
    outline: none;
    background: rgba(255, 255, 0, 0.785);
    color: #000000;
    font-weight: 500;
}

/* Pill-shaped button

.btn-listbutton {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(200, 200, 200, 0.35);
    color: #222;
    box-shadow: 0 8px 32px 0 rgba(60, 60, 60, 0.18), 0 1.5px 6px 0 rgba(52, 199, 89, 0.08);
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    cursor: pointer;
}

/* When flagged, turn button red 

.btn-listbutton.flagged {
    background: rgba(229, 57, 53, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    color: #222;
    border: 1.5px solid rgba(198, 40, 40, 0.35);
    box-shadow: 0 8px 32px 0 rgba(229, 57, 53, 0.18);
}

/* Flag icon circle 

.flag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.35);
    backdrop-filter: blur(8px) saturate(180%);
    color: #fff;
    margin-right: 0.5rem;
    box-shadow: 0 0 0 2px #fff inset, 0 4px 12px rgba(229, 57, 53, 0.12);
    border: none;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
}

.flag-btn:hover,
.flag-btn:focus,
.flag-btn:active {
    background: #ff0000;
    backdrop-filter: none;
    box-shadow: 0 0 0 2px #fff inset, 0 4px 12px rgba(229, 57, 53, 0.18);
}


/* Flag icon itself 

.flag-btn i {
    font-size: 1.2rem;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

/* Optional: Button hover effect 

.btn-listbutton:hover {
    background: rgba(255, 255, 255, 0.38);
    border-color: #34c759;
    box-shadow: 0 12px 36px rgba(60, 60, 60, 0.22), 0 2px 8px rgba(52, 199, 89, 0.12);
}

/* Prevent button from turning white when clicked or focused 


.btn-listbutton:active,
.btn-listbutton:focus {
    background: rgba(255, 255, 255, 0.55);
    color: #222;
    outline: 3px solid #34c759;
    box-shadow: 0 0 0 4px #34c75966, 0 0 12px 4px #34c75944, 0 8px 32px 0 rgba(60, 60, 60, 0.18);
    transform: scale(1.04);
    z-index: 2;
}

.btn-listbutton.flagged:hover {
    background: rgba(255, 255, 255, 0.45);
    color: #222;
    border-color: #c62828;
    box-shadow: 0 6px 24px rgba(229, 57, 53, 0.18);
    filter: none;
}

/* Keep text color always the sa

.btn-listbutton span {
    transition: none;
}

.btn-listbutton.flagged span {
    color: #fff !important;
    transition: none;
}

.btn-listbutton.flagged:hover span,
.btn-listbutton.flagged:focus span,
.btn-listbutton.flagged:active span {
    color: #c62828 !important;
}

/* Divider line between flag and text 

.btn-listbutton-divider {
    width: 2px;
    background: linear-gradient(to bottom, #bdbdbd 60%, #e0e0e0 100%);
    align-self: stretch;
    margin: 0 0.5rem;
    border-radius: 2px;
    opacity: 0.7;
    box-shadow: 0 1px 4px rgba(60, 60, 60, 0.08);
}

/* Text section min width and font weight 

.btn-listbutton-text {
    flex: 1;
    min-width: 120px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: inherit;
    text-shadow: 0 1px 2px rgba(60, 60, 60, 0.08);
}

/* Flag icon circle 

.flag-btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.35);
    backdrop-filter: blur(8px) saturate(180%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.12);
}

.flag-btn-circle i {
    font-size: 1.2rem;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

/* Focused/selected button with light green color scheme 

.btn-listbutton:focus,
.btn-listbutton:active {
    background: rgba(255, 255, 255, 0.45);
    color: #222 !important;
    outline: 2px solid #34c759;
    box-shadow: 0 0 0 2px #34c75933, 0 8px 32px 0 rgba(60, 60, 60, 0.18);
}

.btn-listbutton.flagged:focus,
.btn-listbutton.flagged:active {
    background: rgba(255, 255, 255, 0.45);
    color: #222;
    border-color: #c62828;
    box-shadow: 0 6px 24px rgba(229, 57, 53, 0.18);
    filter: none;
}

/* Note input field focus/active styles 

.btn-listbutton input[type="text"]:focus,
.btn-listbutton input[type="text"]:active {
    border-color: #34c759;
    box-shadow: 0 0 0 2px #34c75944, 0 2px 8px rgba(52, 199, 89, 0.12);
    outline: none;
    background: rgba(255, 255, 255, 0.65);
    color: #004928;
    font-weight: 500;
}



.listbutton-note-input {
    min-width: 80px;
    max-width: 260px;
    border-radius: 6px;
    border: 1.5px solid rgba(200, 200, 200, 0.35);
    padding: 2px 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.65);
    margin-left: 12px;
    margin-right: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.08);
}

/* Note input field focus/active styles 

/* Note input field focus/active styles 

.listbutton-note-input:focus,
.listbutton-note-input:active {
    border-color: #34c759;
    box-shadow: 0 0 0 2px #34c75944, 0 2px 8px rgba(52, 199, 89, 0.12);
    outline: none;
    background: rgba(255, 255, 255, 0.85);
    color: #004928;
    font-weight: 500;
} */