.commentsWrapper {
    display: flex;
    flex-direction: column;
    width: 600px;
    margin-top: 100px;
    margin-bottom: 40px;
    gap: 16px;
}

.commentForm {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.commentForm textarea {
    width: 100%;
    height: 80px;
    background-color: rgb(36, 36, 36);
    color: white;
    border: 1px solid rgb(60, 60, 60);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.95em;
    font-family: Arial, sans-serif;
    resize: none;
    box-sizing: border-box;
}

.commentForm textarea:focus {
    outline: none;
    border-color: rgb(100, 100, 100);
}

.commentForm textarea:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.commentImageUpload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.imageUploadLabel {
    display: inline-block;
    background-color: rgb(50, 50, 50);
    color: rgb(200, 200, 200);
    border: 1px solid rgb(70, 70, 70);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.imageUploadLabel:hover:not(.disabled) {
    background-color: rgb(70, 70, 70);
}

.imageUploadLabel.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.commentImageUpload input[type="file"] {
    display: none;
}

.imageFileName {
    color: rgb(100, 100, 100);
    font-size: 0.82em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.commentImagePreview {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.commentImagePreview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgb(70, 70, 70);
}

.removeImageBtn {
    background-color: rgb(80, 30, 30);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.removeImageBtn:hover {
    background-color: rgb(120, 40, 40);
}

.commentForm button[type="submit"] {
    align-self: flex-end;
    background-color: rgb(60, 60, 60);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.2s;
}

.commentForm button[type="submit"]:hover:not(:disabled) {
    background-color: rgb(90, 90, 90);
}

.commentForm button[type="submit"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cooldownNotice {
    color: rgb(255, 180, 50);
    background-color: rgb(50, 40, 20);
    border: 1px solid rgb(100, 80, 30);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9em;
    margin: 0;
}

.commentLoginNotice {
    color: rgb(150, 150, 150);
    font-size: 0.95em;
}

.commentLoginNotice a {
    color: white;
}

.commentsList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.noComments {
    color: rgb(100, 100, 100);
    font-size: 0.9em;
}

.commentCard {
    display: flex;
    gap: 12px;
    background-color: rgb(36, 36, 36);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgb(50, 50, 50);
}

.commentAvatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgb(70, 70, 70);
}

.commentBody {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.commentMeta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.commentUsername {
    color: white;
    font-weight: bold;
    font-size: 0.95em;
}

.commentLevel {
    color: rgb(130, 130, 255);
    font-size: 0.8em;
    background-color: rgb(50, 50, 80);
    padding: 2px 8px;
    border-radius: 20px;
}

.commentTime {
    color: rgb(100, 100, 100);
    font-size: 0.8em;
    margin-left: auto;
}

.commentContent {
    color: rgb(210, 210, 210);
    font-size: 0.92em;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    line-height: 1.5;
    word-break: break-all;
    
   }

.commentImage {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid rgb(60, 60, 60);
    margin-top: 4px;
}

.voteBar {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
}

.voteBtn {
    background-color: rgb(50, 50, 50);
    color: rgb(160, 160, 160);
    border: 1px solid rgb(70, 70, 70);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.82em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.voteBtn:hover:not(:disabled) {
    background-color: rgb(70, 70, 70);
    color: white;
}

.voteBtn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.upvoteBtn.active {
    background-color: rgb(30, 80, 30);
    color: rgb(100, 220, 100);
    border-color: rgb(60, 130, 60);
}

.downvoteBtn.active {
    background-color: rgb(80, 30, 30);
    color: rgb(220, 100, 100);
    border-color: rgb(130, 60, 60);
}

.commentActions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.editBtn, .deleteBtn {
    background: none;
    border: 1px solid rgb(70, 70, 70);
    border-radius: 6px;
    color: rgb(150, 150, 150);
    font-size: 0.78em;
    padding: 2px 8px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.editBtn:hover {
    background-color: rgb(50, 50, 80);
    color: rgb(150, 150, 255);
    border-color: rgb(100, 100, 180);
}

.deleteBtn:hover {
    background-color: rgb(80, 30, 30);
    color: rgb(255, 100, 100);
    border-color: rgb(150, 60, 60);
}

.editForm {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.editTextarea {
    width: 100%;
    height: 70px;
    background-color: rgb(45, 45, 45);
    color: white;
    border: 1px solid rgb(80, 80, 80);
    border-radius: 8px;
    padding: 8px;
    font-size: 0.92em;
    font-family: Arial, sans-serif;
    resize: none;
    box-sizing: border-box;
}

.editTextarea:focus {
    outline: none;
    border-color: rgb(110, 110, 110);
}

.editActions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.editSaveBtn, .editCancelBtn {
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.editSaveBtn {
    background-color: rgb(40, 80, 40);
    color: rgb(150, 220, 150);
}

.editSaveBtn:hover {
    background-color: rgb(50, 110, 50);
}

.editCancelBtn {
    background-color: rgb(60, 60, 60);
    color: rgb(180, 180, 180);
}

.editCancelBtn:hover {
    background-color: rgb(80, 80, 80);
}




