/* General Body & Font Styling */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #1a1a1d;
    color: #f0f0f0;
}

/* Main Chat Container */
#chat-container {
    background: #2c2c34;
    width: 100%;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh; /* Modern unit that respects mobile browser UI */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}



/* Message List */
#messages {
    list-style-type: none;
    margin: 0;
    padding: 0 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

#messages > li {
    padding: 0.5rem 0.2rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    word-wrap: anywhere;
    transition: opacity 0.3s ease;
}

#messages > li.has-media {
    align-items: flex-start;
    flex-direction: column;
}

#messages > li.has-media .message-content {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

#messages > li:not(:last-child) {
    border-bottom: 1px solid #3a3a42;
}

/* Dimming effect styles */
#messages > li.dimmed-message {
    opacity: 0.3;
}

#messages > li.highlighted-message {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.timestamp {
    font-size: 0.75rem;
    color: #888;
    flex-shrink: 0;
}

.badge {
    color: #facc15; /* Star color (default) */
    font-size: 1rem;
    cursor: pointer;
}

.badge.image-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-image {
    height: 1.2rem;
    width: auto;
    vertical-align: text-bottom;
    border-radius: 2px;
}

@keyframes rainbow-text-animation {
    from {
        background-position: 0% center;
    }
    to {
        background-position: -200% center;
    }
}

.name.rainbow-text {
    background: linear-gradient(90deg, hsl(0, 100%, 65%), hsl(45, 100%, 65%), hsl(90, 100%, 65%), hsl(135, 100%, 65%), hsl(180, 100%, 65%), hsl(225, 100%, 65%), hsl(270, 100%, 65%), hsl(315, 100%, 65%), hsl(360, 100%, 65%), hsl(0, 100%, 65%));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text-animation 5s linear infinite;
}

.name {
    font-weight: bold;
    color: #a7a7a7;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.name:hover {
    color: #d0d0d0;
    text-decoration: underline;
}

.message-text {
    color: #e0e0e0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    white-space: pre-wrap;
    word-break: break-word;
}

a, a:visited {
    color: #a2c2f2; /* Pastel blue for unvisited links */
    text-decoration: underline;
    text-decoration-color: #a2c2f280; /* Faint underline */
    transition: all 0.2s ease-in-out;
}

a:visited {
    color: #c58af9; /* Pastel purple for visited links */
    text-decoration-color: #c58af980; /* Faint underline */
}

a:hover {
    color: #bddefd; /* Slightly brighter blue on hover */
    text-decoration-color: #bddefd;
}

/* NSFW link styling - red underline for links in messages containing "nsfw" */
.nsfw-message a {
    text-decoration-color: #ec7070 !important;
}
.nsfw-message a:hover {
    text-decoration-color: #e44949 !important;
}

.emote {
    height: 1.75rem;
    vertical-align: middle;
    margin: 0 0.1rem;
}

