/* Default styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    --link-color: #1a73e8;
    /* bright blue */
    --link-hover-color: #0b59d2;
    /* darker blue on hover */
}

body.dark {
    --link-color: #4dafff;
    /* lighter blue for dark bg */
    --link-hover-color: #66cfff;
    /* hover */
}

/* Apply to all links */
a {
    color: var(--link-color);
    text-decoration: underline;
}

a:visited {
    color: var(--link-hover-color);
}

a:hover,
a:focus {
    color: var(--link-hover-color);
    text-decoration: none;
}

.container {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
}

input[type="text"],
input[type="date"],
button {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

#submit {
    width: 100%;
    background-color: #007bff;
    color: #fff;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

#submit:hover {
    background-color: #0056b3;
}

#statusMessage {
    text-align: center;
    font-weight: bold;
    color: green;
}

/* Responsive styles */
@media only screen and (max-width: 600px) {
    .container {
        max-width: 90%;
    }

    #nameDiv {
        width: 100%;
        /* Adjust margins and padding as needed */
    }

    #timeDiv {
        width: 100%;
        /* Adjust margins and padding as needed */
    }

    #availableStartTime {
        width: 100%;
        margin-left: 0;
        /* Reset the margin */
    }
}

.container {
    text-align: center;
}

.name-container,
.datepicker-container {
    margin-bottom: 10px;
    display: flex;
    /*or inline-flex */
    align-items: center;
}

/* .bookDate-container{
 align-items: center;
} */

.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;

    /* /* display: grid; */
    /* grid-template-columns: auto 1fr; First column auto-sized, second column takes remaining space */
    /* align-items: center; Align items vertically in the center */
}

.name-datepicker-container {
    display: flex;
    align-items: center;
}

.datepicker-container {
    display: flex;
    align-items: center;
}

.date-nav-btn {
    width: 100%;
    background-color: #f2f2f2;
    border: none;
    color: #000;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50%;
}

.date-nav-btn:hover {
    background-color: #ddd;
}

#selectedDate {
    margin: 0 8px;
    width: 600px;
    /* Adjust the width as needed */
}

#bookingDate {
    margin: 0 8px;
    width: 122px;
    align-items: center;
    /* Adjust the width as needed */
}

#name {
    margin: 8px 8px 8px 0px;
    width: 200px;
    /* Adjust the width as needed */
    /* align-items: center; */
}

#availableStartTime {
    margin: 8px;
    width: 40px;
    /* display: flex; */
    /* margin-left: auto; Push the date picker to the right */
}

.name {
    align-items: center;
    margin-left: 1%;
    width: 200px;
    /* Adjust the width as needed */
}

.availableStartTime {
    width: 40px;
    /*margin-left: auto; */
    /*Push the date picker to the right */
}

/* #courtSelection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
} */

/* .court-row {
  display: flex;
  gap: 10px;
} */

/* .sc-center {
  margin-top: 10px;
}  */

.rank-guide-container {
    margin-top: 20px;
}

.rank-guide-toggle {
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.rank-guide-content {
    margin-top: 10px;
    background-color: #f9f9f9;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.rankDropdown {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
    color: #333;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease;
    margin: 4px;
}

.rankDropdown:focus {
    border-color: #007BFF;
}



body.dark .rank-guide-content {
    background-color: #333;
    color: #fff;
}

.rank-guide-content.hidden {
    display: none;
}


.invisible-button {
    visibility: hidden;
    pointer-events: none;
    padding: 10px 16px;
    border: none;
}

#courtSelection {
    display: flex;
    justify-content: center;
    /* Center the content horizontally */
}

.court-column {
    margin-right: 40px;
    /* Adjust spacing between columns */
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    /* Adjust margin as needed */
}

#bookingTable {
    width: 100%;
    margin-bottom: 20px;
    /* Adjust margin as needed */
}


#bookingTable th:not(:last-child) {
    margin-right: 20px;
    /* Add margin between table cells */
}

.green-row {
    background-color: lightgreen;
    color: #000;
}

.yellow-row {
    background-color: yellow;
    color: #000;
}

/* Additional CSS styles for the Google Sign-In button */
#googleSignInContainer {
    /* max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    /* position: fixed; */
    top: 100px;
    /* Adjust top distance as needed */
    right: 100px;
    /* Adjust right distance as needed */
    z-index: 1000;
    /* Ensure it's above other elements */
}

