#floatingBtn {
    bottom: 246px;
}

.composer-author-name {
    font-weight: 600;
}

#floatingBtn:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#floatingEditor,
#edit-floatingEditor,
#adviceComposer {
    position: fixed;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-y: auto;
    height: auto !important;
    border: var(--border-style);
    background: var(--dark-background);
    width: 500px;
    max-width: 95vw;
    border-radius: 14px;
    padding: 0;
    display: none;
    z-index: 1100;
    transition: all 0.15s ease;
}

.editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 1050;
    display: none;
}

#edit-postForm,
#postForm {
    flex-direction: column;
    height: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#edit-sharedPostPreview {
    margin-top: 10px;
    margin-bottom: 10px;
}

.reply-popup-close,
.close-btn {
    cursor: pointer;
    font-weight: 500;
}

.composer__form {
    background: transparent;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.reply-popup-header,
.composer__header {
    display: flex;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    align-items: center;
    padding: 11px 20px;
    justify-content: space-between;
}

.reply-popup-header h3,
.composer__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--functional);
    letter-spacing: -0.5px;
}

.user-input {
    display: flex;
    gap: 7px;
    position: relative;
    max-width: 640px;
    flex-direction: row;
}

.content-wrapper {
    min-width: 0;
    word-wrap: break-word;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#floatingEditor .avatar,
#adviceComposer .avatar {
    width: 42px;
    height: 42px;
    border: 1px solid var(--dark-background);
}

.composer__textarea {
    font-size: 14px;
    line-height: 1.4rem;
    min-height: 1.4rem;
    background: transparent;
    transition: all 0.2s ease;
    color: var(--primary);
    width: 100%;
    flex: 1;
    display: flex;
    box-sizing: border-box;
    gap: 12px;
    resize: none;
    overflow: hidden;
    max-height: none;
    font-family: inherit;
    margin-bottom: 10px;
}

.composer__textarea:focus {
    outline: none;
    border-color: var(--background);
}

.textarea::placeholder {
    color: var(--secondary);
    font-family: "Roboto", sans-serif;
}

.composer__image-preview {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.composer__image-preview:empty,
.composer__video-preview:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.composer__meta-row {
    display: flex;
    gap: 12px;
}

.composer__actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

.actionBase.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.image-upload {
    position: relative;
}

.composer__submit {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border-radius: 20px;
    background: #000;
    color: var(--primary);
}

.reply-popup-content {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    padding: 10px 20px 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: none;
    padding: 0;
}

.advice-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary);
    transition: .4s;
    border-radius: 34px;
}

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

input:checked+.slider {
    background-color: var(--functional);
}

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

@media (max-width: 768px) {
    #floatingEditor {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 24px 24px 0 0;
    }

    #overlay {
        backdrop-filter: blur(4px);
    }

    #floatingEditor .close-btn {
        top: 16px;
        right: 16px;
    }

    .composer__header {
        padding: 20px 20px 12px;
    }

    .composer__header h3 {
        font-size: 18px;
    }

    .user-input {
        padding: 16px 20px 12px;
    }

    .bulb-row {
        gap: 12px;
    }

    .pepper-gauge i {
        font-size: 16px;
    }
}

.advice-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.advice-slider-container {
    position: relative;
    display: inline-block;
}

.advice-slider-container input[type="radio"] {
    display: none;
}

.advice-slider-track {
    position: relative;
    display: flex;
    background: #606b79;
    border: 1px solid #606b79;
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}

.advice-option {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

.advice-option i {
    font-size: 13px;
}

.advice-slider-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    height: calc(100% - 4px);
    width: calc(33.333% - 2px);
    background: var(--secondary);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

#adviceNone:checked~.advice-slider-track .advice-slider-thumb {
    left: 2px;
    background: #6b7280;
}

#advicePeer:checked~.advice-slider-track .advice-slider-thumb {
    left: calc(33.333% + 1px);
    background: black;
}

#advicePro:checked~.advice-slider-track .advice-slider-thumb {
    left: calc(66.666% + 1px);
    background: black;
}