.delete-icon, .undo-icon {
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.delete-icon:hover, .undo-icon:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.pin-icon {
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.pin-icon:hover {
    color: #cccccc;
    background: rgba(204, 204, 204, 0.1);
}

.pin-icon.pinned {
    color: #666666;
}

li.verified.system-message .message-text {
    font-style: italic;
    color: #a78bfa;
}

li.warning-message .message-text {
    color: #ef4444; /* Bright Red */
    font-weight: bold;
}

li.deleted-mod-view {
    opacity: 0.6;
}

li.deleted-mod-view > * {
    text-decoration: line-through;
    color: #6c757d !important;
}

/* Mentioned Message Styling */
li.mentioned-message {
    background: rgba(109, 40, 217, 0.1);
    border-left: 3px solid #6d28d9;
    animation: mention-pulse 0.6s ease-in-out;
}

@keyframes mention-pulse {
    0% {
        background: rgba(109, 40, 217, 0.2);
        transform: translateX(-2px);
    }
    50% {
        background: rgba(109, 40, 217, 0.15);
        transform: translateX(0px);
    }
    100% {
        background: rgba(109, 40, 217, 0.1);
        transform: translateX(0px);
    }
}

@keyframes barrel-roll {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

.barrel-rolling {
    animation: barrel-roll 2s ease-in-out;
}

/* Whisper Message Styling */
.whisper-message {
    background: rgba(145, 145, 145, 0.1);
    border-left: 3px solid #919191;
}

.whisper-message .message-text {
    color: #919191;
    font-style: italic;
}

.whisper-message .name {
    color: #919191;
    font-style: italic;
}

.whisper-message .delete-icon,
.whisper-message .undo-icon,
.whisper-message .whisper-reply-btn {
    font-style: normal;
}

/* Whisper Reply Button */
.whisper-reply-btn {
    color: #919191;
    cursor: pointer;
    margin-left: 8px;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
    user-select: none;
}

.whisper-reply-btn:hover {
    opacity: 1;
    color: #6d28d9;
}

/* Message Input Form */
#form {
    background: #1f1f23;
    padding: 0.5rem 0;
    display: flex;
    border-top: 1px solid #444;
    align-items: flex-end;
    position: relative;
}

.input-container {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

#input {
    border: 1px solid #444;
    background-color: #2c2c34;
    padding: 0.8rem;
    padding-right: 3rem; /* Make room for slowmode indicator */
    flex-grow: 1;
    border-radius: 8px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    overflow-y: auto;
    max-height: 150px;
    box-sizing: border-box;
    height: 54px;
    width: 100%;
}

#input:focus {
    outline: none;
}

.icon-btn {
    background: transparent;
    border: none;
    height: 54px;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.icon-btn:hover {
    color: #4b5563;
}

#form > button {
    background: transparent;
    border: none;
    padding: 0 1rem;
    height: 54px;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

#form > button:hover {
    color: #4b5563;
}

/* Slowmode Indicator */
.slowmode-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.slowmode-circle {
    width: 28px;
    height: 28px;
}

.slowmode-circle-bg {
    fill: none;
    stroke: #444;
    stroke-width: 2.5;
}

.slowmode-circle-fill {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

.slowmode-indicator.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Input shake animation for slowmode */
@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.input-container.shake {
    animation: input-shake 0.5s ease-in-out;
}

/* Settings Popover */
.popover {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #23232b;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1000;
    margin-bottom: 8px;
}

.popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #23232b;
}

.popover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 19px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #444;
}

.popover-header {
    padding: 12px 16px 8px 16px;
    font-weight: bold;
    color: #f0f0f0;
    border-bottom: 1px solid #444;
    font-size: 0.9rem;
}

.popover-content {
    padding: 8px 16px 12px 16px;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.settings-section {
    margin-bottom: 12px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section label {
    display: block;
    margin-bottom: 4px;
    color: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 500;
}

.settings-section input[type="text"],
.settings-section input[type="password"] {
    width: 100%;
    background: #4a4a52;
    border: 1px solid #666;
    border-radius: 6px;
    color: #f0f0f0;
    padding: 0.5rem;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.settings-section input[type="text"]:focus,
.settings-section input[type="password"]:focus {
    outline: none;
    border-color: #6d28d9;
}

.settings-section input[type="text"]::placeholder,
.settings-section input[type="password"]::placeholder {
    color: #888;
}

.settings-heading {
    color: #a0a0a0;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Collapsible settings section styles */
.collapsible-heading {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color 0.2s ease;
}

.collapsible-heading:hover {
    color: #d0d0d0;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    color: #888;
    margin-left: 8px;
}

.collapsible-heading.expanded .dropdown-arrow {
    transform: rotate(180deg);
    color: #a0a0a0;
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #f0f0f0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 16px;
    height: 16px;
    background: #4a4a52;
    border: 1px solid #666;
    border-radius: 3px;
    margin-right: 20px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #6d28d9;
    border-color: #6d28d9;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}



#volume-display {
    display: inline-block;
    margin-left: 8px;
    color: #a0a0a0;
    font-size: 0.85rem;
    min-width: 30px;
}

.popover.hidden {
    display: none;
}

/* Welcome Modal Styles */
#welcome-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 30, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

#welcome-modal-backdrop.hidden {
    display: none;
}

#welcome-modal {
    background: #23232b;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 400px;
    width: 90vw;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#welcome-modal .welcome-graphic {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    margin-top: -1rem; /* Changed from -2.5rem to -1rem for more vertical padding above */
    object-fit: contain;
    display: block;
}

#welcome-modal h2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #7129e6;
    font-size: 1.5rem;
}

#welcome-modal p {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

#welcome-modal button {
    background: #6d28d9;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

#welcome-modal button:hover {
    background: #5b21b6;
}