.delete-button {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    display: inline-block;
    margin: auto;
    text-align: center;
}

/* Dark mode styles */
.dark {
    background-color: #333;
    color: #fff;
}

/* Light mode styles */
.light {
    background-color: #fff;
    color: #333;
}

#profileMenu {
    display: none;
    position: fixed;
    top: 50px;
    right: 0px;
    /* align with profile button */
    width: 250px;
    margin-top: 10px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

body.dark #profileMenu {
    background-color: #333;
    color: #fff;
}

#dayOfWeek {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

/* Button styles */
.neutral,
.preferred,
.forbidden,
.line-through {
    padding: 10px 20px;
    /* Adjust padding for better button size */
    border: none;
    cursor: pointer;
    max-width: 100%;
    /* max-width: calc(50% - 10px); */
    /* Set maximum width for each button (50% of container width minus gap) */
}

.neutral {
    background-color: #f0f0f0;
    color: #333;
}

.preferred {
    background-color: #32cd32;
    color: white;
}

.forbidden {
    background-color: #ff0000;
    color: white;
}

.line-through {
    text-decoration: line-through;
}

#courtSelection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    /* Adjust button width as needed */
    gap: 10px;
    /* Adjust gap between buttons */
    justify-content: center;
    /* Center buttons horizontally */
}

/* Adjust container to use grid layout */
#courtSelection2 {
    margin-bottom: 20px;
    /* Add margin at the bottom */
    width: 100%;
    /* Ensure the container takes up the full width */
    display: flex;
    flex-wrap: wrap;
    /* Wrap buttons to new line when container width is exceeded */
    gap: 15px;
    /* Adjust the gap between buttons */
    justify-content: center;
    /* Center the buttons horizontally */
}

#court {
    margin-top: 0px;
}

/* Style for the toggle button */
.toggle-button {
    position: fixed;
    top: 15px;
    right: 20px;
    padding: 5px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    /* Ensure it's above other elements */
    width: 20px;
    height: 25px;
    display: block;
}

/* Style for the icon inside the button */
.toggle-button i {
    font-size: 20px;
    /* Adjust the size of the icon as needed */
}

/* profile Icon */
.profile-button {
    position: fixed;
    top: 12px;
    right: 60px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9999;
    display: block;
}

.profile-button i {
    font-size: 20px;
}

.burger-button {
    position: fixed;
    top: 12px;
    left: 20px;
    padding: 5px;
    z-index: 1001;
}

.burger-menu-dropdown {
    position: fixed;
    top: 50px;
    left: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.burger-menu-dropdown a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
}

.burger-menu-dropdown a:hover {
    background-color: #f0f0f0;
}

/* Dark mode support */
body.dark .burger-menu-dropdown {
    background-color: #222;
    border: 1px solid #444;
}

body.dark .burger-menu-dropdown a {
    color: #fff;
}

body.dark .burger-menu-dropdown a:hover {
    background-color: #333;
}

.hidden {
    display: none;
}

#topBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* keep it above other elements */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background-color: #e8e8e8;
}

body.dark #topBar {
    background-color: #444;
}

#match-results,
#shuffle-results {
    margin-bottom: 10px;
    padding: 0px 10px 10px 10px;
}

#match-results h3,
#shuffle-results h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Hide #topBar on screens wider than 600px (vertical tablet/desktop) */
/* @media screen and (min-width: 600px) {
    .burger-menu-dropdown {
        margin-top: 0px;
    }
} */

.smartMatchesContainer {
    width: 80%;
    max-width: 800px;
    /* but cap it on large screens */
    margin: 80px auto 40px;
    /* center horizontally, space from top */
    padding: 20px;
    /* background-color: #ffffff; */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    /* ensure padding doesn't overflow width */
}

body.dark .smartMatchesContainer {
    /* background-color: #444; */
    color: #fff;
}

.shuffle-buttons {
    display: flex;
    justify-content: center;
    /* Centers the buttons horizontally */
    gap: 10px;
    /* Space between the buttons */
    margin-top: 10px;
}

#generate {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: white;
    transition: background-color 0.3s ease;
}

#generate:hover {
    background-color: #ddd;
}

body.dark #generate {
    background-color: #222;
    color: #fff;
}

#balanceShuffle {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #1976D2;
    color: white;
    transition: background-color 0.3s ease;
}

#balanceShuffle:hover {
    background-color: #2196F3;
}