.composer__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#adviceNone:checked~.advice-slider-track label[for="adviceNone"],
#advicePeer:checked~.advice-slider-track label[for="advicePeer"],
#advicePro:checked~.advice-slider-track label[for="advicePro"] {
    color: white;
}

.advice-option:hover {
    opacity: 0.8;
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.edit-input-field:focus,
#dynamicInput,
#entityDynamicInput,
.edit-input-field:focus-visible,
.edit-input-field {
    outline: none;
    font-size: 13px;
    background-color: #555555;
    color: white;
    border-style: none;
    line-height: inherit;
    padding: 10px;
    border-radius: 15px;
    width: 100%;
}

#edit-entityShowBtn,
#showBtn,
#edit-showBtn,
#entityShowBtn {
    font-size: 13px;
    color: var(--primary);
    padding: 10px;
    border-radius: 15px;
    background-color: black;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.createWhingeFloatingButton {
    position: fixed;
    right: 20px;
    background: black;
    color: var(--secondary);
    font-size: 20px;
    font-weight: 300;
    border: none;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: transform 0.2s ease;
}

@media (min-width: 0px) {
    .createWhingeFloatingButton {
        display: none !important;
    }
}


#reviewBtn {
    bottom: 170px;
}

#adviceBtn {
    bottom: 94px;
}

#adviceBtn:hover {
    transform: scale(1.1);
}

#adviceBtn:active {
    transform: scale(0.95);
}

.advice-slider-2state .advice-slider-track {
    gap: 2px;
}

.advice-slider-2state .advice-slider-thumb {
    width: calc(50% - 2px);
}

.advice-slider-2state #advicePeerAdvice:checked~.advice-slider-track .advice-slider-thumb {
    left: 2px;
    background: black;
}

.advice-slider-2state #adviceProAdvice:checked~.advice-slider-track .advice-slider-thumb {
    left: calc(50% + 1px);
    background: black;
}

#editAdviceNone:checked~.advice-slider-track .advice-slider-thumb {
    left: 2px;
    background: #6b7280;
}

#editAdvicePeer:checked~.advice-slider-track .advice-slider-thumb {
    left: calc(33.333% + 1px);
    background: black;
}

#editAdvicePro:checked~.advice-slider-track .advice-slider-thumb {
    left: calc(66.666% + 1px);
    background: #8b5cf6;
}

.advice-slider-2state #editAdvicePeer:checked~.advice-slider-track .advice-slider-thumb {
    left: 2px;
    background: black;
}

.advice-slider-2state #editAdvicePro:checked~.advice-slider-track .advice-slider-thumb {
    left: calc(50% + 1px);
    background: #8b5cf6;
}

.composer_cancel {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
    background: #383838;
    color: white;
}

.popup_menu_buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

#locationNameDisplay {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 14px;
    width: 120px;
    outline: none;
}

#locationNameDisplay:-webkit-autofill,
#locationNameDisplay:-webkit-autofill:hover,
#locationNameDisplay:-webkit-autofill:focus,
#locationNameDisplay:-webkit-autofill:active,
#locationNameDisplay:focus {
    background: transparent !important;
    border: none;
    color: var(--primary);
    font-size: 14px;
    width: 120px;
    outline: none;
    -webkit-box-shadow: 0 0 0 30px #13212d inset !important;
    -webkit-text-fill-color: var(--primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

#locationNameDisplay:not(:placeholder-shown) {
    background: transparent !important;
    border: none !important;
    color: var(--primary) !important;
    font-size: 14px !important;
    width: 120px;
    outline: none !important;
}

#appealTo {
    display: none;
}

.review-mode #appealTo {
    display: flex !important;
}

