#messageType {
    appearance: none; /* Removes default OS styling for a cleaner look */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#messageType:focus {
    border-color: #c56c86;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(197, 108, 134, 0.25);
}

/* Presenter Tab Active State */
.bg-presenter {
    background-color: #f0f4f8 !important; /* Soft Blue */
}
.text-presenter {
    color: #2c5282 !important; /* Professional Blue */
}
.border-presenter {
    border-bottom: 2px solid #2c5282 !important;
}

/* Peer Tab Active State */
.bg-peer {
    background-color: #fdf8f9 !important; /* Your current pink tint */
}
.text-peer {
    color: #c56c86 !important; /* Your current pink */
}
.border-peer {
    border-bottom: 2px solid #c56c86 !important;
}

/* Transitions for smooth switching */
.tab-content, .question-submission-container {
    transition: background-color 0.3s ease;
}

/* ---------------------------------------------------------------------------
   Upvote pill

   The button keeps its markup across refreshes (see styleUpvoteButton in
   live_questions.js), so the voted/not-voted states cross-fade instead of being
   redrawn. Colours belong here rather than in inline styles for the same
   reason: re-writing style.cssText on every refresh restarts the transition.
   --------------------------------------------------------------------------- */
.upvote-btn {
    border: 1px solid #c56c86;
    color: #c56c86;
    background: transparent;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease,
                border-color 0.18s ease, transform 0.1s ease;
}

.upvote-btn:hover {
    background-color: rgba(197, 108, 134, 0.12);
    color: #a8536d;
    border-color: #a8536d;
}

/* A press the finger can feel, so the click reads as instant even before the
   count comes back from the server. */
.upvote-btn:active {
    transform: scale(0.96);
}

.upvote-btn.upvoted {
    background: #c56c86;
    color: #ffffff;
}

.upvote-btn.upvoted:hover {
    background: #b45d78;
    border-color: #b45d78;
    color: #ffffff;
}

.upvote-label {
    margin-right: 8px;
    font-weight: 500;
}

.upvote-count {
    display: inline-block;
    border-left: 1px solid #f2dce2;
    padding-left: 8px;
    font-weight: bold;
    transition: border-color 0.18s ease;
}

.upvote-btn.upvoted .upvote-count {
    border-left-color: #ffffff;
}

/* The number swaps in place; a small lift makes the change readable. */
.upvote-count.bump {
    animation: upvoteBump 0.25s ease;
}

@keyframes upvoteBump {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .upvote-btn,
    .upvote-count { transition: none; }
    .upvote-count.bump { animation: none; }
    .upvote-btn:active { transform: none; }
}