#skillBasedShuffle {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #FF8C00;
    color: white;
    transition: background-color 0.3s ease;
}

#skillBasedShuffle:hover {
    background-color: #e67600;
}

/* #match-results {
    text-align: center;
} */

#notify-all {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s ease;
}

#notify-all:hover {
    background-color: #45a049;
}

/* body.dark #notify-all{
    background-color: #222;
    color: #fff;
} */

.shuffle-summary {
    margin-top: -8px;
    color: #555;
}

body.dark .shuffle-summary {
    color: #ccc;
}


@media (max-width: 768px) {
    #match-results {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .smartMatchesContainer {
        width: 90%;
        padding: 15px;
        margin: 60px auto 30px;
    }

    #generate {
        font-size: 15px;
        padding: 10px 16px;
    }
}

.announce-container {
    background: #f9f9f9;
    border-bottom: 2px solid #ddd;
    padding: 12px;
    font-size: 15px;
    line-height: 1.4;
    margin: 50px auto;
}

.announcement {
    margin-bottom: 10px;
    padding: 8px;
    border-left: 4px solid #007bff;
    background: #fff;
    border-radius: 6px;
    transition: background-color 1s ease;
}

.announcement.highlight {
    background-color: #fff3cd;
    /* light yellow for new announce */
}

/* 🌙 Night mode styles */
body.dark .announce-container {
    background: #1e1e1e;
    /* dark background */
    border-bottom: 2px solid #444;
    color: #e0e0e0;
    /* light text */
}

body.dark .announcement {
    background: #2a2a2a;
    /* darker card */
    border-left: 4px solid #4da3ff;
    /* softer blue */
    color: #f0f0f0;
}

body.dark .announcement.highlight {
    background-color: #3a3205;
    /* muted warm tone instead of bright yellow */
    color: #fff7cc;
    /* readable yellowish text */
}

.round-block {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #fafafa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.round-block h3 {
    margin-top: 0;
    color: #444;
    font-size: 1.1rem;
}


body.dark .round-block {
    background: #1e1e1e;
    border-color: #444;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.dark .round-block h3 {
    color: #ddd;
}

.notify-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.court-input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.notify-selected,
.notify-selected-shuffle {
    background: #4CAF50;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.notify-selected:hover,
.notify-selected-shuffle:hover {
    background: #43a047;
}

/* 🌙 DARK MODE STYLES */

body.dark .court-input {
    background: #2b2b2b;
    border: 1px solid #555;
    color: #eee;
}

body.dark .notify-selected,
body.dark .notify-selected-shuffle {
    background: #66bb6a;
}

body.dark .notify-selected:hover,
body.dark .notify-selected-shuffle:hover {
    background: #57a75c;
}

/* Wrap pairs in rows */
.pairs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

/* Each pair takes 1/3 of the line */
.pair-option {
    flex: 1 1 calc(33.33% - 10px);
    /* 3 per row */
    box-sizing: border-box;
    min-width: 150px;
    /* keep readable on small screens */
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

/* 📱 Mobile: 1 per row */
@media (max-width: 600px) {
    .pair-option {
        flex: 1 1 100%;
    }
}

.team-option {
    flex: 1 1 100%;
    box-sizing: border-box;
    min-width: 150px;
    /* keep readable on small screens */
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.pair-option:hover,
.team-option:hover {
    background: #ececec;
}

/* Dark mode */
body.dark .pair-option,
body.dark .team-option {
    background: #2a2a2a;
    color: #f1f1f1;
}

body.dark .pair-option:hover,
body.dark .team-option:hover {
    background: #3a3a3a;
}


.rank-toggle {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

/* The switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* When checked */
input:checked+.slider {
    background-color: #4caf50;
}

input:checked+.slider:before {
    transform: translateX(26px);
}


#announcementContainer {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: var(--card-bg, #fff);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#announcementContainer h1 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

body.dark #announcementContainer {
    background: #333;
    color: #fff;
}

/* -------------------------- Input Containers -------------------------- */

/* Single-column inputs (checkbox, etc.) */
.input-container2 {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    /* tighter spacing */
}

/* Labels for single-column inputs */
.input-container2 label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Inputs/selects inside input-container2 */
.input-container2 select,
.input-container2 input[type="number"],
.input-container2 input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-container2 select:focus,
.input-container2 input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* -------------------------- Flex Row Inputs -------------------------- */

.input-row {
    display: flex;
    gap: 0.75rem;
    /* less space between inputs */
    flex-wrap: wrap;
    /* wrap on small screens */
    margin-bottom: 0.75rem;
}

.input-row .flex-item {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
}

.input-row .flex-item label {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.input-row .flex-item select,
.input-row .flex-item input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-row .flex-item select:focus,
.input-row .flex-item input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* -------------------------- Time Inputs -------------------------- */

.time-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
    /* tighter spacing */
}

.time-input span {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 70px;
}

.time-input input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-sizing: border-box;
}

/* Align start and end inputs on the same line with label */
.time-input.fixed-align {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
}

/* Ensure spacing before submit */
#timeContainer {
    margin-bottom: 1.5rem;
}

/* -------------------------- Submit Button -------------------------- */

#announceSubmit {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

#announceSubmit:hover {
    background-color: #2563eb;
}

