﻿@charset "utf-8";

.hidecomment { opacity: 0; height: 0px; overflow: hidden; transition: 0.5s; display: none !important; }

.hidecomment.show { opacity: 1; height: auto; display: flex !important; }

#typingIndicator { display: flex; align-items: center; margin-bottom: 25px; }

.comment-form { background: lightgrey; border: 1px solid rgb(221, 221, 221); border-radius: 8px; padding: 20px; margin: 20px 0px; }

.form-section { margin-bottom: 20px; }

.avatar-section { text-align: center; margin-bottom: 20px; }

.avatar-preview { width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgb(204, 204, 204); margin: 0px auto 10px; background: rgb(240, 240, 240); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }

.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.avatar-icon { font-size: 40px; color: rgb(153, 153, 153); }

.avatar-upload { color: rgb(0, 123, 255); font-size: 14px; cursor: pointer; }

.avatar-upload:hover { text-decoration: underline; }

#avatarInput { display: none; }

.form-field { margin-bottom: 15px; }

.form-field label { display: block; margin-bottom: 5px; font-weight: bold; color: rgb(51, 51, 51); }

.form-field input[type="text"] { width: 100%; padding: 12px; border: 1px solid rgb(221, 221, 221); border-radius: 4px; font-size: 14px; box-sizing: border-box; }

.form-field textarea { width: 100%; height: 100px; padding: 12px; border: 1px solid rgb(221, 221, 221); border-radius: 4px; font-size: 14px; resize: vertical; box-sizing: border-box; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255); }

.image-upload-section { border: 2px dashed rgb(204, 204, 204); border-radius: 4px; padding: 20px; text-align: center; cursor: pointer; transition: border-color 0.3s; background-color: rgb(255, 255, 255); }

.image-upload-section:hover { border-color: rgb(0, 123, 255); }

.image-upload-section.has-image { border-color: rgb(40, 167, 69); background: rgb(248, 255, 248); }

.upload-text { color: rgb(102, 102, 102); font-size: 14px; }

.image-preview { max-width: 100%; max-height: 200px; border-radius: 4px; margin-top: 10px; }

#imageInput { display: none; }

.submit-btn { background: rgb(40, 167, 69); color: white; border: none; padding: 15px 30px; border-radius: 4px; font-size: 16px; cursor: pointer; width: 100%; font-weight: bold; box-sizing: border-box; }

.submit-btn:hover { background: rgb(33, 136, 56); }

.submit-btn:disabled { background: rgb(204, 204, 204); cursor: not-allowed; }

.success-message { background: rgb(212, 237, 218); color: rgb(21, 87, 36); padding: 15px; border-radius: 4px; margin: 20px 0px; text-align: center; font-weight: bold; }

@keyframes fadeIn { 
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0px); }
}

.inputs { display: flex; flex-direction: column; justify-self: center; margin: 0px auto; gap: 20px; }
