/* Comments and Edit History Styles */

.task-detail-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.task-detail-section:last-of-type {
    border-bottom: none;
}

.task-detail-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Comments Styles */
.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.comment-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-user {
    font-weight: 600;
    color: var(--primary);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
}

.add-comment-form {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

/* Edit History Styles */
.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-user {
    font-weight: 600;
    color: var(--secondary);
}

.history-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.history-change {
    font-size: 0.9rem;
}

.history-label {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.history-old {
    color: var(--danger);
    text-decoration: line-through;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.history-new {
    color: var(--success);
    font-size: 0.85rem;
}

/* Form Control for Comments */
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Scrollbar for comments and history */
.comments-list::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}