/* -------------------------- Checkbox Styling -------------------------- */

input[type="checkbox"] {
    accent-color: #3b82f6;
}

/* Time input row for single court */
.time-input.single-court {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    /* reduced vertical space */
}

.time-input.single-court label {
    width: 80px;
    /* fixed label width */
    margin: 0;
    /* remove extra margin */
}

.time-input.single-court input {
    flex: 1 1 0;
    padding: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 480px) {

    /* Flex row for court place & quantity */
    .input-row {
        gap: 0.5rem;
        /* reduce gap between inputs */
        margin-bottom: 0.5rem;
        /* reduce bottom space */
    }

    /* Single court time row */
    .time-input.single-court {
        gap: 0.25rem;
        /* reduce horizontal gap */
        margin-bottom: 0.25rem;
        /* reduce vertical gap */
    }

    /* Multiple court time rows */
    .time-input.multi-court {
        margin-bottom: 0.25rem;
    }

    /* Checkbox container */
    .input-container2 {
        margin-bottom: 0.5rem;
        /* smaller space before next section */
    }

    /* Submit button spacing */
    #announceSubmit {
        margin-top: 0.5rem;
        /* less space on mobile */
    }
}

.highlight {
    background-color: var(--highlight-bg);
    border-left: 4px solid var(--highlight-border);
    padding: 10px;
}

body.dark .highlight {
    --highlight-bg: #3e3e00;
    --highlight-border: #ffc107;
}

.highlight-player {
    background-color: #ffeb3b;
    font-weight: bold;
}

body.dark .highlight-player {
    background-color: #b59f00;
    /* darker yellow for dark mode */
}

/* --- Swap animation --- */
.player-block {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    position: relative;
}

.player-block.selected {
    background-color: orange; /* highlight when selected */
    font-weight: bold;
}

/* --- Switch icon --- */
.switch-btn {
    cursor: pointer;
    font-size: 1.2rem; /* bigger than text */
    margin-left: 0.25rem;
    transition: transform 1.5s ease, color 1.5s ease;
}

.switch-btn:hover {
    transform: scale(1.3);
    color: #007bff;
}

/* --- Swap animation --- */
.player-block.swap {
    animation: swapAnim 1.5s ease forwards;
}

@keyframes swapAnim {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Spin animation for switch icon --- */
@keyframes spinAnim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.switch-btn.spin {
    animation: spinAnim 1.5s ease forwards;
}

/* Slider track filled part and thumb colors */
input[type=range].consistency {
    accent-color: #4caf50; /* Chrome, Edge, Firefox 93+ */
}
input[type=range].agility {
    accent-color: #ffeb3b;
}
input[type=range].fitness {
    accent-color: #ff9800;
}
input[type=range].strength {
    accent-color: #f44336;
}
input[type=range].gamesense {
    accent-color: #2196f3;
}
input[type=range].shotquality {
    accent-color: #00bcd4;
}
input[type=range].mental {
    accent-color: #9c27b0;
}

/* Optional: more consistent look across browsers */
input[type=range]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
input[type=range]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.announcement {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    margin: 8px 0;
    padding: 12px 16px;
    border-left: 6px solid;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.announcement:hover {
    background: rgba(0,0,0,0.03);
}

.delete-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #d33;
    cursor: pointer;
    line-height: 1;
}

.delete-btn:hover {
    color: #ff0000;
}

@media (hover: none) {
    .delete-btn {
        font-size: 22px;
        padding: 4px;
    }
}