/* Spoiler Styling */
.spoiler {
    background: #504d5f;
    color: transparent;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s, background 0.2s;
    user-select: none;
    padding: 0 0.25em;
}
.spoiler.revealed {
    color: #fff;
    background: rgba(80, 77, 95, 0.08); /* very transparent #504d5f */
    user-select: text;
}

.message-text.quote-message {
    color: #80EF80 !important;
}

.poll-timer-bar {
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 6px;
    width: 100%;
    background: #6d28d9;
    transition: width 0.2s linear;
    z-index: 2;
    transform: translateX(-50%);
}
#poll-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #23232b;
    padding: 1rem;
    z-index: 10;
    display: none; /* Hidden by default, shown when poll is active */
}

#pinned-message-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #1f1f23;
    border-bottom: 1px solid #444;
    z-index: 9;
    padding: 0.75rem 1rem;
    display: block;
}

/* Adjust messages container when pinned message is shown */
#messages.has-pinned-message {
    margin-top: 3.5rem;
}

#pinned-message-box.hidden {
    display: none;
}

.pinned-message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.pinned-message-text {
    color: #f0f0f0;
    font-size: 0.9rem;
    flex-grow: 1;
    word-wrap: break-word;
}

/* Name styling within pinned messages */
.pinned-message-text .name {
    font-weight: bold;
    cursor: default;
    transition: none;
}

.pinned-message-text .name:hover {
    color: inherit;
    text-decoration: none;
}

.pinned-message-text .name.rainbow-text {
    background: linear-gradient(90deg, hsl(0, 100%, 65%), hsl(45, 100%, 65%), hsl(90, 100%, 65%), hsl(135, 100%, 65%), hsl(180, 100%, 65%), hsl(225, 100%, 65%), hsl(270, 100%, 65%), hsl(315, 100%, 65%), hsl(360, 100%, 65%), hsl(0, 100%, 65%));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-text-animation 5s linear infinite;
}

.pinned-message-text .name.rainbow-text:hover {
    background: linear-gradient(90deg, hsl(0, 100%, 65%), hsl(45, 100%, 65%), hsl(90, 100%, 65%), hsl(135, 100%, 65%), hsl(180, 100%, 65%), hsl(225, 100%, 65%), hsl(270, 100%, 65%), hsl(315, 100%, 65%), hsl(360, 100%, 65%), hsl(0, 100%, 65%));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-text-animation 5s linear infinite;
}

.pinned-message-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pinned-message-unpin {
    color: #999999;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pinned-message-unpin:hover {
    color: #f0f0f0;
    background: rgba(102, 102, 102, 0.3);
}

.pinned-message-dismiss {
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pinned-message-dismiss:hover {
    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.1);
}

/* Adjust poll box position when pinned message is shown */
#poll-box.has-pinned-message {
    top: 3.5rem; /* Adjust based on pinned message height */
}

