#comment-section {
max-width: 800px;
margin: 2rem auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #333;
line-height: 1.5;
}

#comment-section h3 {
border-bottom: 2px solid #eee;
padding-bottom: 0.5rem;
margin-bottom: 1.5rem;
}

#comment-form-container textarea {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 8px;
resize: vertical;
font-size: 1.5rem;
transition: border-color 0.2s;
box-sizing: border-box;
font-family: inherit;
}

#comment-form-container textarea:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

button.btn-primary,
.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1; 
}

button.btn-primary:hover,
.btn-primary:hover {
    background: #0056b3;
    color: white; 
}


.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary svg {
    fill: currentColor; 
    flex-shrink: 0;     
}

.comment-item {
padding: 1rem;
border-radius: 8px;
background: #fcfcfc;
border: 1px solid #f0f0f0;
transition: transform 0.1s;
}

.comment-item:hover {
border-color: #e0e0e0;
}

.user-avatar {
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.comment-content {
flex-grow: 1;
}

.comment-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}

.comment-text {
font-size:1.5rem;
color: #444;
word-break: break-word;
}


.loading, .empty-msg {
text-align: center;
color: #888;
padding: 2rem;
font-style: italic;
}
.reported-state {
color: #dc3545 !important;
font-weight: bold !important;
opacity: 1 !important;
pointer-events: none; 
}

.comment-actions {
margin-top: 8px;
font-size: 1.8rem;
display: flex;
gap: 15px;
}

.action-link {
cursor: pointer;
transition: color 0.2s, font-weight 0.2s;
}

.action-link.like { color: #007bff; }
.action-link.like:hover { color: #0056b3; text-decoration: underline; }

.action-link.flag { color: #666; opacity: 0.7; }
.action-link.flag:hover { color: #dc3545; opacity: 1; }

.guest-view {
border-left: 3px solid #eee;
background: #fafafa;
}

.muted {
color: #aaa;
pointer-events: none; 
}

.action-link {
    font-size: 1.2rem;
    margin-right: 15px;
    user-select: none;
}

.action-link.like { color: #007bff; cursor: pointer; }
.action-link.flag { color: #666; cursor: pointer; }

.action-link.muted {
    color: #bbb !important;
    cursor: default;
    pointer-events: none; /* Prevents JS execution on click */
    text-decoration: none;
}

.action-link.muted[onclick] {
    pointer-events: auto;
    cursor: pointer;
}
.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.comment-input-wrapper {
    margin-top: 20px;
}

#comment-box {
    width: 100%;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: inherit;
}

.counter-row {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

#word-count {
    font-weight: bold;
    color: #333;
}

.privacy-box {
  position: relative;
  margin: 10px 0 10px;
  padding: 8px 35px 8px 12px;
  background-color: #f9f9f9; 
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 1.2rem;
  color: #666;
  line-height: 1.4;
}

.disable-btn {
  background: none;
  border: none;
  color: #1877F2; 
  padding: 0;
  font-size: 1.5rem;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 5px;
}

.close-x {
  position: absolute;
  top: 5px;
  right: 8px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #ccc;
  cursor: pointer;
}

.close-x:hover { color: #999; }