/* css/comment.css */
.comment-section-container {
    max-width: 50%;
    margin: 40px auto; /* Tăng margin-top để tách biệt khỏi nội dung phía trên */
    padding: 20px;
   /* background-color: var(--card-bg, #fff); /* Sử dụng biến màu nền card nếu có */
    border-radius: 30px;
  /*  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);*/
    color: var(--text-dark, #1e293b); /* Sử dụng biến màu chữ nếu có */
}

.comment-section-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #00bcd4; /* Sử dụng màu chính nếu có */
}

.comment-section-container h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

#comment-display-area {
    margin-bottom: 30px;
    max-height: 400px; /* Giới hạn chiều cao và cho phép cuộn */
    overflow-y: auto; /* Thêm thanh cuộn nếu nội dung vượt quá */
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.02); /* Một chút màu nền khác biệt */
}

.comment-item {
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
    margin-bottom: 10px;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-item strong {
    display: block;
    color: var(--secondary, #f97316); /* Sử dụng màu phụ nếu có */
    margin-bottom: 5px;
    font-size: 1.1em;
}

.comment-item p {
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word; /* Để các từ dài tự xuống dòng */
}

.comment-item .comment-date {
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
    text-align: right;
}

.comment-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form-container input[type="text"],
.comment-form-container textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--bg-light, #f1f5f9); /* Màu nền input */
    color: var(--text-dark, #1e293b); /* Màu chữ input */
}

.comment-form-container button[type="submit"] {
    background-color: #00bcd4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.comment-form-container button[type="submit"]:hover {
    background-color: #00d4d4;
}

/* Dark theme adjustments */
body.dark-theme .comment-section-container {
    /*background-color: #1e1e1e; /* Nền tối hơn cho khu vực bình luận */
    color: #f0f0f0;
    /*box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);*/
}

body.dark-theme .comment-section-container h2 {
    color: #00ff9d; /* Màu tiêu đề khác cho dark theme */
}
body.dark-theme #comment-display-area {
    border-color: #444;
    background-color: #2a2a2a;
}

body.dark-theme .comment-item {
    border-bottom-color: #444;
}

body.dark-theme .comment-item strong {
     color: #ffb74d; /* Màu tên người bình luận cho dark theme */
}
body.dark-theme .comment-item .comment-date {
    color: #aaa;
}

body.dark-theme .comment-form-container input[type="text"],
body.dark-theme .comment-form-container textarea {
    background-color: #333;
    color: #f0f0f0;
    border-color: #555;
}

body.dark-theme .comment-form-container button[type="submit"] {
    background-color: #00ff9d; /* Một màu nút khác cho dark theme */
    color: black;
}

body.dark-theme .comment-form-container button[type="submit"]:hover {
    background-color: rgba(0, 255, 157, 0.76)
}