.review-mode #appealToEntity,
.review-mode .input_with_tick:has(#videoInput),
.review-mode #edit-carouselNameWrapper,
.review-mode #edit-appealToEntityWrapper,
.review-mode .input_with_tick:has(#edit-videoInput) {
    display: none !important;
}

.review-mode .composer__inputs .input_with_tick:nth-child(2) {
    display: none !important;
}

.editor_title {
    font-weight: 800;
}

.editor_title_topic {
    margin-bottom: 20px;
    font-size: 15px;
    margin-top: 30px;
    text-align: center;
    font-weight: 600;
}

.input_with_tick {
    display: flex;
    color: var(--secondary);
}

.editor-active-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.char-counter {
    text-align: left;
    font-size: 12px;
    color: var(--secondary);
    margin-top: 4px;
    margin-right: 5px;
    font-family: inherit;
}

.char-counter.limit-exceeded {
    color: red;
    font-weight: bold;
}

#dynamicInput::placeholder {
    color: var(--secondary);
}

#entityDynamicInput::placeholder {
    color: var(--secondary);
}

.textarea-wrapper {
    position: relative;
    width: 100%;
}

.createWhingeFloatingButton::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: var(--primary);
    color: var(--background);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-right: 10px;
}

.approval-indicator {
    font-size: 11px;
    color: white;
    padding: 4px 11px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    display: none;
}

.createWhingeFloatingButton::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    border-width: 6px;
    border-style: solid;
    border-color: var(--secondary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 10px;
    pointer-events: none;
}

.createWhingeFloatingButton:hover::after,
.createWhingeFloatingButton:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

#entityDynamicInput::placeholder {
    font-size: 15px;
}

.composer__image-preview .thread__image {
    position: relative;
    width: 80px;
    height: 80px;
}

.composer__image-preview .thread__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.composer__image-preview .thread__image .remove-image {
    position: absolute;
    top: 4px;
    left: 4px;
    right: auto;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.image-preview-container .remove-image {
    position: absolute;
    top: -13px;
    right: -13px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-preview-container .remove-image:hover {
    background: #cc0000;
}

.reply-options-button {
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    gap: 6px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#edit-levelText,
#bulb-action-text {
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
}

.actionBtn,
.image-upload {
    vertical-align: middle;
    background: transparent;
    color: var(--primary);
}

.actionBtn:disabled {
    color: var(--secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 8px 14px;
    cursor: not-allowed;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.selectCategory {
    font-size: 14px;
    color: white;
    font-weight: 900;
}

.composer__submit:hover {
    opacity: 0.9;
}

.composer__inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
}

.composer__image-input {
    display: none;
    color: var(--secondary);
}

.image-preview-container {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.remove-shared-post {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-size: 16px;
}

.topic-dropdown {
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 0;
    right: 0;
    background: #1a1e20;
    border: 1px solid #333d42;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    z-index: 2000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
    display: none;
}

.topic-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--primary);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.topic-dropdown-item:hover {
    background: #2f3335;
}

.topic-dropdown-item .item-type {
    font-size: 10px;
    color: var(--secondary);
    text-transform: uppercase;
}

.topic-dropdown-item.hardcoded-topic {
    font-weight: 900;
}

.topic-dropdown-item.hardcoded-topic .item-type {
    font-weight: 800;
}

.user_composer_header {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    font-size: 1rem;
    justify-content: center;
    margin-top: 20px;
}

.wizard-step {
    display: none;
    flex-direction: column;
    min-height: 9rem;
}

.wizard-step.active {
    display: flex;
}

.wizard-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.wizard-actions-final {
    justify-content: space-between;
    align-items: center;
}

.wizard-btn {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-btn-next {
    background-color: var(--secondary);
    color: var(--dark-background);
    border: none;
    margin-left: auto;
}

.wizard-btn-next:hover {
    background-color: var(--secondary);
    opacity: 0.9;
}

.wizard-btn-skip {
    color: var(--functional);
    border: none;
}

.label-text {
    color: var(--secondary);
}

.linkedin-import-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
}

.linkedin-import-input {
    width: 100%;
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.linkedin-import-input:focus {
    border-color: #0077b5; /* LinkedIn blue */
}

.linkedin-loading {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 6px;
    font-style: italic;
}

.fa-linkedin {
    color: #0077b5;
}