.poll-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.poll-option {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.poll-label {
    min-width: 2rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.poll-bar {
    height: 1.2rem;
    background: #6d28d9;
    border-radius: 6px;
    transition: width 0.3s;
    margin-right: 0.5rem;
}

.poll-votes {
    min-width: 3rem;
    text-align: right;
    color: #f0f0f0;
    font-size: 0.9rem;
}

.poll-muted {
    color: #b0b0b0;
    font-weight: normal;
    margin-left: 0.5em;
}

.poll-question {
    display: block;
    margin-bottom: 0.5em;
    font-size: 1.05em;
    color: #f0f0f0;
    font-weight: normal;
}

/* Overlay Mode Styles */
body.overlay-mode, body.overlay-mode #chat-container {
    background: transparent !important;
}

body.overlay-mode #form, body.overlay-mode #welcome-modal-backdrop{
    display: none !important;
}

/* Ensure messages are still visible in overlay mode */
body.overlay-mode #messages {
    padding: 0.5rem;
    background: transparent;
    margin: 0.5rem;
}

body.overlay-mode #messages > li {
    background: transparent;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border: none;
}

body.overlay-mode #messages > li:not(:last-child) {
    border-bottom: none;
}

/* Add drop shadow to all text elements (except for rainbow names, it ruins how it looks) in overlay mode for better readability on lighter backgrounds*/
body.overlay-mode * {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
body.overlay-mode .name.rainbow-text {
    text-shadow: none;
}
/* Disable text shadow on hidden spoiler text in overlay mode */
body.overlay-mode .spoiler:not(.revealed) {
    text-shadow: none;
}

/* Hide timestamps in overlay mode */
body.overlay-mode .timestamp {
    display: none !important;
}

/* Hide scrollbar in overlay mode */
body.overlay-mode #messages::-webkit-scrollbar {
    display: none !important;
}

body.overlay-mode #messages {
    -ms-overflow-style: none !important;  /* Internet Explorer 10+ */
    scrollbar-width: none !important;  /* Firefox */
}

/* Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #666;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    height: 6px;
    margin: 0;
    padding: 0;
    outline: none;
}

/* Hide mod buttons when setting is enabled */
.action-buttons.hidden {
    display: none !important;
}

/* Message Menu Styles */
.message-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.message-menu-button {
    cursor: pointer;
    color: #999;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-size: 0.9rem;
}

.message-menu-button:hover {
    color: #ccc;
    background: rgba(204, 204, 204, 0.1);
}

.message-popover {
    position: absolute;
    top: 100%;
    right: 0;
    background: #23232b;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    z-index: 1000;
    margin-top: 4px;
}

.message-popover.hidden {
    display: none;
}

.message-popover-item {
    padding: 8px 12px;
    cursor: pointer;
    color: #f0f0f0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    border-bottom: 1px solid #444;
}

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

.message-popover-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hide checkbox labels when user is not privileged */
.checkbox-label.hidden {
    display: none !important;
}

/* Media preview styles */
.media-toggle-btn {
    display: inline;
    background: transparent;
    border: none;
    color: #a2c2f2;
    cursor: pointer;
    vertical-align: baseline;
    font-size: inherit;
    padding: 0;
    margin-left: 0.25rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.media-toggle-btn:hover {
    color: #bddefd;
}
.media-preview {
    margin: 0;
    margin-top: 0.25rem;
    width: 100%;
    max-width: 420px;
    height: 420px;
    overflow: hidden;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    flex-basis: 100%;
    order: 100;
    clear: both;
    display: block;
}
.media-preview img,
.media-preview video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.media-preview.hidden {
    display: none;
}

/* Track (bar) styling */
input[type="range"]::-webkit-slider-track,
input[type="range"]::-moz-range-track,
input[type="range"]::-ms-track {
    background: #666;
    height: 6px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
}

input[type="range"]::-ms-track {
    color: transparent;
}

/* Thumb (handle) styling */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #999999 !important;
    height: 16px !important;
    width: 16px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #999999 !important;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

input[type="range"]::-ms-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #999999 !important;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
